emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug #25608 and the comment-cache branch


From: Alan Mackenzie
Subject: Re: Bug #25608 and the comment-cache branch
Date: Tue, 7 Feb 2017 21:24:17 +0000
User-agent: Mutt/1.7.2 (2016-11-26)

Hello, Stefan.

On Mon, Feb 06, 2017 at 17:33:29 -0500, Stefan Monnier wrote:
> >> char foo[] = "for (x = 0; x < n; x++) /* Loop header */\n";
> >> ^                                        ^

> >> where the user narrows to the string, then goes to EOL and does
> >> M-: (forward-comment -1)

> > Even if the user narrows to the string, it's still a string.  It's not a
> > comment, and can't be one.

> As the user who did the above operation I beg to differ: I narrowed
> specifically because I wanted to treat this as the chunk of C code
> it is.

It would likely have been less work to have temporarily deleted the
first string quote.

> It would be arrogant for Emacs to claim it knows better than the user.

More arrogant than a user expecting C syntax to be superseeded?

As a matter of interest, what was the real use case for this, how often
do you do it, and how big would the loss be if you couldn't do it any
more?

>         Stefan

-- 
Alan Mackenzie (Nuremberg, Germany).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]