Hot answers tagged

14

With GNU Guix you can easily reuse the package definition for Emacs with a later tarball. guix build emacs --with-source=http://some/emacs/tarball.tar.xz Or to directly install it into your default profile: guix package -i emacs --with-source=http://some/emacs/tarball.tar.xz Emacs 24.5 is already available via Guix, so you'd just need to run guix ...


9

As maintainer, I strive to preserve the following: Backward compatibility of byte-code. I.e. you should be able to take your .elc file compiled with Emacs-19 and run it in Emacs-27 successfully. Of course, in practice it doesn't always work, because backward incompatibilities are introduced either by accident or consciously (tho these are usually not ...


9

My problem was that the byte-compiled version of csharp-mode wasn't compatible with the upgrade. It seems it's a good idea to recompile all files on upgrading emacs, see this question: https://stackoverflow.com/questions/24725778/how-to-rebuild-elpa-packages-after-upgrade-of-emacs tl;dr: M-: (byte-recompile-directory package-user-dir nil 'force) fixes all ...


7

GNU Emacs Release History displays the latest version of Emacs, here is a little command utilizing the page. (defun chunyang-check-emacs-update () "Check for Emacs update." (interactive) (url-retrieve "https://www.gnu.org/software/emacs/history.html" (lambda (status) (pcase (plist-get status :error) ('nil (let ((latest (save-match-...


6

Compiling from source is an option, of course (which may or may not be obvious to you). If you're willing to invest in learning how to do that, you'll be able to compile and use virtually any version of Emacs you're interested in (whether that's the latest stable release; one of the "pretest" builds for the next release; or the latest code from the source ...


6

Without using cask or pallet, you can achieve this with code such as the following: (setq package-user-dir (expand-file-name (concat "elpa/" emacs-version) user-emacs-directory)) (setq package-enable-at-startup nil) (package-initialize) (defun require-package (package &optional min-version no-refresh) "Install given PACKAGE, optionally requiring MIN-...


5

You should not expect bytecode files to be compatible between different Emacs versions. The actual bytecode format is mostly upwards compatible, but you will run into trouble with expanded macros. Let me explain. When the byte-compiler encounters a macro, it computes the macro's expansion and compiles the result. If the macro expanded to a call to a ...


5

Follow these directions for Ubuntu substituting 24.5 in the download step 5 and subsequent steps.


5

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 (assoc-string "EURO SIGN" (ucs-names) t))) Unfortunately, for people trying to provide backward-compatibility, they made an incompatible change in ucs-names, ...


4

If you have directory with emacs repo then git can help: (with-temp-buffer (shell-command "cd /path/to/emacs--git; git remote update -p > /dev/null; git log --oneline ..@{u}" (current-buffer)) (let ((cnt (count-lines (point-min) (point-max)))) (when (> cnt 0) (message "Emacs version behind the latest cutting edge version published ...


4

For Ubuntu distributions, you can install the ubuntu-elisp PPA. Currently it contains Emacs 25.0.50.2, from 2015-09-19. This is not the latest stable version, but I've found it to work well enough. To install: $ sudo apt-add-repository ppa:ubuntu-elisp/ppa $ sudo apt-get update $ sudo apt-get install emacs-snapshot Then run Emacs as emacs-snapshot ...


2

I use gsrc for this. Just follow the instructions on the website - and be sure to read the manual. Basically, when you have a running gsrc you can type make -C gnu/emacs and the latest stable version of emacs will be downloaded and compiled for you, including some of the dependencies. I don't like the default configuration parameters that are used in ...


2

You can fix your emacs config by using the wgrep mode (package available through Melpa). If you don't know where you might have used the old variables, this approach will help if you at least know which folder holds your emacs configuration. Check out the solutions to this emacs.SE question on Is there a way to use query-replace from grep/ack/ag output ...


2

Apparently, I didn't had org-mode installed from repos, it was the built-in one from Emacs, thus it didn't update from repos. So, I selected it from the packages list by pressing i, installed it, and I now have the latest version on macOS too.


2

This works fine for me on 9.2.6: ** TODO Practice SCHEDULED: <2019-11-20 Fri .+1d> :PROPERTIES: :STYLE: habit :LAST_REPEAT: [2019-11-27 Wed] :END: It is hidden from the agenda view with S-K. As you surmised, the order has been tightened in order to allow easier parsing: scheduling information (SCHEDULED/DEADLINE) has to come right after ...


1

package-autoremove removes packages returned by package--removable-packages: Return a list of names of packages no longer needed. These are packages which are neither contained in package-selected-packages nor a dependency of one that is. Old versions is marked for deletion by invoking package-menu-mark-upgrades: Mark all upgradable packages in ...


1

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 (assoc-string name (ucs-names)))) (t (error "Emacs version is too old and lacks Unicode support...")))) (when (>= emacs-major-version 23) (define-key ...


1

This seems to be a bug (or a feature) in Org 8.2. Removing org-agenda-max-todos and org-agenda-max-entries options fixes it, restoring display of appointments and the time grid.


1

Explanation: In version 11.87, TeX-auto-add-type was a function. In version 11.88 (since commit f4d3f2840e8f448a329b223c081bce556eb6ca67, TeX-auto-add-type became a macro. My understanding is that during the installation of the newer version in a live Emacs, the function was loaded, and the byte compiler picked up the function. After restarting Emacs, there ...


1

If you have installed the theme from https://github.com/sellout/emacs-color-theme-solarized with package name that begins with color-theme-solarized, then I have noticed random changes also. I reinstalled the theme from https://github.com/bbatsov/solarized-emacs with package name solarized-theme, then everything went back to normal. Hope this helps.


1

When I followed kaushalmodi's suggestion, I found that the unwanted variables were being set in my new org-mode installation. This lead me to realize that the installation must have gone horribly wrong. I deleted the org package in package-list-packages, backed up my .emacs file, wiped out any lines in it that were in any way even potentially related to org-...


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