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: Clément Pit--Claudel
Subject: Re: [Emacs-diffs] comment-cache 223d16f 2/3: Apply `comment-depth' text properties when calling `back_comment'.
Date: Sat, 12 Mar 2016 16:29:43 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0

On 03/12/2016 03:56 PM, Dmitry Gutov wrote:
> 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))))
> 
> ?

Does this break on 

  /<point>* test */

in C mode? (<point> indicate the position of the point)


Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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