aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorStefan Monnier2013-04-26 10:47:07 -0400
committerStefan Monnier2013-04-26 10:47:07 -0400
commit140ef50c0494870fd6b817f8f9b7e8d2cee81b64 (patch)
tree4ba69f1489c4bbd55faa67a92b63d2655888f662 /lisp
parente53052d3bf33296268db3aadcf5531f69f8e55ae (diff)
downloademacs-140ef50c0494870fd6b817f8f9b7e8d2cee81b64.tar.gz
emacs-140ef50c0494870fd6b817f8f9b7e8d2cee81b64.zip
* lisp/emacs-lisp/tabulated-list.el (tabulated-list-mode): Disable undo.
Fixes: debbugs:14274
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/emacs-lisp/tabulated-list.el11
2 files changed, 8 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e236b923932..290f23a3550 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12013-04-26 Stefan Monnier <monnier@iro.umontreal.ca> 12013-04-26 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * emacs-lisp/tabulated-list.el (tabulated-list-mode): Disable undo
4 (bug#14274).
5
3 * progmodes/octave.el (octave-smie-forward-token): Properly skip 6 * progmodes/octave.el (octave-smie-forward-token): Properly skip
4 \n and comment, even if it's not an implicit ; (bug#14218). 7 \n and comment, even if it's not an implicit ; (bug#14218).
5 8
diff --git a/lisp/emacs-lisp/tabulated-list.el b/lisp/emacs-lisp/tabulated-list.el
index da487e463e2..6dba423010f 100644
--- a/lisp/emacs-lisp/tabulated-list.el
+++ b/lisp/emacs-lisp/tabulated-list.el
@@ -519,12 +519,11 @@ printer is `tabulated-list-print-entry', but a mode that keeps
519data in an ewoc may instead specify a printer function (e.g., one 519data in an ewoc may instead specify a printer function (e.g., one
520that calls `ewoc-enter-last'), with `tabulated-list-print-entry' 520that calls `ewoc-enter-last'), with `tabulated-list-print-entry'
521as the ewoc pretty-printer." 521as the ewoc pretty-printer."
522 (setq truncate-lines t) 522 (setq-local truncate-lines t)
523 (setq buffer-read-only t) 523 (setq-local buffer-read-only t)
524 (set (make-local-variable 'revert-buffer-function) 524 (setq-local buffer-undo-list t)
525 'tabulated-list-revert) 525 (setq-local revert-buffer-function #'tabulated-list-revert)
526 (set (make-local-variable 'glyphless-char-display) 526 (setq-local glyphless-char-display tabulated-list-glyphless-char-display))
527 tabulated-list-glyphless-char-display))
528 527
529(put 'tabulated-list-mode 'mode-class 'special) 528(put 'tabulated-list-mode 'mode-class 'special)
530 529