From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lawrence Mitchell Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 23.0.50; ielm doesn't handle comments Date: Thu, 14 Feb 2008 21:07:19 +0000 Organization: funfunfun Message-ID: References: <9c1b17790802131614p1f113873tbba17ec5af03c8ed@mail.gmail.com> <87k5l7mlpy.fsf@bzg.ath.cx> <87ve4rl337.fsf@bzg.ath.cx> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1203023283 11132 80.91.229.12 (14 Feb 2008 21:08:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Feb 2008 21:08:03 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 14 22:08:26 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JPlJQ-0001OX-JO for ged-emacs-devel@m.gmane.org; Thu, 14 Feb 2008 22:08:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JPlIw-0007DV-KT for ged-emacs-devel@m.gmane.org; Thu, 14 Feb 2008 16:07:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JPlIt-0007DG-A2 for emacs-devel@gnu.org; Thu, 14 Feb 2008 16:07:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JPlIr-0007D3-W4 for emacs-devel@gnu.org; Thu, 14 Feb 2008 16:07:35 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JPlIr-0007D0-OX for emacs-devel@gnu.org; Thu, 14 Feb 2008 16:07:33 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JPlIr-0002DI-9J for emacs-devel@gnu.org; Thu, 14 Feb 2008 16:07:33 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JPlIn-0005Xc-EA for emacs-devel@gnu.org; Thu, 14 Feb 2008 21:07:29 +0000 Original-Received: from 87-194-159-212.bethere.co.uk ([87.194.159.212]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Feb 2008 21:07:29 +0000 Original-Received: from wence by 87-194-159-212.bethere.co.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Feb 2008 21:07:29 +0000 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Followup-To: gmane.emacs.devel Original-Lines: 21 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 87-194-159-212.bethere.co.uk Mail-Copies-To: nobody User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (darwin) Cancel-Lock: sha1:iz3RUofAt9L+Gdn6aGMsZA+kUOE= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:89100 gmane.emacs.pretest.bugs:21095 Archived-At: 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