From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#11840: 24.1.50; nil keymap element on high priority overlay should fallthrough to low priority overlay Date: Mon, 02 Jul 2012 14:21:12 -0400 Message-ID: References: <87sjdavoe4.fsf@monsan.to> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1341253292 24428 80.91.229.3 (2 Jul 2012 18:21:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 2 Jul 2012 18:21:32 +0000 (UTC) Cc: 11840@debbugs.gnu.org To: Christopher Monsanto Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 02 20:21:31 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 1SllFa-0007Lj-Ow for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Jul 2012 20:21:30 +0200 Original-Received: from localhost ([::1]:52338 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SllFZ-00062B-IN for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Jul 2012 14:21:29 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51528) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SllFX-000625-5E for bug-gnu-emacs@gnu.org; Mon, 02 Jul 2012 14:21:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SllFV-0006rd-Di for bug-gnu-emacs@gnu.org; Mon, 02 Jul 2012 14:21:26 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33565) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SllFV-0006rY-AF for bug-gnu-emacs@gnu.org; Mon, 02 Jul 2012 14:21:25 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SllJx-0004VI-Oj for bug-gnu-emacs@gnu.org; Mon, 02 Jul 2012 14:26:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Jul 2012 18:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11840 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11840-submit@debbugs.gnu.org id=B11840.134125355317297 (code B ref 11840); Mon, 02 Jul 2012 18:26:01 +0000 Original-Received: (at 11840) by debbugs.gnu.org; 2 Jul 2012 18:25:53 +0000 Original-Received: from localhost ([127.0.0.1]:43111 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SllJp-0004Uw-6T for submit@debbugs.gnu.org; Mon, 02 Jul 2012 14:25:53 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:64235) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SllJn-0004Up-85 for 11840@debbugs.gnu.org; Mon, 02 Jul 2012 14:25:51 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai0FAG6Zu09FxKFY/2dsb2JhbABEsEiDSYEIghUBAQQBViMQCw4mBwsUGA0kiBwFugmQRAOjM4FYgwU X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="192491280" Original-Received: from 69-196-161-88.dsl.teksavvy.com (HELO pastel.home) ([69.196.161.88]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 02 Jul 2012 14:21:13 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 175B25976E; Mon, 2 Jul 2012 14:21:12 -0400 (EDT) In-Reply-To: (Christopher Monsanto's message of "Mon, 2 Jul 2012 12:32:48 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) 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:61499 Archived-At: >>> One more symptom, and I doubt this could be anything but a bug: if you >>> delete the high priority overlay, we *still* don't use the lower >>> priority overlay's keymap! >> This is a limitation of the way properties are "merged". >> More specifically, in most cases properties coming from different >> overlays (and from text-properties) are *not* merged. Instead, the >> property of the highest-priority overlay is used. > For the problem you cited, that seems to be irrelevant... Indeed, thank you for correcting me: for the cited problem, the issue is most likely that Emacs reads the set of active keymaps when it starts waiting for a key-sequence, rather than when it actually sees a key-press, so if you remove overlays via things like process-filters, the set of keymaps used for the key-lookup may not reflect the set of keymaps that were actually present when the key was pressed. This one is indeed a (known) bug, rather than a limitation. Fixing it might not be too hard, but the culprit is in read_key_sequence which is a dreadfully intimidating function. Stefan