From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#26672: 25.2; Flyspell overlay conflicts with table.el Date: Fri, 28 Apr 2017 12:10:00 +0300 Message-ID: <83o9vgnbiv.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1493370673 3752 195.159.176.226 (28 Apr 2017 09:11:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 28 Apr 2017 09:11:13 +0000 (UTC) Cc: 26672@debbugs.gnu.org To: Allen Li Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 28 11:11:09 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d41vh-0000rt-Mf for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Apr 2017 11:11:09 +0200 Original-Received: from localhost ([::1]:35962 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d41vn-00013F-Au for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Apr 2017 05:11:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49532) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d41vd-00011t-Od for bug-gnu-emacs@gnu.org; Fri, 28 Apr 2017 05:11:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d41va-0000Cf-F2 for bug-gnu-emacs@gnu.org; Fri, 28 Apr 2017 05:11:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45378) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d41va-0000CQ-Ay for bug-gnu-emacs@gnu.org; Fri, 28 Apr 2017 05:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d41va-0005ft-6M for bug-gnu-emacs@gnu.org; Fri, 28 Apr 2017 05:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Apr 2017 09:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26672 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 26672-submit@debbugs.gnu.org id=B26672.149337064921794 (code B ref 26672); Fri, 28 Apr 2017 09:11:02 +0000 Original-Received: (at 26672) by debbugs.gnu.org; 28 Apr 2017 09:10:49 +0000 Original-Received: from localhost ([127.0.0.1]:43577 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d41vN-0005fR-12 for submit@debbugs.gnu.org; Fri, 28 Apr 2017 05:10:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58489) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d41vK-0005fE-Sm for 26672@debbugs.gnu.org; Fri, 28 Apr 2017 05:10:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d41v8-0008MH-MR for 26672@debbugs.gnu.org; Fri, 28 Apr 2017 05:10:41 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57936) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d41v8-0008MB-Ii; Fri, 28 Apr 2017 05:10:34 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2697 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1d41v7-0008Tk-Up; Fri, 28 Apr 2017 05:10:34 -0400 In-reply-to: (message from Allen Li on Wed, 26 Apr 2017 15:00:05 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:132071 Archived-At: > From: Allen Li > Date: Wed, 26 Apr 2017 15:00:05 -0700 > > Flyspell's overlay for misspelled words conflicts with table.el > > table.el adds its keymap as a text property to the text in table cells. > When Flyspell detects a misspelled word, it adds an overlay with a > keymap binding mouse2 to ‘flyspell-correct-word’. Apparently, this > overlay keymap overrides table.el’s ‘keymap’ text property. > > The effect of this is that pressing TAB to move between table cells will > instead insert a literal tab character if your cursor happens to be on a > misspelled word. This is extremely annoying. Thank you for your report. Could you please provide a complete recipe for reproducing the problem, starting with "emacs -Q", and loading all the necessary packages and visiting files if needed? I think I know how to fix this, but I need a clear-cut test case, and I don't use table.el to easily know how to do that. Also, is the problem only with TAB, or are there other keys which conflict with the Flyspell overlay keymap? > More generally, I’m not sure that an overlay keymap replacing the > ‘keymap’ text property is desired behavior. At the very least, there > should be an escape hatch option on the overlay keymap that defers to > the ‘keymap’ text property for cases like Flyspell where replacing the > ‘keymap’ text property is not desired behavior. I think we do have the necessary infrastructure in Emacs to achieve the effect you want, it's just a matter of using it. Whether to use it in any given case is a decision that should be made on a case by case basis, since the user and/or application could want one or the other.