comparison lisp/mh-e/mh-utils.el @ 49598:0d8b17d428b5

Trailing whitepace deleted.
author Juanma Barranquero <lekktu@gmail.com>
date Tue, 04 Feb 2003 13:24:35 +0000
parents b35587af8747
children 7dd3d5eae9c7 d7ddb3e565de
comparison
equal deleted inserted replaced
49597:e88404e8f2cf 49598:0d8b17d428b5
28 28
29 ;; Internal support for MH-E package. 29 ;; Internal support for MH-E package.
30 30
31 ;;; Change Log: 31 ;;; Change Log:
32 32
33 ;; $Id: mh-utils.el,v 1.214 2003/01/27 04:42:23 wohler Exp $ 33 ;; $Id: mh-utils.el,v 1.2 2003/02/03 20:55:30 wohler Exp $
34 34
35 ;;; Code: 35 ;;; Code:
36 36
37 ;; Is this XEmacs-land? Located here since needed by mh-customize.el. 37 ;; Is this XEmacs-land? Located here since needed by mh-customize.el.
38 (defvar mh-xemacs-flag (featurep 'xemacs) 38 (defvar mh-xemacs-flag (featurep 'xemacs)
516 ;; Buffer that displays message for this folder. 516 ;; Buffer that displays message for this folder.
517 (defvar mh-show-buffer nil) 517 (defvar mh-show-buffer nil)
518 518
519 ;; Full path of directory for this folder. 519 ;; Full path of directory for this folder.
520 (defvar mh-folder-filename nil) 520 (defvar mh-folder-filename nil)
521 521
522 ;;Number of msgs in buffer. 522 ;;Number of msgs in buffer.
523 (defvar mh-msg-count nil) 523 (defvar mh-msg-count nil)
524 524
525 ;; If non-nil, show the message in a separate window. 525 ;; If non-nil, show the message in a separate window.
526 (defvar mh-showing-mode nil) 526 (defvar mh-showing-mode nil)
656 (file-name-nondirectory buffer-file-name))) 656 (file-name-nondirectory buffer-file-name)))
657 (error "Flushing changes not confirmed")) 657 (error "Flushing changes not confirmed"))
658 (clear-visited-file-modtime) 658 (clear-visited-file-modtime)
659 (unlock-buffer) 659 (unlock-buffer)
660 (setq buffer-file-name nil)) 660 (setq buffer-file-name nil))
661 661
662 ;;;###mh-autoload 662 ;;;###mh-autoload
663 (defun mh-get-msg-num (error-if-no-message) 663 (defun mh-get-msg-num (error-if-no-message)
664 "Return the message number of the displayed message. 664 "Return the message number of the displayed message.
665 If the argument ERROR-IF-NO-MESSAGE is non-nil, then complain if the cursor is 665 If the argument ERROR-IF-NO-MESSAGE is non-nil, then complain if the cursor is
666 not pointing to a message." 666 not pointing to a message."
1530 (end (match-end 1))) 1530 (end (match-end 1)))
1531 (concat (substring fmt 0 begin) 1531 (concat (substring fmt 0 begin)
1532 (format mh-scan-msg-format-string width) 1532 (format mh-scan-msg-format-string width)
1533 (substring fmt end)))) 1533 (substring fmt end))))
1534 fmt)) 1534 fmt))
1535 1535
1536 (defun mh-message-number-width (folder) 1536 (defun mh-message-number-width (folder)
1537 "Return the widest message number in this FOLDER." 1537 "Return the widest message number in this FOLDER."
1538 (or mh-progs (mh-find-path)) 1538 (or mh-progs (mh-find-path))
1539 (let ((tmp-buffer (get-buffer-create mh-temp-buffer)) 1539 (let ((tmp-buffer (get-buffer-create mh-temp-buffer))
1540 (width 0)) 1540 (width 0))