Questions tagged [version-compatibilty]

21 questions
15
votes
1 answer

How to run multiple versions of emacs for package development?

Is there a set of tools to enable testing a package on multiple Emacs versions. For example 24.4 is almost released. Can I install it and still safely test my package in 24.1? How would I deal with a conflicting .emacs.d/? I came across a repo on…
Gambo
  • 929
  • 5
  • 14
10
votes
4 answers

How do I inherit from prog-mode, whilst still supporting older emacsen?

I'm writing a major mode for a programming language, but I want to support older Emacs versions. prog-mode is relatively new. I want to inherit from prog-mode if it's defined, but still do something sensible otherwise. What's the best approach?…
Wilfred Hughes
  • 6,890
  • 2
  • 29
  • 59
10
votes
2 answers

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

I alternatively run 24.5 and 25.0.50. Unfortunately, packages installed and compiled from 25.0.50 don't work with Emacs 24.5 (cl-struct-define is a common culprit). One trivial solution is to not byte-compile anything. That makes things pretty slow,…
Clément
  • 3,924
  • 1
  • 22
  • 37
8
votes
3 answers

Writing portable Elisp

Ideally, I would like to be able to store the entire contents of my .emacs.d directory and have it "just work" on any Emacs I load it into, but still take advantage of any features of the specific environment, such as GUI windowing systems. I'm not…
Paul Miller
  • 301
  • 1
  • 4
8
votes
1 answer

How to test for specific Emacs version or newer?

Emacs 24.4 made an incompatible change to interpreter-mode-alist, treating its members now as regular expressions and no longer as simple strings (http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=1af4c2203ce7954c089133234ba80e6272ce9458). I…
Tim Landscheidt
  • 467
  • 3
  • 8
8
votes
4 answers

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

For example, I want to use a library that requires I am on org-mode version 8 or above. I don't know what version of org-mode I have. Running M-x version only gives me the emacs version. Is there a command where I can get the org-mode…
modulitos
  • 2,432
  • 1
  • 18
  • 36
5
votes
2 answers

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

I have in my .emacs: (when (>= emacs-major-version 23) (define-key global-map "\C-x8g" (lambda nil (interactive) (ucs-insert `,(cdr (assoc-string "HRYVNIA SIGN" (ucs-names) t))))) (define-key global-map "\C-x8e" (lambda nil (interactive)…
gavenkoa
  • 3,352
  • 19
  • 36
4
votes
0 answers

A workflow for managing compiled elisp packages with different versions of emacs

I am using different versions of emacs, on different computers. On some of those (work computers) I don't really have a choice to update, whereas for my personal computers, I like to run the latest stable release. I carry a customization "package"…
T. Verron
  • 4,233
  • 1
  • 22
  • 55
3
votes
1 answer

Error when loading new version of org mode

I upgraded Org-mode to the latest version on the master branch (according to How to install latest version of org mode?) and now I get this error every few seconds: Error running timer ‘org-indent-initialize-agent’: (void-function org-time- add) [8…
miguelmorin
  • 1,751
  • 11
  • 33
2
votes
1 answer

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

I upgraded Org from the built-in 9.1.9 to the maint branch 9.3.3 (directions here). I now get this error when I clock in or out: Debugger entered--Lisp error: (dbus-error "Emacs not compiled with dbus support") signal(dbus-error ("Emacs not…
miguelmorin
  • 1,751
  • 11
  • 33
2
votes
1 answer

How to detect Emacs Mac Port in Elisp?

I recently explored the Emacs Mac Port developed by Yamamoto Mitsuharu. It feels great and I would like to try using it instead of vanilla GNU Emacs. However, I have some code in my init files which is incompatible with the Mac Port version. I would…
GDP2
  • 1,340
  • 9
  • 25
2
votes
1 answer

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

This is a followup to this question, as I originally was uncertain as to how to make this question into a suitable format for this site. So, I'm a user of pcmpl-args.el, which is an Emacs package that allows for more sophisticated completion of…
GDP2
  • 1,340
  • 9
  • 25
1
vote
1 answer

"Invalid version list `(4 5 -4 414)'" when running `M-x package-list-packages`

When following a suggestion for solving another problem, I'm doing M-x package-list-packages. However, that gives me the error message Invalid version list `(4 5 -4 414)'. What does this mean, and what can I do about it? If I do M-x…
1
vote
2 answers

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

Currently I have two versions of Emacs (system installed by apt-get: emacs26 and my own compiled version emacs27). They both us emacs.d directory, and I wonder what happens the packages are incompatible with emacs27. May I use a different .emacs.d"…
ofenerci
  • 327
  • 1
  • 2
  • 12
1
vote
1 answer

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

I would like to install sage-shell-mode. Now I read the README, and it indicated that with MELPA added to my package archive list I should be able to install sage-shell-mode with (after pressing M+x, of course) package-install sage-shell-mode. But…
Josh Pinto
  • 623
  • 10
  • 19
1
2