Skip to main content
12 votes
Accepted

How to test for specific Emacs version or newer?

Using emacs-version with the various version* functions is sane, yes. version= version< version<= (These are convenience wrappers which use the version-list functionality behind the scenes.) ...
phils's user avatar
  • 51.6k
5 votes
Accepted

(ucs-names) in Emacs 26 is not working for "EURO SIGN"

Do this, instead, starting with Emacs 26: (gethash "EURO SIGN" (ucs-names)) In other words, use something like this: (if (> emacs-major-version 25) (gethash "EURO SIGN" (ucs-names)) (cdr (...
Drew's user avatar
  • 78k
2 votes
Accepted

Can't parse the output of manpages in pcmpl-args.el in Emacs 25.1.1

Well, the solution to this problem was a very simple one. The issue was that the encoding used for putting manpages (and maybe other things) into buffers in 25.1.1 was unsuitable for pcmpl-args ...
GDP2's user avatar
  • 1,350
2 votes
Accepted

How to detect Emacs Mac Port in Elisp?

As amitp said in the comments, the window-system variable is 'mac on the Mac Port. Also, as pointed out by xuchunyang, emacs-version yields special output and mac-carbon-version-string is bound. ...
GDP2's user avatar
  • 1,350
2 votes

New version of Org mode throws dbus-call-method: peculiar error: "Emacs not compiled with dbus support"

At least in the more recent version of org-mode (9.4.4), one can fix this issue by modifying the variable org-show-notification-handler, e.g., by adding the following to the init file: (setq org-show-...
Paul Nelson's user avatar
2 votes

Error when loading new version of org mode

I found the culprit in opening org files before loading the new version: (add-to-list 'load-path "~/code/org-mode/lisp") (require 'org-loaddefs) In a comment in that thread, I mentioned that the ...
emonigma's user avatar
  • 1,907
1 vote
Accepted

Upgrade from 27.2 to 30.0, calling sequence change for "make-obsolete-variable"

I now realize that the only reason that the hack I suggested above didn't work is because I forgot about the existing *.elc files. And it turns out that the following does indeed work at the top of $...
HippoMan's user avatar
  • 616
1 vote
Accepted

Is there a way to convince Emacs 29 to use the initial directory to save setup information?

Just set up your load-path conditionally, in your init file. Have it use different directories for different Emacs versions. Just test emacs-version or any of the other variables provided for this -- ...
Drew's user avatar
  • 78k
1 vote

What happens if I have different versions of Emacs using the same directory

If you update packages in Emacs 26 you can use the same .emacs.d directory from Emacs 27.
George Xanthakis's user avatar
1 vote

What happens if I have different versions of Emacs using the same directory

I was in a similar situation few weeks ago, I wanted to have a fresh emacs instance but still wanted the old emacs around if I needed. I made a folder called ~/newhome and when starting emacs I ...
american-ninja-warrior's user avatar
1 vote

(ucs-names) in Emacs 26 is not working for "EURO SIGN"

I ended with: (defun my--get-char (name) "Get character by Unicode `name'." (cond ((>= 26 emacs-major-version) (gethash name (ucs-names))) ((>= 23 emacs-major-version) (cdr (...
gavenkoa's user avatar
  • 3,462
1 vote

How to install sage-shell-mode with Emacs 25.1?

I loaded up MELPA and see sage-shell-mode listed. I don't know if this will solve the problem, but I've run into problems before with multiple package archives loading. Here is a function I use to ...
Hemm's user avatar
  • 111
1 vote

A way to change Emacs versions at runtime (or some other way to fix an outdated package)

Install Emacs 24.5 in your $HOME. Multiple versions of Emacs can co-exist. Run below command line in shell, ./configure --prefix=$HOME/myemacs/24.4 --without-x-toolkit --without-x --without-xpm --...
chen bin's user avatar
  • 4,877
1 vote

How can I find which version of a particular mode I am using?

You can also do this programmatically: (require 'find-func) (require 'lisp-mnt) (defun get-library-version (library) "Return a version string for LIBRARY." (with-temp-buffer (insert-...
Bozhidar Batsov's user avatar
1 vote

How do I run multiple versions of Emacs with the same .emacs.d

It is perfectly possible to have packages.el put byte-compiled code into versioned subdirectories of the elpa package. This gives a structure like this: ┌ elpa └┬ the-package-date.time ├─ the-package....
wolfmanx's user avatar
  • 131

Only top scored, non community-wiki answers of a minimum length are eligible