changeset 96889:f118ad76e286

(iswitchb-delim): New variable, suggested by Ted Roden.
author Stephen Eglen <stephen@gnu.org>
date Tue, 22 Jul 2008 08:46:20 +0000
parents 32da3745adc8
children 4cef8711fb9f
files lisp/iswitchb.el
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/iswitchb.el	Tue Jul 22 08:42:19 2008 +0000
+++ b/lisp/iswitchb.el	Tue Jul 22 08:46:20 2008 +0000
@@ -368,6 +368,11 @@
   :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 @@
 		  most-is-exact
 		  (alternatives
 		   (mapconcat (if most 'iswitchb-output-completion
-				'identity) comps ",")))
+				'identity) comps iswitchb-delim)))
 
 	     (concat
 
@@ -1363,7 +1368,7 @@
 	      ;; list all alternatives
 	      open-bracket-prospects
 	      (if most-is-exact
-		  (concat "," alternatives)
+		  (concat iswitchb-delim alternatives)
 		alternatives)
 	      close-bracket-prospects))))))