emacs-devel
[Top][All Lists]
Advanced

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

Re: 23.0.50; ielm doesn't handle comments


From: Lawrence Mitchell
Subject: Re: 23.0.50; ielm doesn't handle comments
Date: Thu, 14 Feb 2008 21:07:19 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (darwin)

Bastien Guerry wrote:


[...]


>> (defun ielm-trim-comments (string)
>>  "Trim comments in STRING."
>>  (let ((pos (previous-single-property-change
>>            (length string) 'face string)))
>>    (if (eq (get-text-property pos 'face)
>>          'font-lock-comment-face)
>>      (substring string 0 pos))))

This breaks if the user doesn't use font-lock.

[...]


-- 
Lawrence Mitchell <address@hidden>





reply via email to

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