unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#9702: 23.1; Small typo in doc/lispref/symbols.texi
@ 2011-10-08 14:46 Tim Landscheidt
  2011-10-08 20:53 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Tim Landscheidt @ 2011-10-08 14:46 UTC (permalink / raw)
  To: 9702

Hi,

doc/lispref/symbols.texi in 23.1 and still in (git's) HEAD
bears a small typo (line 538ff.) probably caused by a too
eager search 'n' replace:

| @example
| (plist-get '(foo 4) 'foo)
|      @result{} 4
| (plist-get '(foo 4 bad) 'foo)
|      @result{} 4
| (plist-get '(foo 4 bad) 'bad)
|      @result{} @code{nil}
                 ^^^^^^   ^
| (plist-get '(foo 4 bad) 'bar)
|      @result{} nil
| @end example

which renders as:

|           (plist-get '(foo 4) 'foo)
|                => 4
|           (plist-get '(foo 4 bad) 'foo)
|                => 4
|           (plist-get '(foo 4 bad) 'bad)
|                => `nil'
                    ^   ^
|           (plist-get '(foo 4 bad) 'bar)
|                => nil

To find out whether there were other occurences, I produced
XML output and ran this stylesheet on it:

| <?xml version="1.0"?>

| <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

|   <xsl:template match="/">
|     <xsl:for-each select="//example[code]">
|       <xsl:copy-of select="."/>
|     </xsl:for-each>
|   </xsl:template>
| </xsl:stylesheet>

This gave another dubious case in lines 834ff. of
doc/lispref/positions.texi:

| @example
| Warning: @code{save-excursion} defeated by @code{set-buffer}
| @end example

I haven't checked the other info files.

  For maintenance purposes, it should be possible to auto-
mate this task (if some document structure is defined).

HTH,
Tim





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#9702: 23.1; Small typo in doc/lispref/symbols.texi
  2011-10-08 14:46 bug#9702: 23.1; Small typo in doc/lispref/symbols.texi Tim Landscheidt
@ 2011-10-08 20:53 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2011-10-08 20:53 UTC (permalink / raw)
  To: 9702-done

Version: 24.0.91

Thank you; fixed.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-10-08 20:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-08 14:46 bug#9702: 23.1; Small typo in doc/lispref/symbols.texi Tim Landscheidt
2011-10-08 20:53 ` Glenn Morris

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).