Emacs 24.4 up-list Change

By Xah Lee. Date: . Last updated: .

it's quite annoying. in emacs 24.4 (or emacs 24.3?), the up-list function accepts more args. However, it's not documented in the emacs news file (view-emacs-news). (am on GNU Emacs 24.4.50.1)

;; emacs 24.4 or 24.3 change fix
(defun xem-up-list (arg1 &optional arg2 arg3)
  "Backward compatibility fix for emacs 24.4's up-list.
emacs 24.4 changed up-list to take up to 3 args. Before, only 1.
See
 `backward-up-list',
 `up-list'"
  (interactive)
  (if (and (>= emacs-major-version 24)
           (>= emacs-minor-version 4))
      (up-list arg1 arg2 arg3)
    (up-list arg1)))

updated Emacs: Xah Elisp Mode (xah-elisp-mode.el). (thx to gamaralf for report. https://github.com/xahlee/xah-elisp-mode/issues/1)

Goole Plus discussion https://plus.google.com/113859563190964307534/posts/RP2VKsmuNNx