Emacs commands which have recently changed
Commands renamed
The following commands have been renamed in recent versions of Emacs, for no apparent reason:
Old | New |
---|---|
toggle-read-only |
read-only-mode |
ucs-insert |
insert-char |
The following code restores these two, and can be used as a model against future renamings of commands.
(fmakunbound 'toggle-read-only) (fmakunbound 'ucs-insert) ;; These override the effect of the function (make-obsolete) which is ;; part of the Emacs source file "emacs-lisp/byte-run.el" by removing ;; the "byte-obsolete-info" property from the functions. (put 'ucs-insert 'byte-obsolete-info nil) (put 'toggle-read-only 'byte-obsolete-info nil) (defun toggle-read-only () "Toggle read only mode" (interactive) (read-only-mode 'toggle)) (defun ucs-insert () "Insert UCS" (interactive) (insert-char (read-char-by-name "Insert character (Unicode name or hex): ")))
Switching off Emacs' git handling
The Emacs handling of the git version control system can be switched off like this in .emacs:
;; disable vc-git (setq vc-handled-backends ())
Copyright © Ben Bullock 2009-2024. All
rights reserved.
For comments, questions, and corrections, please email
Ben Bullock
(benkasminbullock@gmail.com) or use the discussion group at Google Groups.
/
Privacy /
Disclaimer