changeset 45516:6b848a738ec6

(fringe-query-style): New fringe style "minimal".
author Simon Josefsson <jas@extundo.com>
date Sat, 25 May 2002 23:13:58 +0000
parents 01d9ac95e801
children 4d5df58cb5de
files lisp/fringe.el
diffstat 1 files changed, 10 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/fringe.el	Sat May 25 22:57:08 2002 +0000
+++ b/lisp/fringe.el	Sat May 25 23:13:58 2002 +0000
@@ -115,13 +115,14 @@
   (let ((mode (intern (completing-read
 		       "Select fringe mode for all frames (SPACE for list): "
 		       '(("none") ("default") ("left-only")
-			 ("right-only") ("half"))
+			 ("right-only") ("half") ("minimal"))
 		       nil t))))
     (cond ((eq mode 'none) 0)
 	  ((eq mode 'default) nil)
 	  ((eq mode 'left-only) '(nil . 0))
 	  ((eq mode 'right-only) '(0 . nil))
 	  ((eq mode 'half) '(5 . 5))
+	  ((eq mode 'minimal) '(1 . 1))
 	  ((eq mode (intern ""))
 	   (if (eq 0 (cdr (assq 'left-fringe
 				(if all-frames
@@ -134,10 +135,10 @@
 (defun fringe-mode (&optional mode)
   "Toggle appearance of fringes on all frames.
 Valid values for MODE include `none', `default', `left-only',
-`right-only' and `half'.  MODE can also be a cons cell where the
-integer in car will be used as left fringe width and the integer in
-cdr will be used as right fringe width. If MODE is not specified, the
-user is queried.
+`right-only', `minimal' and `half'.  MODE can also be a cons cell
+where the integer in car will be used as left fringe width and the
+integer in cdr will be used as right fringe width. If MODE is not
+specified, the user is queried.
 It applies to all frames that exist and frames to be created in the
 future.
 If you want to set appearance of fringes on the selected frame only,
@@ -149,10 +150,10 @@
 (defun set-fringe-style (&optional mode)
   "Set appearance of fringes on selected frame.
 Valid values for MODE include `none', `default', `left-only',
-`right-only' and `half'.  MODE can also be a cons cell where the
-integer in car will be used as left fringe width and the integer in
-cdr will be used as right fringe width. If MODE is not specified, the
-user is queried.
+`right-only', `minimal' and `half'.  MODE can also be a cons cell
+where the integer in car will be used as left fringe width and the
+integer in cdr will be used as right fringe width. If MODE is not
+specified, the user is queried.
 If you want to set appearance of fringes on all frames, see `fringe-mode'."
   (interactive (list (fringe-query-style)))
   (modify-frame-parameters