From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Mark for refontification Date: Tue, 6 Apr 2010 02:47:21 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1270514875 28388 80.91.229.12 (6 Apr 2010 00:47:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 6 Apr 2010 00:47:55 +0000 (UTC) To: Emacs-Devel devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 06 02:47:54 2010 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.69) (envelope-from ) id 1NywxL-0005h6-4G for ged-emacs-devel@m.gmane.org; Tue, 06 Apr 2010 02:47:51 +0200 Original-Received: from localhost ([127.0.0.1]:58126 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NywxK-0007nU-J1 for ged-emacs-devel@m.gmane.org; Mon, 05 Apr 2010 20:47:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NywxF-0007nB-VF for emacs-devel@gnu.org; Mon, 05 Apr 2010 20:47:45 -0400 Original-Received: from [140.186.70.92] (port=51823 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NywxE-0007n1-LR for emacs-devel@gnu.org; Mon, 05 Apr 2010 20:47:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NywxD-0000uc-B5 for emacs-devel@gnu.org; Mon, 05 Apr 2010 20:47:44 -0400 Original-Received: from mail-fx0-f227.google.com ([209.85.220.227]:47101) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NywxD-0000uP-5T for emacs-devel@gnu.org; Mon, 05 Apr 2010 20:47:43 -0400 Original-Received: by fxm27 with SMTP id 27so1326835fxm.8 for ; Mon, 05 Apr 2010 17:47:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:received :message-id:subject:to:content-type; bh=a04YG6t1tAI6OOSo0bzQPI3DU0lYYLvy6GW1PrwoshQ=; b=ZYX15oZibhPtN5RgKoqpiHSU1CTJpa2MWwAdP2T34p3Sk69mdHecaI/4Xx2JcRCmtl twYCQmbzmynHoaOUfwWzEIP7J9yrAGFXVehbmxBR3Ddff92NY6DXqhSe1FDBhK607d8f 9vjHtCAtb4AL8YVp+IWZjfLmuJxryNYzYsx8s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=cDacG4XBuhqBdWT14uy0vF1EyNOD+/8kxVO+q1WTg1qo7TGg5MA/j4aG9jTpPMsT/k Sx59MLoHUJ82dukTmNgJzRaXpxKDi+3AaAarfH2zr2cTm3NSYMGiSAUD/9i0rqlK5M7m cEoe4YjxBJxRm0z/Ipj5Khgm9vF0K5giZlWxY= Original-Received: by 10.239.169.18 with HTTP; Mon, 5 Apr 2010 17:47:21 -0700 (PDT) Original-Received: by 10.239.186.70 with SMTP id f6mr113465hbh.141.1270514861213; Mon, 05 Apr 2010 17:47:41 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:123237 Archived-At: Just one of my usual complaints: Could we please include a function for marking a region for refontification? (Something like the function mumamo-mark-for-refontification perhaps.) Please also move the definition of the defmacro save-buffer-state outside of eval-when-compile so that it could be used in other places than font-lock.el. (Would it be enough to change to eval-and-compile?) ;;;###autoload (defun mumamo-mark-for-refontification (min max) "Mark region between MIN and MAX for refontification." (save-restriction (widen) ;;(mumamo-with-buffer-prepared-for-jit-lock (mumamo-save-buffer-state nil (put-text-property min max 'fontified nil) )))