summaryrefslogtreecommitdiff
path: root/lisp/iswitchb.el
diff options
context:
space:
mode:
authorStephen Eglen <stephen@gnu.org>2008-07-22 08:47:00 +0000
committerStephen Eglen <stephen@gnu.org>2008-07-22 08:47:00 +0000
commit6a0e4c608b39e90e2997808b1cca7909edbe5b3f (patch)
treefc7323a4350d05c43a4ae9082333cac767c6a603 /lisp/iswitchb.el
parent276db9eb1f0c757815434a1a699740ded3518abc (diff)
downloademacs-6a0e4c608b39e90e2997808b1cca7909edbe5b3f.tar.gz
(iswitchb-delim): New variable, suggested by Ted Roden.
Diffstat (limited to 'lisp/iswitchb.el')
-rw-r--r--lisp/iswitchb.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/iswitchb.el b/lisp/iswitchb.el
index dfc58d4165d..b3dce824c36 100644
--- a/lisp/iswitchb.el
+++ b/lisp/iswitchb.el
@@ -368,6 +368,11 @@ See also `iswitchb-newbuffer'."
:type 'hook
:group 'iswitchb)
+(defcustom iswitchb-delim ","
+ "Delimiter to put between buffer names when displaying results."
+ :type 'string
+ :group 'iswitchb)
+
(defvar iswitchb-all-frames 'visible
"*Argument to pass to `walk-windows' when finding visible buffers.
See documentation of `walk-windows' for useful values.")
@@ -1340,7 +1345,7 @@ Modified from `icomplete-completions'."
most-is-exact
(alternatives
(mapconcat (if most 'iswitchb-output-completion
- 'identity) comps ",")))
+ 'identity) comps iswitchb-delim)))
(concat
@@ -1363,7 +1368,7 @@ Modified from `icomplete-completions'."
;; list all alternatives
open-bracket-prospects
(if most-is-exact
- (concat "," alternatives)
+ (concat iswitchb-delim alternatives)
alternatives)
close-bracket-prospects))))))