From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Josh Newsgroups: gmane.emacs.bugs Subject: bug#13891: 24.3.50; highlight-regexp incorrectly retains partial state after buffer reversion Date: Wed, 6 Mar 2013 09:21:43 -0800 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1362590563 30726 80.91.229.3 (6 Mar 2013 17:22:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Mar 2013 17:22:43 +0000 (UTC) To: 13891@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 06 18:23:07 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UDI3W-0000Z5-1S for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Mar 2013 18:23:06 +0100 Original-Received: from localhost ([::1]:37390 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDI3A-0002ca-BV for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Mar 2013 12:22:44 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:55076) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDI34-0002UF-JY for bug-gnu-emacs@gnu.org; Wed, 06 Mar 2013 12:22:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDI31-0001uu-CW for bug-gnu-emacs@gnu.org; Wed, 06 Mar 2013 12:22:38 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58655) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDI31-0001uk-8I for bug-gnu-emacs@gnu.org; Wed, 06 Mar 2013 12:22:35 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UDI3S-0003h5-2m for bug-gnu-emacs@gnu.org; Wed, 06 Mar 2013 12:23:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Josh Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Mar 2013 17:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13891 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.136259057514182 (code B ref -1); Wed, 06 Mar 2013 17:23:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Mar 2013 17:22:55 +0000 Original-Received: from localhost ([127.0.0.1]:34531 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UDI3K-0003gh-I6 for submit@debbugs.gnu.org; Wed, 06 Mar 2013 12:22:54 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:43523) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UDI3I-0003gV-3A for submit@debbugs.gnu.org; Wed, 06 Mar 2013 12:22:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDI2j-0001o5-Fu for submit@debbugs.gnu.org; Wed, 06 Mar 2013 12:22:20 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:45811) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDI2j-0001o1-Dp for submit@debbugs.gnu.org; Wed, 06 Mar 2013 12:22:17 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:54839) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDI2h-0001qK-Vi for bug-gnu-emacs@gnu.org; Wed, 06 Mar 2013 12:22:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDI2g-0001nC-Np for bug-gnu-emacs@gnu.org; Wed, 06 Mar 2013 12:22:15 -0500 Original-Received: from mail-qa0-f46.google.com ([209.85.216.46]:38801) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDI2g-0001n3-KU for bug-gnu-emacs@gnu.org; Wed, 06 Mar 2013 12:22:14 -0500 Original-Received: by mail-qa0-f46.google.com with SMTP id o13so2665395qaj.19 for ; Wed, 06 Mar 2013 09:22:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:sender:from:date:x-google-sender-auth :message-id:subject:to:content-type:x-gm-message-state; bh=heHoNkx9nG2inGVFuoaptru5GTjEPjC5LBmeLNa7+so=; b=Bk3PInl1d5gm4FeXdQrdqk+L5zBPgO7Wap0eO3+KWxWUMTyV/UoU4C5WacOTMy4SNr BeDXIeEvqhKlZo4zjjIVrvhL++dCL2QBXQNvxrr6yhx2jo/3jb89u/OBHMG67A+rsEnV ptYY5fDWMJQBTSLzI55v6jRzeosSXfRGpV++lvsC4mvADFczPGj33kkRTf3PRQisbNqK xOHSQxF0X/k8cTKjXNEmk+nWmCVn/mLZZVx9IzmKGEPYXHPVEvcfIAkyxFU7oy73Fytw bB3sZGahbIerAGIQUjEjrKCM3fCtkx8vwT3gHdSznUffw2kd2qlLEjUYwAMq1vIFUxzD Cewg== X-Received: by 10.224.97.132 with SMTP id l4mr14960989qan.65.1362590533900; Wed, 06 Mar 2013 09:22:13 -0800 (PST) Original-Received: by 10.49.17.231 with HTTP; Wed, 6 Mar 2013 09:21:43 -0800 (PST) X-Google-Sender-Auth: h-I1-5uRZor00t2i2zGPXuEybHg X-Gm-Message-State: ALoCoQnOg+5Kn/Ll/8Q3wlQzcQMPN/+7cJmKOKShivrAd+6649mkjtXId2iETy843Yfe5zYUdxGw X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:72164 Archived-At: I noticed two things that show that partial highlight-regexp state lingers after calling revert-buffer, see items 9 and 12. After buffer reversion, I would expect this state either to be completely backed out or to survive completely intact. Ideally both of these behaviors would be supported and under users' control. (1) emacs -Q foo.txt (2) insert `foo bar' into buffer and save (3) M-s h r foo RET RET (4) note that foo is highlighted with hi-yellow face (5) make a trivial edit to make buffer-modified-p be true (6) M-x revert-buffer and confirm (7) note that highlighting goes away as expected (8) M-s h r bar RET but do not respond to the prompt for the face (9) Expected default face: hi-yellow. Actual: hi-pink. (10) C-g to cancel the highlight-regexp command (11) M-s h u but do not respond to the prompt for a regexp (12) Expected: "No highlighting to remove". Actual: prompts for regexp with a default of foo. (13) Hit RET to accept the default regexp foo to unhighlight (14) M-s h u (15) note that "No highlighting to remove" appears, as should have happened after (11) In GNU Emacs 24.3.50.1 (x86_64-apple-darwin, NS apple-appkit-1187.34) of 2013-03-04 on bix Bzr revision: 111935 yamaoka@jpl.org-20130304102733-4qy111z41qwoh2as Windowing system distributor `Apple', version 10.3.1187 Configured using: `configure --host=x86_64-apple-darwin --build=i686-apple-darwin --with-ns' Important settings: value of $LC_CTYPE: en_US.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Text Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: f o o SPC f a b a r C-x C-s M-s h r f o o SPC M-x r e v e r t - b u f f y e s M-s h r b a r C-g M-s h u M-s h u M-x e r e p o r t - e m a c s - b u f h i g h l i g h t - r e g e x p SPC i n c o r r e c t l y SPC r e t a i n s SPC s t a t e SPC a f t e r SPC b u f f e r SPC r e v e r s i o n C-a C-k C-g M-x r e p o r t - e m a c s - b u g Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. foo.txt has auto save data; consider M-x recover-this-file Saving file /Users/jlf/tmp/foo.txt... Wrote /Users/jlf/tmp/foo.txt You can run the command `revert-buffer' with s-u Quit byte-code: No highlighting to remove Quit Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils hi-lock time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process ns multi-tty emacs)