[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Raw string literals in Emacs lisp.
From: |
Stephen J. Turnbull |
Subject: |
Re: Raw string literals in Emacs lisp. |
Date: |
Sun, 03 Aug 2014 22:12:16 +0900 |
David Kastrup writes:
> At any rate, things can get more complex, like with
>
> (format "%s%c\n""r#"?\") => "r#\"
> "
I'm not really worried about more complex. I am concerned about
whether there's an unambiguous answer to "what is the value -- or
error -- of eval-print-last-sexp at point?"
In the case of
(format "%s%c\n""r#"?\")-!-
it's "r#\"\n". But for
(format "%s%c\n""r#"?\"-!-)
you could argue that it's ?\" (that's XEmacs's opinion) or "?\\". I
guess for XEmacs (which already has this syntax in the wild) the rule
should be "longest match wins" (because otherwise there's no way to
evaluate r#"?\" in an interactive buffer), but for Emacs that looks
like a deal-killer, and it's already present with just r#"?\".
*sigh*
- Re: Raw string literals in Emacs lisp., Alan Mackenzie, 2014/08/02
- Re: Raw string literals in Emacs lisp., David Kastrup, 2014/08/02
- Re: Raw string literals in Emacs lisp., Alan Mackenzie, 2014/08/02
- Re: Raw string literals in Emacs lisp., Stephen J. Turnbull, 2014/08/03
- Re: Raw string literals in Emacs lisp., David Kastrup, 2014/08/03
- Re: Raw string literals in Emacs lisp.,
Stephen J. Turnbull <=
- Re: Raw string literals in Emacs lisp., David Kastrup, 2014/08/03
- Re: Raw string literals in Emacs lisp., Stephen J. Turnbull, 2014/08/03
- Re: Raw string literals in Emacs lisp., Richard Stallman, 2014/08/03
- Re: Raw string literals in Emacs lisp., David Kastrup, 2014/08/04
- Re: Raw string literals in Emacs lisp., Richard Stallman, 2014/08/04
- Re: Raw string literals in Emacs lisp., David Kastrup, 2014/08/05
- Re: Raw string literals in Emacs lisp., David Kastrup, 2014/08/03
- Re: Raw string literals in Emacs lisp., Stephen J. Turnbull, 2014/08/03
- Re: Raw string literals in Emacs lisp., Richard Stallman, 2014/08/03