diff options
author | Benjamin Barenblat <bbaren@mit.edu> | 2014-10-20 13:58:59 -0400 |
---|---|---|
committer | Benjamin Barenblat <bbaren@mit.edu> | 2014-10-20 14:05:17 -0400 |
commit | d5a49a857b4986dec2a0a6c90f701bc09ebcf81d (patch) | |
tree | 1ba151001c57b990dc91c1ec1c9bf862a1d86a7a /emacs/notmuch-lib.el | |
parent | dd8373fb571f93cf3bf824777e00278979ef2e21 (diff) |
Emacs has a slot in its display table, 'selective-display, which it uses
to store the character(s) it displays when text gets elided. This
commit ensures notmuch does not assume that string is ‘...’ – instead,
notmuch examines the display table and bases computations on its actual
contents.
Diffstat (limited to 'emacs/notmuch-lib.el')
-rw-r--r-- | emacs/notmuch-lib.el | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el index 1e166c6a..9ad4ab1e 100644 --- a/emacs/notmuch-lib.el +++ b/emacs/notmuch-lib.el @@ -465,6 +465,14 @@ This replaces spaces, percents, and double quotes in STR with (kill-new "") (message "Nothing to stash!"))) +(defun notmuch-common-selective-display-string () + "Determine the selective display string for the current buffer. +This is usually `...', but it can be reset." + (display-table-slot (or (window-display-table) + buffer-display-table + standard-display-table) + 'selective-display)) + ;; (defun notmuch-remove-if-not (predicate list) |