From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#50067: Context menus Date: Mon, 27 Sep 2021 18:33:15 +0300 Message-ID: <87mtnyyr5c.fsf@mail.linkov.net> References: <87pmufb3u0.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20543"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) To: 50067@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 27 17:45:11 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mUsoY-00056v-82 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Sep 2021 17:45:10 +0200 Original-Received: from localhost ([::1]:35690 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUsoX-0006yF-48 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Sep 2021 11:45:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60794) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUsnS-00067u-SC for bug-gnu-emacs@gnu.org; Mon, 27 Sep 2021 11:44:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59131) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mUsnS-00054h-JP for bug-gnu-emacs@gnu.org; Mon, 27 Sep 2021 11:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mUsnS-0003sz-FN for bug-gnu-emacs@gnu.org; Mon, 27 Sep 2021 11:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Sep 2021 15:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50067 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 50067-submit@debbugs.gnu.org id=B50067.163275738314834 (code B ref 50067); Mon, 27 Sep 2021 15:44:02 +0000 Original-Received: (at 50067) by debbugs.gnu.org; 27 Sep 2021 15:43:03 +0000 Original-Received: from localhost ([127.0.0.1]:42443 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUsmV-0003r4-0k for submit@debbugs.gnu.org; Mon, 27 Sep 2021 11:43:03 -0400 Original-Received: from relay5-d.mail.gandi.net ([217.70.183.197]:46787) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUsmS-0003py-KU for 50067@debbugs.gnu.org; Mon, 27 Sep 2021 11:43:00 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 95A1E1C000B for <50067@debbugs.gnu.org>; Mon, 27 Sep 2021 15:42:54 +0000 (UTC) In-Reply-To: <87pmufb3u0.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 15 Aug 2021 11:48:55 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:215684 Archived-At: After typing 'C-h k', clicking mouse-3 on a function name, then selecting e.g. "Describe Function", the Help buffer says at that spot is undefined This can be fixed by this patch: diff --git a/lisp/help.el b/lisp/help.el index 8f77167040..b794751eca 100644 --- a/lisp/help.el +++ b/lisp/help.el @@ -695,7 +695,7 @@ help--analyze-key (mouse-msg (if (or (memq 'click modifiers) (memq 'down modifiers) (memq 'drag modifiers)) " at that spot" "")) - (defn (key-binding key t))) + (defn (save-excursion (mouse-set-point event) (key-binding key t)))) ;; Handle the case where we faked an entry in "Select and Paste" menu. (when (and (eq defn nil) (stringp (aref key (1- (length key)))) --