aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-09-23 13:24:44 +0200
committerLars Ingebrigtsen2019-09-23 13:24:44 +0200
commitabdc82c08fa57e1ba66b8c7efb44a7874ba221f7 (patch)
tree035a93c1b2d2e70774ce9cf9aa32856ac45c6b74
parenta90c5684a3dbb7f90bd96b45027100f9f7ffd80a (diff)
downloademacs-abdc82c08fa57e1ba66b8c7efb44a7874ba221f7.tar.gz
emacs-abdc82c08fa57e1ba66b8c7efb44a7874ba221f7.zip
Make "Show Hidden Headers" in Message buffers more obvious
* lisp/gnus/message.el (message-widen-and-recenter): New command to ensure that we show most of the headers (bug#23252). (message-mode-field-menu): Use it.
-rw-r--r--lisp/gnus/message.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index 35baae01f97..9de35bd44c0 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -2890,7 +2890,7 @@ systematically send encrypted emails when possible."
2890 ["Sort Headers" message-sort-headers t] 2890 ["Sort Headers" message-sort-headers t]
2891 ["Encode non-ASCII domain names" message-idna-to-ascii-rhs t] 2891 ["Encode non-ASCII domain names" message-idna-to-ascii-rhs t]
2892 ;; We hide `message-hidden-headers' by narrowing the buffer. 2892 ;; We hide `message-hidden-headers' by narrowing the buffer.
2893 ["Show Hidden Headers" widen t] 2893 ["Show Hidden Headers" message-widen-and-recenter t]
2894 ["Goto Body" message-goto-body t] 2894 ["Goto Body" message-goto-body t]
2895 ["Goto Signature" message-goto-signature t])) 2895 ["Goto Signature" message-goto-signature t]))
2896 2896
@@ -3369,6 +3369,12 @@ or in the synonym headers, defined by `message-header-synonyms'."
3369 3369
3370;;; Various commands 3370;;; Various commands
3371 3371
3372(defun message-widen-and-recenter ()
3373 "Widen the buffer and go to the start."
3374 (interactive)
3375 (widen)
3376 (goto-char (point-min)))
3377
3372(defun message-delete-not-region (beg end) 3378(defun message-delete-not-region (beg end)
3373 "Delete everything in the body of the current message outside of the region." 3379 "Delete everything in the body of the current message outside of the region."
3374 (interactive "r") 3380 (interactive "r")