unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#5195: 23.1; bad indentation in (elisp) example
@ 2009-12-12 16:14 Drew Adams
  0 siblings, 0 replies; 3+ messages in thread
From: Drew Adams @ 2009-12-12 16:14 UTC (permalink / raw)
  To: bug-gnu-emacs

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)'
 







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

* bug#5195: 23.1; bad indentation in (elisp) example
@ 2010-01-02 18:59 Chong Yidong
  2010-01-02 20:01 ` Drew Adams
  0 siblings, 1 reply; 3+ messages in thread
From: Chong Yidong @ 2010-01-02 18:59 UTC (permalink / raw)
  To: Drew Adams; +Cc: 5195

> 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.






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

* bug#5195: 23.1; bad indentation in (elisp) example
  2010-01-02 18:59 bug#5195: 23.1; bad indentation in (elisp) example Chong Yidong
@ 2010-01-02 20:01 ` Drew Adams
  0 siblings, 0 replies; 3+ messages in thread
From: Drew Adams @ 2010-01-02 20:01 UTC (permalink / raw)
  To: 'Chong Yidong'; +Cc: 5195

> > 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.







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

end of thread, other threads:[~2010-01-02 20:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-02 18:59 bug#5195: 23.1; bad indentation in (elisp) example Chong Yidong
2010-01-02 20:01 ` Drew Adams
  -- strict thread matches above, loose matches on Subject: below --
2009-12-12 16:14 Drew Adams

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).