From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Hanchrow Newsgroups: gmane.emacs.bugs Subject: bug#12586: 24.2.50; "q" in empty vc-diff buffer causes error Date: Sat, 6 Oct 2012 09:44:12 -0700 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1349541951 22380 80.91.229.3 (6 Oct 2012 16:45:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Oct 2012 16:45:51 +0000 (UTC) To: 12586@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 06 18:45:57 2012 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 1TKXVk-00078c-LR for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Oct 2012 18:45:56 +0200 Original-Received: from localhost ([::1]:49042 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKXVe-0008Gr-Qb for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Oct 2012 12:45:50 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34681) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKXVb-0008Gb-41 for bug-gnu-emacs@gnu.org; Sat, 06 Oct 2012 12:45:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TKXVZ-0000Tt-Cy for bug-gnu-emacs@gnu.org; Sat, 06 Oct 2012 12:45:47 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48143) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKXVZ-0000Te-3J for bug-gnu-emacs@gnu.org; Sat, 06 Oct 2012 12:45:45 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TKXVp-0000eW-Ri for bug-gnu-emacs@gnu.org; Sat, 06 Oct 2012 12:46:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eric Hanchrow Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Oct 2012 16:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12586 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.13495419062435 (code B ref -1); Sat, 06 Oct 2012 16:46:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Oct 2012 16:45:06 +0000 Original-Received: from localhost ([127.0.0.1]:58394 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TKXUv-0000dD-VO for submit@debbugs.gnu.org; Sat, 06 Oct 2012 12:45:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49835) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TKXUr-0000cU-V6 for submit@debbugs.gnu.org; Sat, 06 Oct 2012 12:45:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TKXUU-0008OD-H7 for submit@debbugs.gnu.org; Sat, 06 Oct 2012 12:44:39 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:58612) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKXUU-0008O9-EG for submit@debbugs.gnu.org; Sat, 06 Oct 2012 12:44:38 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41178) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKXUR-00083B-IS for bug-gnu-emacs@gnu.org; Sat, 06 Oct 2012 12:44:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TKXUP-0008Lt-UQ for bug-gnu-emacs@gnu.org; Sat, 06 Oct 2012 12:44:35 -0400 Original-Received: from mail-qa0-f48.google.com ([209.85.216.48]:48283) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKXUP-0008Kh-Og for bug-gnu-emacs@gnu.org; Sat, 06 Oct 2012 12:44:33 -0400 Original-Received: by mail-qa0-f48.google.com with SMTP id c11so1323755qad.0 for ; Sat, 06 Oct 2012 09:44:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=OpSI+s34PND4m5i43xiHhQnHhALa2sz94attJd3LWdk=; b=ZZY7S0Fk/c5OTdZOJjwUwpfpAD+JBf8AA8Ocq0iSrLOrBahejYj+uzerSbvGfWPTY6 2v2oix58bMMYsXne5XiVS4rSXy2pP+7/CypSKQXfr2C1Prqq+ioibPMGKZq+aL6FrdcN 9n+Lq8jWUFeUgaTfF24zc0JFfwskBwdMOsEZ5iFNbEDvRL+zWmLy9kEMsiWhwoFqPqne rWOkhf5jfeWqszRW3N/zl7aEzRzZkdru+xVklKD+/ECVhURJLt/k1YAHgPETAkhzqGIc LdBhhZ0gyq/f6ewdn7PlkdWJhlD49rYhus0nW19XfF+Qxa6A3qKKNcpRKbens8JgBy6J mQ1w== Original-Received: by 10.49.48.43 with SMTP id i11mr18607509qen.10.1349541872844; Sat, 06 Oct 2012 09:44:32 -0700 (PDT) Original-Received: by 10.49.105.195 with HTTP; Sat, 6 Oct 2012 09:44:12 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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 (newer, 2) 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:65275 Archived-At: This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgment at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': * Prepare a version-controlled file These instructions use git, but I've found that the analagous steps using RCS also reproduce the problem. At your shell: #+BEGIN_EXAMPLE $ cd /tmp $ rm -rf x $ mkdir x $ cd x $ git init $ echo Hey baby > frotz $ git add . $ git commit -m "A commit" #+END_EXAMPLE Now we have a git repo that contains a single file. Now visit the file with emacs - C-x C-f /tmp/frotz RET Change the file: - w a s s u p RET C-x C-s Create a *vc-diff* buffer that shows the changes: - C-x v = Restore the file to its checked-in state - C-x v u y e s RET Refresh the *vc-diff* buffer - g At this point, everything is as it should be: we're looking at the file in the upper window, and a (now-empty) *vc-diff* buffer in the lower window. Now try to quit the *vc-diff* buffer: - q I hear the bell ring, and see a message in the echo area: Buffer is read-only: # I was expecting the *vc-diff* window to close, and the *vc-diff* buffer to get buried, which is what _normally_ happens when I type "q". If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /Applications/Emacs.app/Contents/Resources/etc/DEBUG. In GNU Emacs 24.2.50.1 (x86_64-apple-darwin12.1.0, NS apple-appkit-1187.00) of 2012-09-20 on Eric-Hanchrows-MacBook-Air.local Windowing system distributor `Apple', version 10.3.1187 Configured using: `configure '--with-ns' 'CFLAGS=-O2 -arch x86_64' 'LDFLAGS=-L/opt/local/lib' 'CPPFLAGS=-I/opt/local/include'' Important settings: locale-coding-system: nil default enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: diff-auto-refine-mode: t 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: C-x C-f / t m p / f r t o z / / t m p / f r x f C-M-o W a s s u p C-x C-s C-x v = q C-x v u y e s C-x v = C-M-o C-w W a s s u p C-x C-s C-x v = C-x o C-x v u y e s C-x o g q C-x 0 C-x C-f C-u C-n C-u C-n C-n C-n a y C-x C-f w h e e C-j W a s s u p C-x C-s C-x v v r c R C-x v = H e y C-x C-q H e y SPC b a b y C-x C-s C-x y e y e s C-x v = C-x o C-x v u y e s y e s C-x o g q C-x 0 C-x k C-x k M-> Y o SPC m o m m a C-x C-s C-x v = C-x o C-x o C-x v u y e s g q C-x 1 C-x b m e s s * m e M e C-p M-f M-f M-f M-b C-SPC C-e M-w C-x k C-x k H e y SPC c u z C-x C-s C-x v = q M-x r e p o r t - e m Recent messages: Saving file /tmp/x/frotz... Wrote /tmp/x/frotz Finding changes in /tmp/x/frotz...done Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml 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 vc-arch vc-mtn vc-hg vc-bzr vc-sccs vc-svn vc-cvs vc-rcs help-mode novice dired diff-mode easymenu easy-mmode vc vc-dispatcher vc-git 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 dbusbind ns multi-tty emacs)