emacs-devel
[Top][All Lists]
Advanced

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

Re: [Emacs-diffs] comment-cache 223d16f 2/3: Apply `comment-depth' text


From: Dmitry Gutov
Subject: Re: [Emacs-diffs] comment-cache 223d16f 2/3: Apply `comment-depth' text properties when calling `back_comment'.
Date: Sat, 12 Mar 2016 22:56:18 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0

On 03/12/2016 07:08 PM, Alan Mackenzie wrote:

Now, if only we had a nice fast method of determining whether we were in
a literal, and then getting out of it .....  :-)

Why not

(save-restriction
  (prog-widen)
  (let* ((state (syntax-ppss))
         (lit-start (nth 8 state)))
    (when lit-start
      (goto-char lit-start))))

?





reply via email to

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