Mercurial > emacs
comparison lisp/msb.el @ 49597:e88404e8f2cf
Trailing whitespace deleted.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Tue, 04 Feb 2003 12:29:42 +0000 |
parents | d5d5364f76be |
children | 695cf19ef79e d7ddb3e565de |
comparison
equal
deleted
inserted
replaced
49596:b06535145619 | 49597:e88404e8f2cf |
---|---|
39 ;; want. It's not that hard to customize, despite my not-so-good | 39 ;; want. It's not that hard to customize, despite my not-so-good |
40 ;; doc-string. Feel free to send me a better doc-string. | 40 ;; doc-string. Feel free to send me a better doc-string. |
41 ;; There are some constants for you to try here: | 41 ;; There are some constants for you to try here: |
42 ;; msb--few-menus | 42 ;; msb--few-menus |
43 ;; msb--very-many-menus (default) | 43 ;; msb--very-many-menus (default) |
44 ;; | 44 ;; |
45 ;; Look at the variable `msb-item-handling-function' for customization | 45 ;; Look at the variable `msb-item-handling-function' for customization |
46 ;; of the appearance of every menu item. Try for instance setting | 46 ;; of the appearance of every menu item. Try for instance setting |
47 ;; it to `msb-alon-item-handler'. | 47 ;; it to `msb-alon-item-handler'. |
48 ;; | 48 ;; |
49 ;; Look at the variable `msb-item-sort-function' for customization | 49 ;; Look at the variable `msb-item-sort-function' for customization |
50 ;; of sorting the menus. Set it to t for instance, which means no | 50 ;; of sorting the menus. Set it to t for instance, which means no |
51 ;; sorting - you will get latest used buffer first. | 51 ;; sorting - you will get latest used buffer first. |
52 ;; | 52 ;; |
53 ;; Also check out the variable `msb-display-invisible-buffers-p'. | 53 ;; Also check out the variable `msb-display-invisible-buffers-p'. |
318 (defcustom msb-most-recently-used-title "Most recently used (%d)" | 318 (defcustom msb-most-recently-used-title "Most recently used (%d)" |
319 "*The title for the most-recently-used menu." | 319 "*The title for the most-recently-used menu." |
320 :type 'string | 320 :type 'string |
321 :set 'msb-custom-set | 321 :set 'msb-custom-set |
322 :group 'msb) | 322 :group 'msb) |
323 | 323 |
324 (defvar msb-horizontal-shift-function '(lambda () 0) | 324 (defvar msb-horizontal-shift-function '(lambda () 0) |
325 "*Function that specifies how many pixels to shift the top menu leftwards.") | 325 "*Function that specifies how many pixels to shift the top menu leftwards.") |
326 | 326 |
327 (defcustom msb-display-invisible-buffers-p nil | 327 (defcustom msb-display-invisible-buffers-p nil |
328 "*Show invisible buffers or not. | 328 "*Show invisible buffers or not. |
360 :type '(choice (const msb-sort-by-name) | 360 :type '(choice (const msb-sort-by-name) |
361 (const :tag "Newest first" t) | 361 (const :tag "Newest first" t) |
362 (const :tag "Oldest first" nil)) | 362 (const :tag "Oldest first" nil)) |
363 :set 'msb-custom-set | 363 :set 'msb-custom-set |
364 :group 'msb) | 364 :group 'msb) |
365 | 365 |
366 (defcustom msb-files-by-directory nil | 366 (defcustom msb-files-by-directory nil |
367 "*Non-nil means that files should be sorted by directory. | 367 "*Non-nil means that files should be sorted by directory. |
368 This is instead of the groups in `msb-menu-cond'." | 368 This is instead of the groups in `msb-menu-cond'." |
369 :type 'boolean | 369 :type 'boolean |
370 :set 'msb-custom-set | 370 :set 'msb-custom-set |
727 (cons (cons (funcall (aref function-info 4) ;ITEM-HANDLER | 727 (cons (cons (funcall (aref function-info 4) ;ITEM-HANDLER |
728 buffer | 728 buffer |
729 max-buffer-name-length) | 729 max-buffer-name-length) |
730 buffer) | 730 buffer) |
731 (eval list-symbol))))) | 731 (eval list-symbol))))) |
732 | 732 |
733 (defsubst msb--choose-menu (buffer function-info-vector max-buffer-name-length) | 733 (defsubst msb--choose-menu (buffer function-info-vector max-buffer-name-length) |
734 "Select the appropriate menu for BUFFER." | 734 "Select the appropriate menu for BUFFER." |
735 ;; This is all side-effects, folks! | 735 ;; This is all side-effects, folks! |
736 ;; This should be optimized. | 736 ;; This should be optimized. |
737 (unless (and (not msb-display-invisible-buffers-p) | 737 (unless (and (not msb-display-invisible-buffers-p) |