diff options
author | Tom Tromey <tromey@redhat.com> | 2013-06-03 12:25:05 -0600 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-06-03 12:25:05 -0600 |
commit | 68359abba96d7ec4db8aab3d3dd9cf1105c3bab5 (patch) | |
tree | 862703e7e1a1888170136a8296a5750d6b2ae2eb /lisp/emacs-lisp/tabulated-list.el | |
parent | cbcba8ce7f980b01c18c0fd561ef6687b1361507 (diff) | |
parent | e2d8a6f0a229b4ebe26484b892ec4f14888f58b6 (diff) | |
download | emacs-68359abba96d7ec4db8aab3d3dd9cf1105c3bab5.tar.gz emacs-68359abba96d7ec4db8aab3d3dd9cf1105c3bab5.tar.bz2 emacs-68359abba96d7ec4db8aab3d3dd9cf1105c3bab5.zip |
merge from trunk; clean up some issues
Diffstat (limited to 'lisp/emacs-lisp/tabulated-list.el')
-rw-r--r-- | lisp/emacs-lisp/tabulated-list.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/emacs-lisp/tabulated-list.el b/lisp/emacs-lisp/tabulated-list.el index da487e463e2..5660ac8c4cc 100644 --- a/lisp/emacs-lisp/tabulated-list.el +++ b/lisp/emacs-lisp/tabulated-list.el @@ -4,6 +4,7 @@ ;; Author: Chong Yidong <cyd@stupidchicken.com> ;; Keywords: extensions, lisp +;; Version: 1.0 ;; This file is part of GNU Emacs. @@ -519,12 +520,11 @@ printer is `tabulated-list-print-entry', but a mode that keeps data in an ewoc may instead specify a printer function (e.g., one that calls `ewoc-enter-last'), with `tabulated-list-print-entry' as the ewoc pretty-printer." - (setq truncate-lines t) - (setq buffer-read-only t) - (set (make-local-variable 'revert-buffer-function) - 'tabulated-list-revert) - (set (make-local-variable 'glyphless-char-display) - tabulated-list-glyphless-char-display)) + (setq-local truncate-lines t) + (setq-local buffer-read-only t) + (setq-local buffer-undo-list t) + (setq-local revert-buffer-function #'tabulated-list-revert) + (setq-local glyphless-char-display tabulated-list-glyphless-char-display)) (put 'tabulated-list-mode 'mode-class 'special) |