diff options
| author | Stefan Kangas | 2022-11-19 12:51:31 +0100 |
|---|---|---|
| committer | Stefan Kangas | 2022-11-19 12:51:31 +0100 |
| commit | 46ceb2ac4bceec9c5fb55d9d02a34e2c78136cf3 (patch) | |
| tree | 2e61d9ad3b64e115ae79ffb41894de28de71fe47 | |
| parent | 87dd44e982048db8170095e8a76204d77297ea29 (diff) | |
| download | emacs-46ceb2ac4bceec9c5fb55d9d02a34e2c78136cf3.tar.gz emacs-46ceb2ac4bceec9c5fb55d9d02a34e2c78136cf3.zip | |
; Fix typos in bs.el
* lisp/bs.el: Fix typos.
(bs-define-sort-function, bs-cycle-next, bs-cycle-previous): Fix
variable name typo.
| -rw-r--r-- | lisp/bs.el | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/lisp/bs.el b/lisp/bs.el index 060bae6fdd8..1fd31fb3b85 100644 --- a/lisp/bs.el +++ b/lisp/bs.el | |||
| @@ -25,7 +25,7 @@ | |||
| 25 | 25 | ||
| 26 | ;;; Commentary: | 26 | ;;; Commentary: |
| 27 | 27 | ||
| 28 | ;; The bs-package contains a main function bs-show for popping up a | 28 | ;; The bs package contains a main function `bs-show' for popping up a |
| 29 | ;; buffer in a way similar to `list-buffers' and `electric-buffer-list': | 29 | ;; buffer in a way similar to `list-buffers' and `electric-buffer-list': |
| 30 | ;; The new buffer offers a Buffer Selection Menu for manipulating | 30 | ;; The new buffer offers a Buffer Selection Menu for manipulating |
| 31 | ;; the buffer list and buffers. | 31 | ;; the buffer list and buffers. |
| @@ -42,18 +42,18 @@ | |||
| 42 | 42 | ||
| 43 | ;;; Quick Installation and Customization: | 43 | ;;; Quick Installation and Customization: |
| 44 | 44 | ||
| 45 | ;; To display the bs menu, do | 45 | ;; To display the bs menu, type |
| 46 | ;; M-x bs-show | 46 | ;; M-x bs-show |
| 47 | ;; To customize its behavior, do | 47 | ;; To customize its behavior, type |
| 48 | ;; M-x bs-customize | 48 | ;; M-x bs-customize |
| 49 | 49 | ||
| 50 | ;;; More Commentary: | 50 | ;;; More Commentary: |
| 51 | 51 | ||
| 52 | ;; bs-show will generate a new buffer named *buffer-selection*, which shows | 52 | ;; `bs-show' will generate a new buffer named *buffer-selection*, which shows |
| 53 | ;; all buffers or a subset of them, and has possibilities for deleting, | 53 | ;; all buffers or a subset of them, and has possibilities for deleting, |
| 54 | ;; saving and selecting buffers. For more details see docstring of | 54 | ;; saving and selecting buffers. For more details see docstring of |
| 55 | ;; function `bs-mode'. A current configuration describes which buffers appear | 55 | ;; function `bs-mode'. A current configuration describes which buffers appear |
| 56 | ;; in *buffer-selection*. See docstring of variable `bs-configurations' for | 56 | ;; in *buffer-selection*. See docstring of variable `bs-configurations' for |
| 57 | ;; more details. | 57 | ;; more details. |
| 58 | ;; | 58 | ;; |
| 59 | ;; The package bs combines the advantages of the Emacs functions | 59 | ;; The package bs combines the advantages of the Emacs functions |
| @@ -70,7 +70,7 @@ | |||
| 70 | 70 | ||
| 71 | ;;; Cycling through buffers | 71 | ;;; Cycling through buffers |
| 72 | 72 | ||
| 73 | ;; This package offers two functions for buffer cycling. If you want to cycle | 73 | ;; This package offers two functions for buffer cycling. If you want to cycle |
| 74 | ;; through buffer list you can use `bs-cycle-next' or `bs-cycle-previous'. | 74 | ;; through buffer list you can use `bs-cycle-next' or `bs-cycle-previous'. |
| 75 | ;; Bind these function to a key like | 75 | ;; Bind these function to a key like |
| 76 | ;; (global-set-key [(f9)] 'bs-cycle-previous) | 76 | ;; (global-set-key [(f9)] 'bs-cycle-previous) |
| @@ -80,7 +80,7 @@ | |||
| 80 | ;; to go through internal buffers like *Messages*. | 80 | ;; to go through internal buffers like *Messages*. |
| 81 | ;; | 81 | ;; |
| 82 | ;; Cycling through buffers ignores sorting because sorting destroys | 82 | ;; Cycling through buffers ignores sorting because sorting destroys |
| 83 | ;; the logical buffer list. If buffer list is sorted by size you | 83 | ;; the logical buffer list. If buffer list is sorted by size you |
| 84 | ;; won't be able to cycle to the smallest buffer. | 84 | ;; won't be able to cycle to the smallest buffer. |
| 85 | 85 | ||
| 86 | ;;; Customization: | 86 | ;;; Customization: |
| @@ -114,7 +114,7 @@ | |||
| 114 | ;; When cycling through buffer list the functions for cycling will use | 114 | ;; When cycling through buffer list the functions for cycling will use |
| 115 | ;; the current configuration of bs to calculate the buffer list. | 115 | ;; the current configuration of bs to calculate the buffer list. |
| 116 | ;; If you want to use a different configuration for cycling you have to set | 116 | ;; If you want to use a different configuration for cycling you have to set |
| 117 | ;; the variable `bs-cycle-configuration-name'. You can customize this variable. | 117 | ;; the variable `bs-cycle-configuration-name'. You can customize this variable. |
| 118 | ;; | 118 | ;; |
| 119 | ;; For example: If you use the configuration called "files-and-scratch" you | 119 | ;; For example: If you use the configuration called "files-and-scratch" you |
| 120 | ;; can cycle through all file buffers and *scratch* although your current | 120 | ;; can cycle through all file buffers and *scratch* although your current |
| @@ -390,9 +390,9 @@ column title to highlight. | |||
| 390 | FACE is a face used to fontify the sorted column title. A value of nil means | 390 | FACE is a face used to fontify the sorted column title. A value of nil means |
| 391 | don't highlight. | 391 | don't highlight. |
| 392 | The new sort aspect will be inserted into list `bs-sort-functions'." | 392 | The new sort aspect will be inserted into list `bs-sort-functions'." |
| 393 | (let ((tupel (assoc name bs-sort-functions))) | 393 | (let ((tuple (assoc name bs-sort-functions))) |
| 394 | (if tupel | 394 | (if tuple |
| 395 | (setcdr tupel (list fun regexp-for-sorting face)) | 395 | (setcdr tuple (list fun regexp-for-sorting face)) |
| 396 | (setq bs-sort-functions | 396 | (setq bs-sort-functions |
| 397 | (cons (list name fun regexp-for-sorting face) | 397 | (cons (list name fun regexp-for-sorting face) |
| 398 | bs-sort-functions))))) | 398 | bs-sort-functions))))) |
| @@ -1240,13 +1240,13 @@ by buffer configuration `bs-cycle-configuration-name'." | |||
| 1240 | (bs-set-configuration (or bs-cycle-configuration-name bs-default-configuration)) | 1240 | (bs-set-configuration (or bs-cycle-configuration-name bs-default-configuration)) |
| 1241 | (let ((bs-buffer-sort-function nil) | 1241 | (let ((bs-buffer-sort-function nil) |
| 1242 | (bs--current-sort-function nil)) | 1242 | (bs--current-sort-function nil)) |
| 1243 | (let* ((tupel (bs-next-buffer (if (or (eq last-command | 1243 | (let* ((tuple (bs-next-buffer (if (or (eq last-command |
| 1244 | 'bs-cycle-next) | 1244 | 'bs-cycle-next) |
| 1245 | (eq last-command | 1245 | (eq last-command |
| 1246 | 'bs-cycle-previous)) | 1246 | 'bs-cycle-previous)) |
| 1247 | bs--cycle-list))) | 1247 | bs--cycle-list))) |
| 1248 | (next (car tupel)) | 1248 | (next (car tuple)) |
| 1249 | (cycle-list (cdr tupel))) | 1249 | (cycle-list (cdr tuple))) |
| 1250 | ;; We don't want the frame iconified if the only window in the frame | 1250 | ;; We don't want the frame iconified if the only window in the frame |
| 1251 | ;; happens to be dedicated. | 1251 | ;; happens to be dedicated. |
| 1252 | (bury-buffer (current-buffer)) | 1252 | (bury-buffer (current-buffer)) |
| @@ -1272,13 +1272,13 @@ by buffer configuration `bs-cycle-configuration-name'." | |||
| 1272 | (bs-set-configuration (or bs-cycle-configuration-name bs-default-configuration)) | 1272 | (bs-set-configuration (or bs-cycle-configuration-name bs-default-configuration)) |
| 1273 | (let ((bs-buffer-sort-function nil) | 1273 | (let ((bs-buffer-sort-function nil) |
| 1274 | (bs--current-sort-function nil)) | 1274 | (bs--current-sort-function nil)) |
| 1275 | (let* ((tupel (bs-previous-buffer (if (or (eq last-command | 1275 | (let* ((tuple (bs-previous-buffer (if (or (eq last-command |
| 1276 | 'bs-cycle-next) | 1276 | 'bs-cycle-next) |
| 1277 | (eq last-command | 1277 | (eq last-command |
| 1278 | 'bs-cycle-previous)) | 1278 | 'bs-cycle-previous)) |
| 1279 | bs--cycle-list))) | 1279 | bs--cycle-list))) |
| 1280 | (prev-buffer (car tupel)) | 1280 | (prev-buffer (car tuple)) |
| 1281 | (cycle-list (cdr tupel))) | 1281 | (cycle-list (cdr tuple))) |
| 1282 | (switch-to-buffer prev-buffer nil t) | 1282 | (switch-to-buffer prev-buffer nil t) |
| 1283 | (setq bs--cycle-list (append (last cycle-list) | 1283 | (setq bs--cycle-list (append (last cycle-list) |
| 1284 | (reverse (cdr (reverse cycle-list))))) | 1284 | (reverse (cdr (reverse cycle-list))))) |