aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2008-06-04 11:14:07 +0000
committerJuanma Barranquero2008-06-04 11:14:07 +0000
commit12de509923ddb43fb7d3504694f86414f7429cec (patch)
treed424bdf1455e824bada800188f2b39f1f53b3f56
parentc0e16b143680b9ecb51122add128577925d34159 (diff)
downloademacs-12de509923ddb43fb7d3504694f86414f7429cec.tar.gz
emacs-12de509923ddb43fb7d3504694f86414f7429cec.zip
(variable-pitch-mode): Reflow docstrings.
(text-scale-mode, adjust-buffer-face-height): Fix typos in docstrings.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/face-remap.el40
2 files changed, 26 insertions, 21 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 21c2db58798..f90d5d13d37 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12008-06-04 Juanma Barranquero <lekktu@gmail.com>
2
3 * face-remap.el (variable-pitch-mode): Reflow docstrings.
4 (text-scale-mode, adjust-buffer-face-height): Fix typos in docstrings.
5
12008-06-04 Trent W. Buck <trentbuck@gmail.com> (tiny change) 62008-06-04 Trent W. Buck <trentbuck@gmail.com> (tiny change)
2 7
3 * emacs-lisp/rx.el (rx): Doc fix. 8 * emacs-lisp/rx.el (rx): Doc fix.
@@ -63,7 +68,7 @@
63 68
64 * Makefile.in (ELCFILES): Add $(lisp)/language/hanja-util.elc. 69 * Makefile.in (ELCFILES): Add $(lisp)/language/hanja-util.elc.
65 70
662008-06-03 Jihyun Cho <jihyun.jo@gmail.com> 712008-06-03 Jihyun Cho <jihyun.jo@gmail.com>
67 72
68 * language/hanja-util.el: New file. 73 * language/hanja-util.el: New file.
69 74
diff --git a/lisp/face-remap.el b/lisp/face-remap.el
index f53e37e969e..27c237162ed 100644
--- a/lisp/face-remap.el
+++ b/lisp/face-remap.el
@@ -132,7 +132,7 @@ not inherit from the global definition of FACE."
132 (if entry 132 (if entry
133 (setcar (last entry) specs) ; overwrite existing base entry 133 (setcar (last entry) specs) ; overwrite existing base entry
134 (push (list face specs) face-remapping-alist))))) 134 (push (list face specs) face-remapping-alist)))))
135 135
136 136
137;; ---------------------------------------------------------------- 137;; ----------------------------------------------------------------
138;; text-scale-mode 138;; text-scale-mode
@@ -159,14 +159,14 @@ Each positive or negative step scales the default face height by this amount."
159 "Minor mode for displaying buffer text in a larger/smaller font than usual. 159 "Minor mode for displaying buffer text in a larger/smaller font than usual.
160 160
161The amount of scaling is determined by the variable 161The amount of scaling is determined by the variable
162`text-scale-mode-amount': one step scales the global default 162`text-scale-mode-amount': one step scales the global default
163face size by the value of the variable `text-scale-mode-step' (a 163face size by the value of the variable `text-scale-mode-step'
164negative amount shrinks the text). 164\(a negative amount shrinks the text).
165 165
166The `increase-buffer-face-height' and 166The `increase-buffer-face-height' and `decrease-buffer-face-height'
167`decrease-buffer-face-height' functions may be used to 167functions may be used to interactively modify the variable
168interactively modify the variable `text-scale-mode-amount' (they 168`text-scale-mode-amount' (they also enable or disable `text-scale-mode'
169also enable or disable `text-scale-mode' as necessary." 169as necessary)."
170 :lighter (" " text-scale-mode-lighter) 170 :lighter (" " text-scale-mode-lighter)
171 (when text-scale-mode-remapping 171 (when text-scale-mode-remapping
172 (remove-relative-face-remapping text-scale-mode-remapping)) 172 (remove-relative-face-remapping text-scale-mode-remapping))
@@ -210,16 +210,15 @@ See `increase-buffer-face-height' for more details."
210 "Increase or decrease the height of the default face in the current buffer. 210 "Increase or decrease the height of the default face in the current buffer.
211 211
212The actual adjustment made depends on the final component of the 212The actual adjustment made depends on the final component of the
213key-binding used to invoke the command, with all modifiers 213key-binding used to invoke the command, with all modifiers removed:
214removed:
215 214
216 +, = Increase the default face height by one step 215 +, = Increase the default face height by one step
217 - Decrease the default face height by one step 216 - Decrease the default face height by one step
218 0 Reset the default face height to the global default 217 0 Reset the default face height to the global default
219 218
220Then, continue to read input events and further adjust the face 219Then, continue to read input events and further adjust the face
221height as long as the input event read (with all modifiers 220height as long as the input event read (with all modifiers removed)
222removed) is one the above. 221is one of the above.
223 222
224Each step scales the height of the default face by the variable 223Each step scales the height of the default face by the variable
225`text-scale-mode-step' (a negative number of steps decreases the 224`text-scale-mode-step' (a negative number of steps decreases the
@@ -228,11 +227,11 @@ will remove any scaling currently active.
228 227
229This command is a special-purpose wrapper around the 228This command is a special-purpose wrapper around the
230`increase-buffer-face-height' command which makes repetition 229`increase-buffer-face-height' command which makes repetition
231convenient even when it is bound in a non-top-level keymap. For 230convenient even when it is bound in a non-top-level keymap.
232binding in a top-level keymap, `increase-buffer-face-height' or 231For binding in a top-level keymap, `increase-buffer-face-height'
233`decrease-default-face-height' may be more appropriate." 232or `decrease-default-face-height' may be more appropriate."
234 (interactive "p") 233 (interactive "p")
235 (let ((first t) 234 (let ((first t)
236 (step t) 235 (step t)
237 (ev last-command-event)) 236 (ev last-command-event))
238 (while step 237 (while step
@@ -243,7 +242,7 @@ binding in a top-level keymap, `increase-buffer-face-height' or
243 (setq step (- inc))) 242 (setq step (- inc)))
244 ((eq base ?0) 243 ((eq base ?0)
245 (setq step 0)) 244 (setq step 0))
246 (first 245 (first
247 (setq step inc)) 246 (setq step inc))
248 (t 247 (t
249 (setq step nil)))) 248 (setq step nil))))
@@ -264,8 +263,9 @@ binding in a top-level keymap, `increase-buffer-face-height' or
264(make-variable-buffer-local 'variable-pitch-mode-remapping) 263(make-variable-buffer-local 'variable-pitch-mode-remapping)
265 264
266(define-minor-mode variable-pitch-mode 265(define-minor-mode variable-pitch-mode
267 "Variable-pitch default-face mode. When active, causes the 266 "Variable-pitch default-face mode.
268buffer text to be displayed using the `variable-pitch' face." 267When active, causes the buffer text to be displayed using
268the `variable-pitch' face."
269 :lighter " VarPitch" 269 :lighter " VarPitch"
270 (when variable-pitch-mode-remapping 270 (when variable-pitch-mode-remapping
271 (remove-relative-face-remapping variable-pitch-mode-remapping)) 271 (remove-relative-face-remapping variable-pitch-mode-remapping))