X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/7c82f3e23e37cc848a38b1f8be7149fd672a6393..d64d97e537301a9787a569982d67eed8ecdabe8b:/lisp/mh-e/mh-show.el diff --git a/lisp/mh-e/mh-show.el b/lisp/mh-e/mh-show.el index 7e123a84cb..87b048dbd6 100644 --- a/lisp/mh-e/mh-show.el +++ b/lisp/mh-e/mh-show.el @@ -1,8 +1,7 @@ ;;; mh-show.el --- MH-Show mode -;; Copyright (C) 1993, 1995, 1997, -;; 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 -;; Free Software Foundation, Inc. +;; Copyright (C) 1993, 1995, 1997, 2000-2013 Free Software Foundation, +;; Inc. ;; Author: Bill Wohler ;; Maintainer: Bill Wohler @@ -148,9 +147,7 @@ displayed." (if (not clean-message-header) (mh-start-of-uncleaned-message))) (mh-display-msg msg folder))) - (unless (if (fboundp 'window-full-height-p) - (window-full-height-p) - (= (1+ (window-height)) (frame-height))) ; not vertically split + (unless (mh-window-full-height-p) ; not vertically split (shrink-window (- (window-height) (or mh-summary-height (mh-summary-height))))) (mh-recenter nil) @@ -323,9 +320,9 @@ ignored if VISIBLE-HEADERS is non-nil." "Separate current buffer from the message file it was visiting." (or (not (buffer-modified-p)) (null buffer-file-name) ;we've been here before - (yes-or-no-p (format "Message %s modified; flush changes? " + (yes-or-no-p (format "Message %s modified; discard changes? " (file-name-nondirectory buffer-file-name))) - (error "Flushing changes not confirmed")) + (error "Changes preserved")) (clear-visited-file-modtime) (unlock-buffer) (setq buffer-file-name nil)) @@ -615,6 +612,7 @@ still visible.\n") "l" mh-show-list-folders "n" mh-index-new-messages "o" mh-show-visit-folder + "p" mh-show-pack-folder "q" mh-show-index-sequenced-messages "r" mh-show-rescan-folder "s" mh-search @@ -902,13 +900,14 @@ See also `mh-folder-mode'. (interactive) ;; Don't allow Gnus to create buttons while highlighting, maybe this is bad ;; style? - (flet ((gnus-article-add-button (&rest args) nil)) - (let* ((modified (buffer-modified-p)) - (gnus-article-buffer (buffer-name)) - (gnus-cite-face-list `(,@(cdr gnus-cite-face-list) - ,(car gnus-cite-face-list)))) - (gnus-article-highlight-citation t) - (set-buffer-modified-p modified)))) + (mh-cl-flet + ((gnus-article-add-button (&rest args) nil)) + (let* ((modified (buffer-modified-p)) + (gnus-article-buffer (buffer-name)) + (gnus-cite-face-list `(,@(cdr gnus-cite-face-list) + ,(car gnus-cite-face-list)))) + (gnus-article-highlight-citation t) + (set-buffer-modified-p modified)))) (provide 'mh-show)