emacs-devel
[Top][All Lists]
Advanced

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

Re: [Emacs-diffs] master 9ffb6ce 5/5: Quoting fixes in lisp/internationa


From: Stefan Monnier
Subject: Re: [Emacs-diffs] master 9ffb6ce 5/5: Quoting fixes in lisp/international and lisp/leim
Date: Thu, 03 Sep 2015 10:50:49 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

>> Cut and paste can still work: just add a `quote-last-yank' command and/or
>> `quote-region' command.
> But it's not always that you'll want to quote the pasted string, is it?

That's why he's recommending a command.  You'd first yank and then (if
you needed) run the quote command, which quotes what you just yanked.
That's would be kind of like a "postfix argument".

>> An issue that I have with \\= escaping syntax is that it's ugly.
> It looks a bit odd, but we're unlikely to get rid of it, since it's been
> supported for ages.

It's been supported for ages, yes, but until recently it was *very*
rarely needed.  IOW the need to write

   (add-hook \\='find-file-hook \\='auto-insert)

is brand new in Emacs-25, and it sucks.

I don't intend to get rid of the \= escaping syntax (tho I do find it
hideous), but I don't want to have to use it, except for those very
limited use cases that are as old as the \= syntax itself.

>> This variable is used when the function `auto-insert' is called, e.g.
>> when you do ``(add-hook 'find-file-hook 'auto-insert)''.
> Looks fine to me.

Yes, I could live with it (and I could accept the use of "'\\='" for
those very rare cases where we need to have "''" inside the "...").

BTW, re-using existing quoting syntaxes from other systems (e.g.
markdown/org) is a good idea, when applicable.  E.g. it would be
desirable to be able to take a docstring and easily convert it to
a valid org/markdown document.  Of course, that needs to be balanced
with the needs specific to docstrings (among other things, to
accommodate pre-existing practice).

> Either way, it would be weird to quote symbol references with ` ', but use
> `` `` for code expressions.

I don't see why.


        Stefan



reply via email to

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