From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Allen Li Newsgroups: gmane.emacs.bugs Subject: bug#26672: 25.2; Flyspell overlay conflicts with table.el Date: Fri, 28 Apr 2017 21:19:38 -0700 Message-ID: References: <83o9vgnbiv.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1493439615 7398 195.159.176.226 (29 Apr 2017 04:20:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 29 Apr 2017 04:20:15 +0000 (UTC) Cc: 26672@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 29 06:20:12 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 1d4Jrc-0001lD-Qs for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Apr 2017 06:20:09 +0200 Original-Received: from localhost ([::1]:39809 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d4Jri-0005B0-BM for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Apr 2017 00:20:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35405) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d4Jra-00059f-Fc for bug-gnu-emacs@gnu.org; Sat, 29 Apr 2017 00:20:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d4JrX-0000jd-7g for bug-gnu-emacs@gnu.org; Sat, 29 Apr 2017 00:20:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47167) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d4JrX-0000jX-50 for bug-gnu-emacs@gnu.org; Sat, 29 Apr 2017 00:20:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d4JrW-0002CY-TK for bug-gnu-emacs@gnu.org; Sat, 29 Apr 2017 00:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Allen Li Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Apr 2017 04:20:01 +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.14934395888430 (code B ref 26672); Sat, 29 Apr 2017 04:20:01 +0000 Original-Received: (at 26672) by debbugs.gnu.org; 29 Apr 2017 04:19:48 +0000 Original-Received: from localhost ([127.0.0.1]:45366 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d4JrI-0002Bt-Fc for submit@debbugs.gnu.org; Sat, 29 Apr 2017 00:19:48 -0400 Original-Received: from mail-oi0-f51.google.com ([209.85.218.51]:34940) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d4JrF-0002Bb-CE for 26672@debbugs.gnu.org; Sat, 29 Apr 2017 00:19:46 -0400 Original-Received: by mail-oi0-f51.google.com with SMTP id c62so5391292oif.2 for <26672@debbugs.gnu.org>; Fri, 28 Apr 2017 21:19:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=6/qz8/pdvy4eYmpfp+x1VUo5tuvEJGTMFlq6Am/Vvk8=; b=O0Nb6Zj0yg4S+Yl0muQ21ud8R/BqLRGaPqf4hjTbUcxqS+jNjZc4aK5XTB2/JgL79g y9lNIYbI/IC+3TofvgNgdPPQBGkfMscXq2AT+NSReXh3EyMX8OCLwncMEx18T1yN4D9t 2dPXm+QTckCAMVuvpjuoav3sq6S6SsuoG363Uu6Fj2Fu0nDP9QgIxl0eWBHuTa4a9aVv Ir4qpijxo1fZMQZfZ8odrDw+9ubJYcCloDpXXBRAWbkJb6jSClTODehFd8Tv+y7mDn25 0DpyIe/eezC9+spCkSGtvC1Vl8Esoc40I7IM6M14Rjc2G0uyOD2N99m1I9Mr4I4lwAXn hrTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=6/qz8/pdvy4eYmpfp+x1VUo5tuvEJGTMFlq6Am/Vvk8=; b=Sk6EjexK570AprKBxgCDX2tJbcA4se3HmE1LvZsbBonBiS1r67yQgsmPaKfmC/rsF+ 6th18dUoFU4AqJ053pX4+iV9IPPy2S3A/pINtqrq4EEiBlD5HjWXhY6PdnW+u3El52bn L/IFC3IkXG1qFvBFGWFM6ewByLDpb6uhly80LmtjrO83Zs9WNTzXjaE5CI87wmmgIJ1B JjzhoYk39KsqOwgzMBSQ9/O1Gxd9wf28QjBZZGVl31cWHpcwW1/0GNAfsP7ouwD2mr5y fPJ9BR/TjIG9WDHfm8aI/mUCuAeKFuokpERpb2LN66jG5JG+V/y+jQB8121TKqsqFeRs ftpg== X-Gm-Message-State: AN3rC/5zsk4NoiG+tkL8qLA+NUp6tnbnHVtCXER8jqqtyXAlzfz4SrGZ J7jEsi3qlW2MQXVnaJvcUylrKbi+rQ== X-Received: by 10.157.56.248 with SMTP id k53mr5667032ote.1.1493439578557; Fri, 28 Apr 2017 21:19:38 -0700 (PDT) Original-Received: by 10.157.42.79 with HTTP; Fri, 28 Apr 2017 21:19:38 -0700 (PDT) In-Reply-To: <83o9vgnbiv.fsf@gnu.org> 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:132092 Archived-At: 1. emacs -Q 2. M-x flyspell-mode 3. M-x table-insert RET RET RET ... (the defaults are fine) 4. apple M-b TAB (apple is spelled correctly, TAB works) 5. asdf M-b TAB (wait for flyspell to mark the misspelling, TAB doesn't wor= k) On Fri, Apr 28, 2017 at 2:10 AM, Eli Zaretskii wrote: >> 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 =E2=80=98flyspell-correct-word=E2=80=99. Appar= ently, this >> overlay keymap overrides table.el=E2=80=99s =E2=80=98keymap=E2=80=99 tex= t 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=E2=80=99m not sure that an overlay keymap replacing th= e >> =E2=80=98keymap=E2=80=99 text property is desired behavior. At the very= least, there >> should be an escape hatch option on the overlay keymap that defers to >> the =E2=80=98keymap=E2=80=99 text property for cases like Flyspell where= replacing the >> =E2=80=98keymap=E2=80=99 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.