aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Josefsson2002-05-25 23:14:11 +0000
committerSimon Josefsson2002-05-25 23:14:11 +0000
commit19c8fe7542695ff68462a2412f5ebb0bdd4f8342 (patch)
tree5518765344ae73753b768be25acccdd904fbdedb
parent280b8e5990d077b6152965d9f180bdd8ff1c29c0 (diff)
downloademacs-19c8fe7542695ff68462a2412f5ebb0bdd4f8342.tar.gz
emacs-19c8fe7542695ff68462a2412f5ebb0bdd4f8342.zip
(fringe-query-style): New fringe style "minimal".
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/fringe.el19
2 files changed, 14 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 4972523657a..a92edd214e5 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12002-05-26 Simon Josefsson <jas@extundo.com>
2
3 * fringe.el (fringe-query-style): New fringe style "minimal".
4
12002-05-24 Simon Josefsson <jas@extundo.com> 52002-05-24 Simon Josefsson <jas@extundo.com>
2 6
3 * rot13.el (rot13-translate-table): New variable. 7 * rot13.el (rot13-translate-table): New variable.
diff --git a/lisp/fringe.el b/lisp/fringe.el
index 67dae5c1b49..5a4dce128c6 100644
--- a/lisp/fringe.el
+++ b/lisp/fringe.el
@@ -115,13 +115,14 @@ frame parameter is used."
115 (let ((mode (intern (completing-read 115 (let ((mode (intern (completing-read
116 "Select fringe mode for all frames (SPACE for list): " 116 "Select fringe mode for all frames (SPACE for list): "
117 '(("none") ("default") ("left-only") 117 '(("none") ("default") ("left-only")
118 ("right-only") ("half")) 118 ("right-only") ("half") ("minimal"))
119 nil t)))) 119 nil t))))
120 (cond ((eq mode 'none) 0) 120 (cond ((eq mode 'none) 0)
121 ((eq mode 'default) nil) 121 ((eq mode 'default) nil)
122 ((eq mode 'left-only) '(nil . 0)) 122 ((eq mode 'left-only) '(nil . 0))
123 ((eq mode 'right-only) '(0 . nil)) 123 ((eq mode 'right-only) '(0 . nil))
124 ((eq mode 'half) '(5 . 5)) 124 ((eq mode 'half) '(5 . 5))
125 ((eq mode 'minimal) '(1 . 1))
125 ((eq mode (intern "")) 126 ((eq mode (intern ""))
126 (if (eq 0 (cdr (assq 'left-fringe 127 (if (eq 0 (cdr (assq 'left-fringe
127 (if all-frames 128 (if all-frames
@@ -134,10 +135,10 @@ frame parameter is used."
134(defun fringe-mode (&optional mode) 135(defun fringe-mode (&optional mode)
135 "Toggle appearance of fringes on all frames. 136 "Toggle appearance of fringes on all frames.
136Valid values for MODE include `none', `default', `left-only', 137Valid values for MODE include `none', `default', `left-only',
137`right-only' and `half'. MODE can also be a cons cell where the 138`right-only', `minimal' and `half'. MODE can also be a cons cell
138integer in car will be used as left fringe width and the integer in 139where the integer in car will be used as left fringe width and the
139cdr will be used as right fringe width. If MODE is not specified, the 140integer in cdr will be used as right fringe width. If MODE is not
140user is queried. 141specified, the user is queried.
141It applies to all frames that exist and frames to be created in the 142It applies to all frames that exist and frames to be created in the
142future. 143future.
143If you want to set appearance of fringes on the selected frame only, 144If you want to set appearance of fringes on the selected frame only,
@@ -149,10 +150,10 @@ see `set-fringe-style'."
149(defun set-fringe-style (&optional mode) 150(defun set-fringe-style (&optional mode)
150 "Set appearance of fringes on selected frame. 151 "Set appearance of fringes on selected frame.
151Valid values for MODE include `none', `default', `left-only', 152Valid values for MODE include `none', `default', `left-only',
152`right-only' and `half'. MODE can also be a cons cell where the 153`right-only', `minimal' and `half'. MODE can also be a cons cell
153integer in car will be used as left fringe width and the integer in 154where the integer in car will be used as left fringe width and the
154cdr will be used as right fringe width. If MODE is not specified, the 155integer in cdr will be used as right fringe width. If MODE is not
155user is queried. 156specified, the user is queried.
156If you want to set appearance of fringes on all frames, see `fringe-mode'." 157If you want to set appearance of fringes on all frames, see `fringe-mode'."
157 (interactive (list (fringe-query-style))) 158 (interactive (list (fringe-query-style)))
158 (modify-frame-parameters 159 (modify-frame-parameters