diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/emacs-lisp/tabulated-list.el | 13 |
2 files changed, 18 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 373ae63bfe5..2e024d34981 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2011-04-18 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * emacs-lisp/tabulated-list.el (tabulated-list-mode): Use a custom | ||
| 4 | glyphless-char-display table. | ||
| 5 | (tabulated-list-glyphless-char-display): New var. | ||
| 6 | |||
| 1 | 2011-04-18 Sam Steingold <sds@gnu.org> | 7 | 2011-04-18 Sam Steingold <sds@gnu.org> |
| 2 | 8 | ||
| 3 | * vc/add-log.el (change-log-font-lock-keywords): Add "Thanks to" | 9 | * vc/add-log.el (change-log-font-lock-keywords): Add "Thanks to" |
diff --git a/lisp/emacs-lisp/tabulated-list.el b/lisp/emacs-lisp/tabulated-list.el index 6409c2206bc..2fdfa9525b1 100644 --- a/lisp/emacs-lisp/tabulated-list.el +++ b/lisp/emacs-lisp/tabulated-list.el | |||
| @@ -143,6 +143,15 @@ If ADVANCE is non-nil, move forward by one line afterwards." | |||
| 143 | map) | 143 | map) |
| 144 | "Local keymap for `tabulated-list-mode' sort buttons.") | 144 | "Local keymap for `tabulated-list-mode' sort buttons.") |
| 145 | 145 | ||
| 146 | (defvar tabulated-list-glyphless-char-display | ||
| 147 | (let ((table (make-char-table 'glyphless-char-display nil))) | ||
| 148 | (set-char-table-parent table glyphless-char-display) | ||
| 149 | ;; Some text terminals can't display the unicode arrows; be safe. | ||
| 150 | (aset table 9650 (cons nil "^")) | ||
| 151 | (aset table 9660 (cons nil "v")) | ||
| 152 | table) | ||
| 153 | "The `glyphless-char-display' table in Tabulated List buffers.") | ||
| 154 | |||
| 146 | (defun tabulated-list-init-header () | 155 | (defun tabulated-list-init-header () |
| 147 | "Set up header line for the Tabulated List buffer." | 156 | "Set up header line for the Tabulated List buffer." |
| 148 | (let ((x tabulated-list-padding) | 157 | (let ((x tabulated-list-padding) |
| @@ -341,7 +350,9 @@ as the ewoc pretty-printer." | |||
| 341 | (setq truncate-lines t) | 350 | (setq truncate-lines t) |
| 342 | (setq buffer-read-only t) | 351 | (setq buffer-read-only t) |
| 343 | (set (make-local-variable 'revert-buffer-function) | 352 | (set (make-local-variable 'revert-buffer-function) |
| 344 | 'tabulated-list-revert)) | 353 | 'tabulated-list-revert) |
| 354 | (set (make-local-variable 'glyphless-char-display) | ||
| 355 | tabulated-list-glyphless-char-display)) | ||
| 345 | 356 | ||
| 346 | (put 'tabulated-list-mode 'mode-class 'special) | 357 | (put 'tabulated-list-mode 'mode-class 'special) |
| 347 | 358 | ||