diff options
| author | Simon Josefsson | 2002-05-25 23:14:11 +0000 |
|---|---|---|
| committer | Simon Josefsson | 2002-05-25 23:14:11 +0000 |
| commit | 19c8fe7542695ff68462a2412f5ebb0bdd4f8342 (patch) | |
| tree | 5518765344ae73753b768be25acccdd904fbdedb | |
| parent | 280b8e5990d077b6152965d9f180bdd8ff1c29c0 (diff) | |
| download | emacs-19c8fe7542695ff68462a2412f5ebb0bdd4f8342.tar.gz emacs-19c8fe7542695ff68462a2412f5ebb0bdd4f8342.zip | |
(fringe-query-style): New fringe style "minimal".
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/fringe.el | 19 |
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 @@ | |||
| 1 | 2002-05-26 Simon Josefsson <jas@extundo.com> | ||
| 2 | |||
| 3 | * fringe.el (fringe-query-style): New fringe style "minimal". | ||
| 4 | |||
| 1 | 2002-05-24 Simon Josefsson <jas@extundo.com> | 5 | 2002-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. |
| 136 | Valid values for MODE include `none', `default', `left-only', | 137 | Valid 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 |
| 138 | integer in car will be used as left fringe width and the integer in | 139 | where the integer in car will be used as left fringe width and the |
| 139 | cdr will be used as right fringe width. If MODE is not specified, the | 140 | integer in cdr will be used as right fringe width. If MODE is not |
| 140 | user is queried. | 141 | specified, the user is queried. |
| 141 | It applies to all frames that exist and frames to be created in the | 142 | It applies to all frames that exist and frames to be created in the |
| 142 | future. | 143 | future. |
| 143 | If you want to set appearance of fringes on the selected frame only, | 144 | If 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. |
| 151 | Valid values for MODE include `none', `default', `left-only', | 152 | Valid 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 |
| 153 | integer in car will be used as left fringe width and the integer in | 154 | where the integer in car will be used as left fringe width and the |
| 154 | cdr will be used as right fringe width. If MODE is not specified, the | 155 | integer in cdr will be used as right fringe width. If MODE is not |
| 155 | user is queried. | 156 | specified, the user is queried. |
| 156 | If you want to set appearance of fringes on all frames, see `fringe-mode'." | 157 | If 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 |