diff options
| author | Chong Yidong | 2009-03-29 17:42:26 +0000 |
|---|---|---|
| committer | Chong Yidong | 2009-03-29 17:42:26 +0000 |
| commit | 2079438ac666b09e29e908116e4e386daba8976c (patch) | |
| tree | 86576ece4d2abd3f58d54e84c58bd46e328b5b03 | |
| parent | b9723f39840bc9dd64982e1499651f2a13517e83 (diff) | |
| download | emacs-2079438ac666b09e29e908116e4e386daba8976c.tar.gz emacs-2079438ac666b09e29e908116e4e386daba8976c.zip | |
(Mode Line Variables): The default values of the mode
line variables are now more complicated.
| -rw-r--r-- | doc/lispref/modes.texi | 68 |
1 files changed, 17 insertions, 51 deletions
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi index cd923e8fe4d..f166877b45c 100644 --- a/doc/lispref/modes.texi +++ b/doc/lispref/modes.texi | |||
| @@ -1800,53 +1800,31 @@ current input method. @xref{Non-ASCII Characters}. | |||
| 1800 | 1800 | ||
| 1801 | @defvar mode-line-modified | 1801 | @defvar mode-line-modified |
| 1802 | This variable holds the value of the mode-line construct that displays | 1802 | This variable holds the value of the mode-line construct that displays |
| 1803 | whether the current buffer is modified. | 1803 | whether the current buffer is modified. Its default value displays |
| 1804 | 1804 | @samp{**} if the buffer is modified, @samp{--} if the buffer is not | |
| 1805 | The default value of @code{mode-line-modified} is @code{("%1*%1+")}. | 1805 | modified, @samp{%%} if the buffer is read only, and @samp{%*} if the |
| 1806 | This means that the mode line displays @samp{**} if the buffer is | 1806 | buffer is read only and modified. |
| 1807 | modified, @samp{--} if the buffer is not modified, @samp{%%} if the | ||
| 1808 | buffer is read only, and @samp{%*} if the buffer is read only and | ||
| 1809 | modified. | ||
| 1810 | 1807 | ||
| 1811 | Changing this variable does not force an update of the mode line. | 1808 | Changing this variable does not force an update of the mode line. |
| 1812 | @end defvar | 1809 | @end defvar |
| 1813 | 1810 | ||
| 1814 | @defvar mode-line-frame-identification | 1811 | @defvar mode-line-frame-identification |
| 1815 | This variable identifies the current frame. The default value is | 1812 | This variable identifies the current frame. Its default value |
| 1816 | @code{" "} if you are using a window system which can show multiple | 1813 | displays @code{" "} if you are using a window system which can show |
| 1817 | frames, or @code{"-%F "} on an ordinary terminal which shows only one | 1814 | multiple frames, or @code{"-%F "} on an ordinary terminal which shows |
| 1818 | frame at a time. | 1815 | only one frame at a time. |
| 1819 | @end defvar | 1816 | @end defvar |
| 1820 | 1817 | ||
| 1821 | @defvar mode-line-buffer-identification | 1818 | @defvar mode-line-buffer-identification |
| 1822 | This variable identifies the buffer being displayed in the window. Its | 1819 | This variable identifies the buffer being displayed in the window. |
| 1823 | default value is @code{("%12b")}, which displays the buffer name, padded | 1820 | Its default value displays the buffer name, padded with spaces to at |
| 1824 | with spaces to at least 12 columns. | 1821 | least 12 columns. |
| 1825 | @end defvar | 1822 | @end defvar |
| 1826 | 1823 | ||
| 1827 | @defvar mode-line-position | 1824 | @defvar mode-line-position |
| 1828 | This variable indicates the position in the buffer. Here is a | 1825 | This variable indicates the position in the buffer. Its default value |
| 1829 | simplified version of its default value. The actual default value | 1826 | displays the buffer percentage and, optionally, the buffer size, the |
| 1830 | also specifies addition of the @code{help-echo} text property. | 1827 | line number and the column number. |
| 1831 | |||
| 1832 | @example | ||
| 1833 | @group | ||
| 1834 | ((-3 "%p") | ||
| 1835 | (size-indication-mode (8 " of %I")) | ||
| 1836 | @end group | ||
| 1837 | @group | ||
| 1838 | (line-number-mode | ||
| 1839 | ((column-number-mode | ||
| 1840 | (10 " (%l,%c)") | ||
| 1841 | (6 " L%l"))) | ||
| 1842 | ((column-number-mode | ||
| 1843 | (5 " C%c"))))) | ||
| 1844 | @end group | ||
| 1845 | @end example | ||
| 1846 | |||
| 1847 | This means that @code{mode-line-position} displays at least the buffer | ||
| 1848 | percentage and possibly the buffer size, the line number and the column | ||
| 1849 | number. | ||
| 1850 | @end defvar | 1828 | @end defvar |
| 1851 | 1829 | ||
| 1852 | @defvar vc-mode | 1830 | @defvar vc-mode |
| @@ -1857,21 +1835,9 @@ line, or @code{nil} for no version control. | |||
| 1857 | @end defvar | 1835 | @end defvar |
| 1858 | 1836 | ||
| 1859 | @defvar mode-line-modes | 1837 | @defvar mode-line-modes |
| 1860 | This variable displays the buffer's major and minor modes. Here is a | 1838 | This variable displays the buffer's major and minor modes. Its |
| 1861 | simplified version of its default value. The real default value also | 1839 | default value also displays the recursive editing level, information |
| 1862 | specifies addition of text properties. | 1840 | on the process status, and whether narrowing is in effect. |
| 1863 | |||
| 1864 | @example | ||
| 1865 | @group | ||
| 1866 | ("%[(" mode-name | ||
| 1867 | mode-line-process minor-mode-alist | ||
| 1868 | "%n" ")%]--") | ||
| 1869 | @end group | ||
| 1870 | @end example | ||
| 1871 | |||
| 1872 | So @code{mode-line-modes} normally also displays the recursive editing | ||
| 1873 | level, information on the process status and whether narrowing is in | ||
| 1874 | effect. | ||
| 1875 | @end defvar | 1841 | @end defvar |
| 1876 | 1842 | ||
| 1877 | The following three variables are used in @code{mode-line-modes}: | 1843 | The following three variables are used in @code{mode-line-modes}: |