[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mark-sexp again
From: |
Andreas Röhler |
Subject: |
Re: mark-sexp again |
Date: |
Mon, 08 Jun 2015 20:55:34 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 |
Am 08.06.2015 um 18:09 schrieb Artur Malabarba:
2015-06-08 15:24 GMT+01:00 Andreas Röhler <address@hidden>:
When inside a string, mark-sexp should mark the string. IMO doesn't make sense
to consider the contents then.
Example, cursor at beginning of docstring at "Just"
(defun foo1 ()
"Just foo")
M-x mark-sexp RET marks word "Just", not the string.
Respectivly forward-sexp should reach the end of string, if called inside.
That would make it redundant with `up-list'.
Don't think so:
(list "asdfsdf adfsadf " "asdfsd asd asdf " "asdfasf asdfsad ")
When started a "list", forward-sexp travels string by string, which is
ok and also means, it recognises a string as sexp already.
Accordingly from inside a string, it should go to the end first.
As for the general suggestion, I personally like the current behavior.
For instance, in the following docstring, it's nice that forward-sexp
and kill-sexp work on `foo-bar' inside the string.
(defun ok ()
"something `foo-bar' something")
Because a kill-symbol-at-point seems missing.
No reason to maintain a quirk :)
- mark-sexp again, Andreas Röhler, 2015/06/03
- Re: mark-sexp again, Stefan Monnier, 2015/06/03
- Re: mark-sexp again, Andreas Röhler, 2015/06/07
- Re: mark-sexp again, Stefan Monnier, 2015/06/08
- Re: mark-sexp again, Andreas Röhler, 2015/06/08
- Re: mark-sexp again, Artur Malabarba, 2015/06/08
- Re: mark-sexp again,
Andreas Röhler <=
- Re: mark-sexp again, Artur Malabarba, 2015/06/08
- Re: mark-sexp again, Andreas Röhler, 2015/06/09
- Re: mark-sexp again, Stefan Monnier, 2015/06/08