all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
Cc: emacs-devel@gnu.org
Subject: Undocumented %-constructs (was: memory consumption with pure-space-overflow)
Date: Fri, 12 May 2006 02:01:45 +0300	[thread overview]
Message-ID: <87ejz088tn.fsf_-_@jurta.org> (raw)
In-Reply-To: <E1Fe26H-0007na-88@fencepost.gnu.org> (Richard Stallman's message of "Wed, 10 May 2006 23:44:29 -0400")

>     Below is a list of options currently documented in Info and docstring,
>     and really implemented options (thus spaces denote undocumented options):
>
>     In the node (info "(elisp)%-Constructs"): bc fFiIlmMnpPst  *+&[]-%
>     In the docstring of `mode-line-format':   bc fFiIlm npPs zZ*+&[]-%
>     Really implemented in `decode_mode_spec': bcefFiIlm npPstzZ*+&[]-%
>
> Would someone please write the missing documentation for options
> e, t, z, Z, then ack?

Below is a patch with the missing documentation based on the source code.
Please correct me if I misinterpreted the meaning of these constructs.
I removed %M from Info because it is not supported, while %m is supported,
albeit obsolete.

Index: lispref/modes.texi
===================================================================
RCS file: /sources/emacs/emacs/lispref/modes.texi,v
retrieving revision 1.139
diff -c -r1.139 modes.texi
*** lispref/modes.texi	30 Apr 2006 02:35:35 -0000	1.139
--- lispref/modes.texi	11 May 2006 23:03:59 -0000
***************
*** 1927,1932 ****
--- 1931,1939 ----
  @item %c
  The current column number of point.
  
+ @item %e
+ The error message if Emacs is close to out of memory for Lisp objects.
+ 
  @item %f
  The visited file name, obtained with the @code{buffer-file-name}
  function.  @xref{Buffer File Name}.
***************
*** 1972,1977 ****
--- 1979,1990 ----
  meaningful distinction only on certain operating systems (@pxref{MS-DOS
  File Types}).
  
+ @item %z
+ The mnemonics of buffer, terminal, and keyboard coding systems.
+ 
+ @item %Z
+ Like @samp{%z}, but including the end-of-line format.
+ 
  @item %*
  @samp{%} if the buffer is read only (see @code{buffer-read-only}); @*
  @samp{*} if the buffer is modified (see @code{buffer-modified-p}); @*
***************
*** 2003,2018 ****
  string in which @code{%}-constructs are allowed.
  @end table
  
! The following two @code{%}-constructs are still supported, but they are
! obsolete, since you can get the same results with the variables
! @code{mode-name} and @code{global-mode-string}.
  
  @table @code
  @item %m
  The value of @code{mode-name}.
- 
- @item %M
- The value of @code{global-mode-string}.
  @end table
  
  @node Properties in Mode
--- 2016,2028 ----
  string in which @code{%}-constructs are allowed.
  @end table
  
! The following @code{%}-construct is still supported, but it is
! obsolete, since you can get the same result with the variable
! @code{mode-name}.
  
  @table @code
  @item %m
  The value of @code{mode-name}.
  @end table
  
  @node Properties in Mode

Index: src/buffer.c
===================================================================
RCS file: /sources/emacs/emacs/src/buffer.c,v
retrieving revision 1.501
diff -c -r1.501 buffer.c
*** src/buffer.c	25 Feb 2006 23:33:57 -0000	1.501
--- src/buffer.c	11 May 2006 23:06:16 -0000
***************
*** 5440,5447 ****
--- 5440,5449 ----
          or print Bottom or All.
    %m -- print the mode name.
    %n -- print Narrow if appropriate.
+   %t -- visited file is text or binary (if OS supports this distinction).
    %z -- print mnemonics of buffer, terminal, and keyboard coding systems.
    %Z -- like %z, but including the end-of-line format.
+   %e -- print error message about full memory.
    %[ -- print one [ for each recursive editing level.  %] similar.
    %% -- print %.   %- -- print infinitely many dashes.
  Decimal digits after the % specify field width to which to pad.  */);

-- 
Juri Linkov
http://www.jurta.org/emacs/

  reply	other threads:[~2006-05-11 23:01 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-24  7:33 mem leak LENNART BORGMAN
2006-04-24  8:01 ` Miles Bader
2006-04-24  8:18   ` Romain Francoise
2006-04-24  8:26     ` Miles Bader
2006-04-24  8:39       ` Miles Bader
2006-04-24 12:24         ` Stefan Monnier
2006-04-24 14:44           ` Miles Bader
2006-04-24 17:52         ` Richard Stallman
2006-04-26 13:44           ` memory consumption with pure-space-overflow (was: mem leak) Reiner Steib
2006-04-27  4:36             ` Richard Stallman
2006-04-27 13:52               ` memory consumption with pure-space-overflow Reiner Steib
2006-04-27 21:27                 ` Richard Stallman
2006-05-02 14:07                   ` Reiner Steib
2006-05-05 12:50                   ` Eli Zaretskii
2006-05-05 14:10                     ` Reiner Steib
2006-05-05 22:14                       ` Richard Stallman
2006-05-06 11:42                         ` Reiner Steib
2006-05-06 23:36                           ` Richard Stallman
2006-05-09 20:44                           ` Juri Linkov
2006-05-11  3:44                             ` Richard Stallman
2006-05-11 23:01                               ` Juri Linkov [this message]
2006-05-12  1:44                                 ` Undocumented %-constructs Johan Bockgård
2006-05-12 11:14                                   ` Juri Linkov
2006-05-14 23:29                                 ` Undocumented %-constructs (was: memory consumption with pure-space-overflow) Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ejz088tn.fsf_-_@jurta.org \
    --to=juri@jurta.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.