diff options
| author | Chong Yidong | 2012-06-03 17:03:23 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-06-03 17:03:23 +0800 |
| commit | 5f2c76c6cee2b5d2d84ffd409839fd58d2ad16fa (patch) | |
| tree | ccab5d66cbd6666671d529849c174c5701508d1e /doc/lispref | |
| parent | 773d47f6b23a2294baaf577f5cb783338232008c (diff) | |
| download | emacs-5f2c76c6cee2b5d2d84ffd409839fd58d2ad16fa.tar.gz emacs-5f2c76c6cee2b5d2d84ffd409839fd58d2ad16fa.zip | |
Implement default help-echo for mode line.
* lisp/bindings.el: Remove explicit help-echo from format-mode-line.
(mode-line-front-space, mode-line-end-spaces)
(mode-line-misc-info): New variables.
(mode-line-modes, mode-line-position): Move the default value to
the variable definition.
(mode-line-default-help-echo): New defcustom.
* src/buffer.c (buffer_local_value_1): New function, split from
Fbuffer_local_value; can return Qunbound.
(Fbuffer_local_value): Use it.
(Vmode_line_format): Docstring tweaks.
* src/xdisp.c (calc_pixel_width_or_height): Use Fbuffer_local_value.
(note_mode_line_or_margin_highlight): If there is no help echo,
use mode-line-default-help-echo. Handle the case where the mouse
position is past the end of the mode line string.
* doc/lispref/modes.texi (Mode Line Data): Use "mode line construct"
terminology for consistency.
Diffstat (limited to 'doc/lispref')
| -rw-r--r-- | doc/lispref/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/lispref/modes.texi | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 850b3f9cf54..b774809feb9 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-06-03 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * modes.texi (Mode Line Data): Use "mode line construct" | ||
| 4 | terminology for consistency. | ||
| 5 | |||
| 1 | 2012-05-27 Glenn Morris <rgm@gnu.org> | 6 | 2012-05-27 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * abbrevs.texi, advice.texi, anti.texi, backups.texi: | 8 | * abbrevs.texi, advice.texi, anti.texi, backups.texi: |
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi index 8dca250ce10..96e9b78f871 100644 --- a/doc/lispref/modes.texi +++ b/doc/lispref/modes.texi | |||
| @@ -1843,9 +1843,9 @@ properties specified by @var{props} to the result. The argument | |||
| 1843 | A list whose first element is a symbol that is not a keyword specifies | 1843 | A list whose first element is a symbol that is not a keyword specifies |
| 1844 | a conditional. Its meaning depends on the value of @var{symbol}. If | 1844 | a conditional. Its meaning depends on the value of @var{symbol}. If |
| 1845 | @var{symbol} has a non-@code{nil} value, the second element, | 1845 | @var{symbol} has a non-@code{nil} value, the second element, |
| 1846 | @var{then}, is processed recursively as a mode line element. | 1846 | @var{then}, is processed recursively as a mode line construct. |
| 1847 | Otherwise, the third element, @var{else}, is processed recursively. | 1847 | Otherwise, the third element, @var{else}, is processed recursively. |
| 1848 | You may omit @var{else}; then the mode line element displays nothing | 1848 | You may omit @var{else}; then the mode line construct displays nothing |
| 1849 | if the value of @var{symbol} is @code{nil} or void. | 1849 | if the value of @var{symbol} is @code{nil} or void. |
| 1850 | 1850 | ||
| 1851 | @item (@var{width} @var{rest}@dots{}) | 1851 | @item (@var{width} @var{rest}@dots{}) |