From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: era eriksson Newsgroups: gmane.emacs.bugs Subject: Re: flyspell interferes with C-c C-c (mail mode, vc-log-mode, etc) Date: Tue, 19 Nov 2002 12:48:38 +0200 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <15834.5894.947749.890116@there.afraid.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1037703067 793 80.91.224.249 (19 Nov 2002 10:51:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 19 Nov 2002 10:51:07 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18E5yD-0000CY-00 for ; Tue, 19 Nov 2002 11:51:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18E5yH-0002Cf-00; Tue, 19 Nov 2002 05:51:09 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 18E5xI-0001Z5-00 for bug-gnu-emacs@gnu.org; Tue, 19 Nov 2002 05:50:08 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 18E5xF-0001XN-00 for bug-gnu-emacs@gnu.org; Tue, 19 Nov 2002 05:50:07 -0500 Original-Received: from rhols66.adsl.netsonic.fi ([194.29.198.66] helo=there.afraid.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18E5xA-0001WK-00; Tue, 19 Nov 2002 05:50:00 -0500 Original-Received: from era by there.afraid.org with local (Exim 3.35 #1 (Debian)) id 18E5vr-0003Ea-00; Tue, 19 Nov 2002 12:48:39 +0200 Original-To: rms@gnu.org In-Reply-To: X-Mailer: VM 7.03 under Emacs 20.7.2 Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:3909 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:3909 On Tue, 19 Nov 2002 03:48:32 -0500, Richard Stallman wrote: > Could you possibly provide one completely specific test case rather > than leaving some aspects unspecified? Show us the text to use, say > precisely which mode to use, etc. That is the most reliable > way to enable us to see the problem. I don't see which part of this is hard to come up with from the description I gave, but here is a blow by blow transcript. * In order to exercise vc-log-mode below, create a testing RCS file, in the shell. $ touch /tmp/testing $ ci -u /tmp/testing Note: file is write protected * Define customary flyspell hook for text mode M-: (add-hook 'text-mode-hook (function flyspell-mode)) => (flyspell-mode text-mode-hook-identify) * Check out file for editing C-x v v * Add a space SPC * Prepare to check in the file C-x v v => Buffer testing.txt modified; save it? (y or n) y => Loading flyspell...done Enter a change comment. Type C-c C-c when done. (Other comments flashed by; see *Messages* transcript below.) * Add a comment in the tongue of the honorable and the heroic Fest alla dagar * Wait until flyspell has colorized the text Observe that "alla" and "dagar" are colored red to mark them as possible misspellings (unless of course you have ispell configured for Swedish by default). I believe I have verified that this step is necessary for the bug to show up. Normally I have already loaded flyspell+ispell earlier and am not running multiple instances of Emacs on this poor old machine, so this is a virtually instantaneous step, but while I was working out this test case, it took on the order of one second for flyspell to catch up and colorize the text. If I was quick enough, I could check in the file before the colorization had completed. * Attempt to commit the check-in C-c C-c Get a beep back. Wonder what happened. (Tee hee, I think I know what happened.) * Diagnostics: C-c C-c is "undefined" when cursor is on top of colored text or at the end of buffer immediately adjacent to colored text, while otherwise the keystroke is bound to "vc-finish-logentry" (as expected everywhere in the buffer). C-h k C-c C-c => C-c C-c is undefined M-< => Mark set C-h k C-c C-c => C-c C-c runs the command vc-finish-logentry which is an interactive compiled Lisp function in `vc'. (vc-finish-logentry &optional NOCOMMENT) Complete the operation implied by the current log entry. Type C-x 4 b RET to restore the other window. M-C-v to scroll the help. I notice that this will even reproduce under emacs -nw (or probably other moral equivalents) although no visible colorization takes place. (I imagine that the colorization is accomplished with an overlay which has a keymap of its own, and that this is what causes the problem. Could be a bug in cus-face rather than in flyspell I suppose.) I run emacs20 and associated system software provided in the Debian stable distribution, with the "iamerican" dictionary for ispell. I hope this is specific enough for you. Some additional transcripts are included below. /* era */ *lossage* (excluding keystrokes for diagnostics): escape : ( a d d - h o o k SPC ' t e x t - m o d e - h o o k SPC ( f u n c t i o n SPC f l y s p e l l - m o d e ) ) return C-x v v SPC C-x v v y F e s t SPC a l l a SPC d a g a r C-c C-c *Messages* (excluding messages from diagnostics): For information about the GNU Project and its goals, type C-h C-p. Note: file is write protected (flyspell-mode text-mode-hook-identify) Loading vc... Loading derived... Loading derived...done Loading vc...done Checking out /tmp/testing... Checking out /tmp/testing...done Wrote /tmp/testing Loading flyspell... Loading cus-face... Loading cus-face...done Loading flyspell...done Welcome to flyspell. Use Mouse-2 to correct words. Enter a change comment. Type C-c C-c when done. Starting new Ispell process... Loading view... Loading view...done Type C-x 4 b RET to restore the other window. M-C-v to scroll the help. -- Join the civilized world -- ban spam like we did! tee -a $HOME/.signature <$HOME/.plan >http://www.iki.fi/era/index.html