aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2007-10-03 16:43:10 +0000
committerJuanma Barranquero2007-10-03 16:43:10 +0000
commitb75ccc22ae016738fe416aef261210c4ac45aa9c (patch)
tree5c65e9b76c92a7d54698067b6e883afba78c5243
parent6af00b6740bf4099b5c2edb64c56f282fd8132fd (diff)
downloademacs-b75ccc22ae016738fe416aef261210c4ac45aa9c.tar.gz
emacs-b75ccc22ae016738fe416aef261210c4ac45aa9c.zip
(bs-string-show-normally, bs-sort-functions, bs--get-file-name):
Fix typos in docstrings. (bs-buffer-sort-function, bs-mouse-select-other-frame, bs-visits-non-file, bs-sort-buffer-interns-are-last, bs-show): Doc fixes.
-rw-r--r--lisp/bs.el19
1 files changed, 10 insertions, 9 deletions
diff --git a/lisp/bs.el b/lisp/bs.el
index 2c09e606cc5..a7f46afdf3b 100644
--- a/lisp/bs.el
+++ b/lisp/bs.el
@@ -242,7 +242,8 @@ The function gets one argument - the buffer to test.")
242 242
243(defvar bs-buffer-sort-function nil 243(defvar bs-buffer-sort-function nil
244 "Sort function to sort the buffers that appear in Buffer Selection Menu. 244 "Sort function to sort the buffers that appear in Buffer Selection Menu.
245The function gets two arguments - the buffers to compare.") 245The function gets two arguments - the buffers to compare.
246It must return non-nil if the first buffer should sort before the second.")
246 247
247(defcustom bs-maximal-buffer-name-column 45 248(defcustom bs-maximal-buffer-name-column 45
248 "*Maximum column width for buffer names. 249 "*Maximum column width for buffer names.
@@ -335,7 +336,7 @@ Must be a string used in `bs-configurations' for naming a configuration."
335 :type 'string) 336 :type 'string)
336 337
337(defcustom bs-string-show-normally " " 338(defcustom bs-string-show-normally " "
338 "*String added in column 1 indicating a unmarked buffer." 339 "*String added in column 1 indicating an unmarked buffer."
339 :group 'bs-appearance 340 :group 'bs-appearance
340 :type 'string) 341 :type 'string)
341 342
@@ -391,9 +392,9 @@ A value of `always' means to show buffer regardless of the configuration.")
391 ("by nothing" nil nil nil)) 392 ("by nothing" nil nil nil))
392 "*List of all possible sorting aspects for Buffer Selection Menu. 393 "*List of all possible sorting aspects for Buffer Selection Menu.
393You can add a new entry with a call to `bs-define-sort-function'. 394You can add a new entry with a call to `bs-define-sort-function'.
394Each element is a list of four elements (NAME FUNCTION REGEXP-FOR-SORTING FACE) 395Each element is a list of four elements (NAME FUNCTION REGEXP-FOR-SORTING FACE).
395NAME specifies the sort order defined by function FUNCTION. 396NAME specifies the sort order defined by function FUNCTION.
396FUNCTION nil means don't sort the buffer list. Otherwise the functions 397FUNCTION nil means don't sort the buffer list. Otherwise the function
397must have two parameters - the buffers to compare. 398must have two parameters - the buffers to compare.
398REGEXP-FOR-SORTING is a regular expression which describes the 399REGEXP-FOR-SORTING is a regular expression which describes the
399column title to highlight. 400column title to highlight.
@@ -777,7 +778,7 @@ Leave Buffer Selection Menu."
777(defun bs-mouse-select-other-frame (event) 778(defun bs-mouse-select-other-frame (event)
778 "Select selected line's buffer in new created frame. 779 "Select selected line's buffer in new created frame.
779Leave Buffer Selection Menu. 780Leave Buffer Selection Menu.
780EVENT: a mouse click EVENT." 781EVENT: a mouse click event."
781 (interactive "e") 782 (interactive "e")
782 (mouse-set-point event) 783 (mouse-set-point event)
783 (bs-select-other-frame)) 784 (bs-select-other-frame))
@@ -1019,13 +1020,13 @@ If at end of buffer list go to first line."
1019 (forward-line 1))) 1020 (forward-line 1)))
1020 1021
1021(defun bs-visits-non-file (buffer) 1022(defun bs-visits-non-file (buffer)
1022 "Return t or nil whether BUFFER visits no file. 1023 "Return whether BUFFER visits no file.
1023A value of t means BUFFER belongs to no file. 1024A value of t means BUFFER belongs to no file.
1024A value of nil means BUFFER belongs to a file." 1025A value of nil means BUFFER belongs to a file."
1025 (not (buffer-file-name buffer))) 1026 (not (buffer-file-name buffer)))
1026 1027
1027(defun bs-sort-buffer-interns-are-last (b1 b2) 1028(defun bs-sort-buffer-interns-are-last (b1 b2)
1028 "Function for sorting internal buffers B1 and B2 at the end of all buffers." 1029 "Function for sorting internal buffers at the end of all buffers."
1029 (string-match "^\\*" (buffer-name b2))) 1030 (string-match "^\\*" (buffer-name b2)))
1030 1031
1031;; ---------------------------------------------------------------------- 1032;; ----------------------------------------------------------------------
@@ -1335,7 +1336,7 @@ This is the variable `buffer-file-name' of current buffer.
1335If current mode is `dired-mode' or `shell-mode' it returns the 1336If current mode is `dired-mode' or `shell-mode' it returns the
1336default directory. 1337default directory.
1337START-BUFFER is the buffer where we started buffer selection. 1338START-BUFFER is the buffer where we started buffer selection.
1338ALL-BUFFERS is the list of buffer appearing in Buffer Selection Menu." 1339ALL-BUFFERS is the list of buffers appearing in Buffer Selection Menu."
1339 (propertize (if (member major-mode '(shell-mode dired-mode)) 1340 (propertize (if (member major-mode '(shell-mode dired-mode))
1340 default-directory 1341 default-directory
1341 (or buffer-file-name "")) 1342 (or buffer-file-name ""))
@@ -1469,7 +1470,7 @@ Otherwise return `bs-alternative-configuration'."
1469 "Make a menu of buffers so you can manipulate buffers or the buffer list. 1470 "Make a menu of buffers so you can manipulate buffers or the buffer list.
1470\\<bs-mode-map> 1471\\<bs-mode-map>
1471There are many key commands similar to `Buffer-menu-mode' for 1472There are many key commands similar to `Buffer-menu-mode' for
1472manipulating buffer list and buffers itself. 1473manipulating the buffer list and the buffers themselves.
1473User can move with [up] or [down], select a buffer 1474User can move with [up] or [down], select a buffer
1474by \\[bs-select] or [SPC]\n 1475by \\[bs-select] or [SPC]\n
1475Type \\[bs-kill] to leave Buffer Selection Menu without a selection. 1476Type \\[bs-kill] to leave Buffer Selection Menu without a selection.