unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Stefan Monnier" <monnier+gnu/emacs@rum.cs.yale.edu>
Cc: emacs-devel@gnu.org
Subject: Re: BUG: indenting lisp code marks buffer as dirty when it shouldn't
Date: Mon, 25 Nov 2002 09:28:19 -0500	[thread overview]
Message-ID: <200211251428.gAPESJ102373@rum.cs.yale.edu> (raw)
In-Reply-To: 15840.45513.721157.204137@quack.quarl.org

> This bug exists in Emacs 21.2 as well as CVS HEAD 2002-11-23.

as well as in Emacs-20.7.

> Synopsis:
> 
>   emacs -q
> 
>   C-space
> 
>   insert  "t ;; blah\n"          [ in scratch or any lisp buffer ]

Does it really ?  That's odd.  It doesn't for me.  The reason why it doesn't
is that the ;; is inside a string, so it doesn't try to reindent it
(Emacs-20.7 behaves as you describe because I doesn't pay attention to the
string quotes).
But the problem would appear if you removed the quotes, because the
reindentation would try to reindent the comment and that code is not
careful to modify the text "only if needed".  I'll see how hard it
would be to fix it.


	Stefan

  parent reply	other threads:[~2002-11-25 14:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-24 11:02 BUG: indenting lisp code marks buffer as dirty when it shouldn't Karl Chen
2002-11-24 11:09 ` Karl Chen
2002-11-24 15:08 ` Kai Großjohann
2002-11-27 14:49   ` Francesco Potorti`
2002-11-25 12:36 ` Richard Stallman
2002-11-25 14:28 ` Stefan Monnier [this message]
2002-11-25 20:23   ` Karl Chen

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=200211251428.gAPESJ102373@rum.cs.yale.edu \
    --to=monnier+gnu/emacs@rum.cs.yale.edu \
    --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 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).