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

;; 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.
  (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. [2014-10-02 https://github.com/xahlee/xah-elisp-mode/issues/1 ])

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