Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emacs 25.1: Symbol’s function definition is void: x-selection-owner-p #9

Closed
bburns opened this issue Sep 20, 2016 · 5 comments
Closed

Comments

@bburns
Copy link
Owner

bburns commented Sep 20, 2016

(Transferring from other thread)

@bburns
Copy link
Owner Author

bburns commented Sep 20, 2016

I set up a Xubuntu 16.04 VM and compiled Emacs 25.1 using the instructions here https://www.emacswiki.org/emacs/EmacsSnapshotAndDebian#toc3, ie

sudo apt install autoconf automake libtool texinfo build-essential xorg-dev libgtk2.0-dev libjpeg-dev libncurses5-dev libdbus-1-dev libgif-dev libtiff-dev libm17n-dev libpng12-dev librsvg2-dev libotf-dev libxml2-dev
cd emacs
./autogen.sh
./configure
make bootstrap
sudo make install

but I don't get that error - how is your system configured?

@emanresusername
Copy link

ah, ok, so i'm on a OSX and i'd been using homebrew to install/configure the cocoa app. I tried both emacs-mac and emacs-plus

when on emacs-plus for emacs 24.5 everything works fine, but when i switched to emacs-mac (emacs 25) or the latest emacs-plus (emacs 25). Then I get the x-selection-owner-p issue

@bburns
Copy link
Owner Author

bburns commented Sep 21, 2016

Okay thanks - #7 was the same issue - I don't have a Mac to test with but I think I got it set up correctly - it'll be updated when Melpa next builds it.
Brian

@emanresusername
Copy link

@bburns
Copy link
Owner Author

bburns commented Sep 23, 2016

I changed the code a bit to turn off a compilation warning - it looks like this now -

;; handle renamed function - x-selection-owner-p was renamed to
;; gui-selection-owner-p in emacs 25.1
(defalias 'selection-owner-p 'x-selection-owner-p)
(if (fboundp 'gui-selection-owner-p)
    (defalias 'selection-owner-p 'gui-selection-owner-p))

So if gui-selection-owner-p is available as in 25.1 it should use that.

@bburns bburns closed this as completed Sep 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants