diff options
| author | Eli Zaretskii | 2014-05-21 19:35:31 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2014-05-21 19:35:31 +0300 |
| commit | 13a83f0501d080de5ae775b770925d535eb3ac83 (patch) | |
| tree | b3703545472b2ecaf953d225bb5697b593f2267b | |
| parent | 5e2e0fa4565f2496fa5db299e30d6b08088cedde (diff) | |
| download | emacs-13a83f0501d080de5ae775b770925d535eb3ac83.tar.gz emacs-13a83f0501d080de5ae775b770925d535eb3ac83.zip | |
Fix bug #17532 with unclear docs of setting frame's font.
lisp/frame.el (set-frame-font): Doc fix.
lisp/menu-bar.el (menu-set-font): Doc fix.
doc/emacs/frames.texi (Fonts): Clarify which frames are affected by
setting font from the menu and in default-frame-alist.
| -rw-r--r-- | doc/emacs/ChangeLog | 6 | ||||
| -rw-r--r-- | doc/emacs/frames.texi | 11 | ||||
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/frame.el | 8 | ||||
| -rw-r--r-- | lisp/menu-bar.el | 2 |
5 files changed, 25 insertions, 8 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index 7858c78847f..c97ef315724 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2014-05-21 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * frames.texi (Fonts): Clarify which frames are affected by | ||
| 4 | setting font from the menu and in default-frame-alist. | ||
| 5 | (Bug#17532) | ||
| 6 | |||
| 1 | 2014-05-12 Eli Zaretskii <eliz@gnu.org> | 7 | 2014-05-12 Eli Zaretskii <eliz@gnu.org> |
| 2 | 8 | ||
| 3 | * mule.texi (Language Environments): Remove unused @anchor. | 9 | * mule.texi (Language Environments): Remove unused @anchor. |
diff --git a/doc/emacs/frames.texi b/doc/emacs/frames.texi index 8dd387b5fa0..cd8347369d3 100644 --- a/doc/emacs/frames.texi +++ b/doc/emacs/frames.texi | |||
| @@ -494,13 +494,14 @@ the mouse cursor to the chosen frame. | |||
| 494 | @cindex fonts | 494 | @cindex fonts |
| 495 | 495 | ||
| 496 | By default, Emacs displays text on graphical displays using a | 496 | By default, Emacs displays text on graphical displays using a |
| 497 | 12-point monospace font. There are several different ways to specify | 497 | 10-point monospace font. There are several different ways to specify |
| 498 | a different font: | 498 | a different font: |
| 499 | 499 | ||
| 500 | @itemize | 500 | @itemize |
| 501 | @item | 501 | @item |
| 502 | Click on @samp{Set Default Font} in the @samp{Options} menu. To save | 502 | Click on @samp{Set Default Font} in the @samp{Options} menu. This |
| 503 | this for future sessions, click on @samp{Save Options} in the | 503 | makes the selected font the default on all existing graphical frames. |
| 504 | To save this for future sessions, click on @samp{Save Options} in the | ||
| 504 | @samp{Options} menu. | 505 | @samp{Options} menu. |
| 505 | 506 | ||
| 506 | @item | 507 | @item |
| @@ -513,6 +514,10 @@ Add a line to your init file, modifying the variable | |||
| 513 | '(font . "DejaVu Sans Mono-10")) | 514 | '(font . "DejaVu Sans Mono-10")) |
| 514 | @end example | 515 | @end example |
| 515 | 516 | ||
| 517 | @noindent | ||
| 518 | This makes the font the default on all graphical frames created after | ||
| 519 | restarting Emacs with that init file. | ||
| 520 | |||
| 516 | @cindex X defaults file | 521 | @cindex X defaults file |
| 517 | @cindex X resources file | 522 | @cindex X resources file |
| 518 | @item | 523 | @item |
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6f70c04d2ab..df22726d882 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2014-05-21 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * frame.el (set-frame-font): Doc fix. | ||
| 4 | |||
| 5 | * menu-bar.el (menu-set-font): Doc fix. (Bug#17532) | ||
| 6 | |||
| 1 | 2014-05-21 Dmitry Gutov <dgutov@yandex.ru> | 7 | 2014-05-21 Dmitry Gutov <dgutov@yandex.ru> |
| 2 | 8 | ||
| 3 | * emacs-lisp/package.el (package--download-one-archive): Use | 9 | * emacs-lisp/package.el (package--download-one-archive): Use |
diff --git a/lisp/frame.el b/lisp/frame.el index d699d243023..5e9b5351005 100644 --- a/lisp/frame.el +++ b/lisp/frame.el | |||
| @@ -1107,10 +1107,10 @@ number of lines and columns. | |||
| 1107 | 1107 | ||
| 1108 | If FRAMES is nil, apply the font to the selected frame only. | 1108 | If FRAMES is nil, apply the font to the selected frame only. |
| 1109 | If FRAMES is non-nil, it should be a list of frames to act upon, | 1109 | If FRAMES is non-nil, it should be a list of frames to act upon, |
| 1110 | or t meaning all graphical frames. Also, if FRAME is non-nil, | 1110 | or t meaning all existing graphical frames. |
| 1111 | alter the user's Customization settings as though the | 1111 | Also, if FRAMES is non-nil, alter the user's Customization settings |
| 1112 | font-related attributes of the `default' face had been \"set in | 1112 | as though the font-related attributes of the `default' face had been |
| 1113 | this session\", so that the font is applied to future frames." | 1113 | \"set in this session\", so that the font is applied to future frames." |
| 1114 | (interactive | 1114 | (interactive |
| 1115 | (let* ((completion-ignore-case t) | 1115 | (let* ((completion-ignore-case t) |
| 1116 | (font (completing-read "Font name: " | 1116 | (font (completing-read "Font name: " |
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index 436d8f611a8..f9cbc62b464 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el | |||
| @@ -662,7 +662,7 @@ by \"Save Options\" in Custom buffers.") | |||
| 662 | ;; Function for setting/saving default font. | 662 | ;; Function for setting/saving default font. |
| 663 | 663 | ||
| 664 | (defun menu-set-font () | 664 | (defun menu-set-font () |
| 665 | "Interactively select a font and make it the default." | 665 | "Interactively select a font and make it the default on all existing frames." |
| 666 | (interactive) | 666 | (interactive) |
| 667 | (set-frame-font (if (fboundp 'x-select-font) | 667 | (set-frame-font (if (fboundp 'x-select-font) |
| 668 | (x-select-font) | 668 | (x-select-font) |