From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#17007: 24.3.50; describe-key/function evaluates documentation function in the wrong buffer Date: Fri, 14 Mar 2014 12:32:16 +0100 Message-ID: <5322E8C0.5020106@gmx.at> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1394796791 4592 80.91.229.3 (14 Mar 2014 11:33:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Mar 2014 11:33:11 +0000 (UTC) Cc: 17007@debbugs.gnu.org To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 14 12:33:20 2014 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 1WOQMa-0008Qr-0q for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Mar 2014 12:33:20 +0100 Original-Received: from localhost ([::1]:44053 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOQMZ-0002Is-JO for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Mar 2014 07:33:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41501) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOQMQ-0002AF-F3 for bug-gnu-emacs@gnu.org; Fri, 14 Mar 2014 07:33:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WOQMJ-0006U5-S9 for bug-gnu-emacs@gnu.org; Fri, 14 Mar 2014 07:33:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35325) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOQMJ-0006U0-PR for bug-gnu-emacs@gnu.org; Fri, 14 Mar 2014 07:33:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WOQMI-0005bl-Ty for bug-gnu-emacs@gnu.org; Fri, 14 Mar 2014 07:33:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Mar 2014 11:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17007 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17007-submit@debbugs.gnu.org id=B17007.139479674221480 (code B ref 17007); Fri, 14 Mar 2014 11:33:02 +0000 Original-Received: (at 17007) by debbugs.gnu.org; 14 Mar 2014 11:32:22 +0000 Original-Received: from localhost ([127.0.0.1]:36506 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WOQLd-0005aO-KK for submit@debbugs.gnu.org; Fri, 14 Mar 2014 07:32:21 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:53959) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WOQLb-0005aE-E2 for 17007@debbugs.gnu.org; Fri, 14 Mar 2014 07:32:20 -0400 Original-Received: from [93.82.10.128] ([93.82.10.128]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0MRXVc-1WZJN33kaG-00Scvn; Fri, 14 Mar 2014 12:32:18 +0100 In-Reply-To: X-Provags-ID: V03:K0:tmScA8cAZZsEPwuNx/cxy6cuJ+gz9YSwO0PdRbifFcf4EdTdnWT IV0IuaydT37MKr4GUAZKxb2auNwnpU5SyZhuNPWGnkWmf2N7CDgqiaYkzQiDp2Rf7zhIaP7 tbsMZwxj7hEE64n+mILIqHIHi3aTiLbbd3j1FBDPCyJzS2FYBlLOau0nuYFmbR3COoThDKH OZJBqQIeWnXdfIoTD/zDw== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:86848 Archived-At: > This has stopped working in 24.3.5 since `with-help-window' started > replaced `with-output-to-temp-buffer' with > `with-temp-buffer-window'. The former just binds `standard-output' while > the latter also sets the current buffer to the *Help* buffer. > > The result is that the fallback keybinding reported is always > "forward-button", which is almost always wrong. > > One could either > > 1. revert that change (was it just a cleanup?) > 2. fix/parametrize that particular behaviour of > `with-temp-buffer-window' > 3. pass an extra original-buffer arg to `describe-function-1' > 4. dynamically bind some new `help-original-buffer' var. > > Even though a better mechanism for "fallback keybindings" is being > discussed (and by then yasnippet can get rid of its own technique, which > is half-baked but working since emacs 22), it'd be nice if the current > function-documentation trick is kept working for upcoming emacs 24.4. > > This originated in https://github.com/capitaomorte/yasnippet/issues/468 > > http://github.com/capitaomorte/autopair does something similar and is > probably also affected, but I plan to deprecate autopair in favor of > 24.4's electric-pair-mode anyway. Sorry, I messed this up too often already. Hopefully, it's sufficient to add one `with-current-buffer' binding at some particular level. Could you please send me the calling sequence used by yasnippet, so I can identify the location where this is necessary? martin