From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Nicolas Richard" Subject: Re: bug with timestamp fontification (bisected to b6b509b) Date: Wed, 27 Feb 2013 18:01:37 +0100 Message-ID: <87r4k14rny.fsf@yahoo.fr> References: <8738wh69bl.fsf@yahoo.fr> <87ppzlra5o.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:34663) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAkOV-0002oj-R4 for emacs-orgmode@gnu.org; Wed, 27 Feb 2013 12:02:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UAkOB-00039b-2E for emacs-orgmode@gnu.org; Wed, 27 Feb 2013 12:02:10 -0500 Received: from plane.gmane.org ([80.91.229.3]:57275) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAkOA-00035s-SC for emacs-orgmode@gnu.org; Wed, 27 Feb 2013 12:01:54 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UAkOL-0001xv-MB for emacs-orgmode@gnu.org; Wed, 27 Feb 2013 18:02:05 +0100 Received: from geodiff-mac3.ulb.ac.be ([164.15.131.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Feb 2013 18:02:05 +0100 Received: from theonewiththeevillook by geodiff-mac3.ulb.ac.be with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Feb 2013 18:02:05 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Bastien writes: > I think I *completely* fixed this now... thanks for the heads up > and the easy recipe! Thanks ; indeed dropping the change to the regexp seems the easiest (and may avoid problems with code relying on that regexp out of the core). May I suggest that you fix the commit just once more ? Part of the previous fix was to increase "group number" everywhere, and that has to be reverted. Here is a patch if you prefer : >From 53152a802afe85e856d571867a2c8a36457cf0cd Mon Sep 17 00:00:00 2001 From: Nicolas Richard Date: Wed, 27 Feb 2013 17:55:42 +0100 Subject: [PATCH] Fix b6b509b one more time. --- lisp/org.el | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index b88b49a..7cf7832 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5830,15 +5830,15 @@ by a #." (if (and (re-search-forward org-tsr-regexp-both limit t) (not (equal (char-before (match-beginning 0)) 91))) (progn - (org-remove-flyspell-overlays-in (match-beginning 1) (match-end 1)) - (add-text-properties (match-beginning 1) (match-end 1) + (org-remove-flyspell-overlays-in (match-beginning 0) (match-end 0)) + (add-text-properties (match-beginning 0) (match-end 0) (list 'mouse-face 'highlight 'keymap org-mouse-map)) - (org-rear-nonsticky-at (match-end 1)) + (org-rear-nonsticky-at (match-end 0)) (when org-display-custom-times - (if (match-end 4) - (org-display-custom-time (match-beginning 4) (match-end 4))) - (org-display-custom-time (match-beginning 2) (match-end 2))) + (if (match-end 3) + (org-display-custom-time (match-beginning 3) (match-end 3))) + (org-display-custom-time (match-beginning 1) (match-end 1))) t))) (defvar org-target-link-regexp nil -- 1.8.1.4