GNU bug report logs -
#5195
23.1; bad indentation in (elisp) example
Previous Next
Reported by: monnier <at> iro.umontreal.ca
Date: Sat, 12 Dec 2009 16:20:07 UTC
Severity: normal
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 5195 in the body.
You can then email your comments to 5195 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#5195
; Package
emacs
.
(Sat, 12 Dec 2009 16:20:07 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Drew Adams" <drew.adams <at> oracle.com>
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Sat, 12 Dec 2009 16:20:07 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
emacs -Q
Go to (elisp)Example Major Modes
The `emacs-lisp-mode-syntax-table' example is not indented
correctly. E.g.:
(while (< i ?0)
(modify-syntax-entry i "_ " table)
(setq i (1+ i)))
In GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600)
of 2009-07-29 on SOFT-MJASON
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.4)'
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5195
; Package
emacs
.
(Sat, 02 Jan 2010 19:00:03 GMT)
Full text and
rfc822 format available.
Message #8 received at 5195 <at> debbugs.gnu.org (full text, mbox):
> emacs -Q
> Go to (elisp)Example Major Modes
> The `emacs-lisp-mode-syntax-table' example is not indented
> correctly. E.g.:
> (while (< i ?0)
> (modify-syntax-entry i "_ " table)
> (setq i (1+ i)))
I can't reproduce this: the indentation is correct for me.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5195
; Package
emacs
.
(Sat, 02 Jan 2010 20:03:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 5195 <at> debbugs.gnu.org (full text, mbox):
> > emacs -Q
> > Go to (elisp)Example Major Modes
>
> > The `emacs-lisp-mode-syntax-table' example is not indented
> > correctly. E.g.:
>
> > (while (< i ?0)
> > (modify-syntax-entry i "_ " table)
> > (setq i (1+ i)))
>
> I can't reproduce this: the indentation is correct for me.
Well, it's as clear as day for me, in emacs -Q on Windows. Perhaps it's a
platform problem.
It appears just as is written above. The calls to modify-syntax-entry and setq
are not indented underneath the while - they are outdented wrt the while.
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Sat, 02 Jan 2010 20:40:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
"Drew Adams" <drew.adams <at> oracle.com>
:
bug acknowledged by developer.
(Sat, 02 Jan 2010 20:40:03 GMT)
Full text and
rfc822 format available.
Message #16 received at 5195-done <at> debbugs.gnu.org (full text, mbox):
> From: "Drew Adams" <drew.adams <at> oracle.com>
> Date: Sat, 2 Jan 2010 12:01:34 -0800
> Cc: 5195 <at> debbugs.gnu.org
>
> > > emacs -Q
> > > Go to (elisp)Example Major Modes
> >
> > > The `emacs-lisp-mode-syntax-table' example is not indented
> > > correctly. E.g.:
> >
> > > (while (< i ?0)
> > > (modify-syntax-entry i "_ " table)
> > > (setq i (1+ i)))
> >
> > I can't reproduce this: the indentation is correct for me.
>
> Well, it's as clear as day for me, in emacs -Q on Windows. Perhaps it's a
> platform problem.
No, it wasn't. I fixed it. Thanks for catching this.
I don't know why Yidong didn't see it; perhaps he was looking at the
Texinfo sources, where the example's indentation is indeed all dandy.
The problem was that this example used TABs, not spaces, for
indentation, which is generally a no-no in Texinfo (that's why Texinfo
mode sets indent-tabs-mode to nil). When an Info file is produced,
makeinfo indents examples some more, and then indentation with TABs
gets screwed, of course.
Changed bug submitter to 'monnier <at> iro.umontreal.ca' from '"Drew Adams" <drew.adams <at> oracle.com>'
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Thu, 28 Jan 2010 00:14:01 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <bug-gnu-emacs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 25 Feb 2010 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 15 years and 120 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.