From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jan Newsgroups: gmane.emacs.bugs Subject: bug#23131: switch-to-buffer-other-frame problem Date: Mon, 28 Mar 2016 00:37:30 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1459121898 18208 80.91.229.3 (27 Mar 2016 23:38:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Mar 2016 23:38:18 +0000 (UTC) To: 23131@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 28 01:38:09 2016 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 1akKG0-0004za-9y for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Mar 2016 01:38:08 +0200 Original-Received: from localhost ([::1]:37793 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akKFz-0001pO-3y for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Mar 2016 19:38:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60533) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akKFv-0001pJ-6Q for bug-gnu-emacs@gnu.org; Sun, 27 Mar 2016 19:38:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akKFu-000218-7Q for bug-gnu-emacs@gnu.org; Sun, 27 Mar 2016 19:38:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43389) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akKFu-000214-3b for bug-gnu-emacs@gnu.org; Sun, 27 Mar 2016 19:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1akKFt-0000gf-V4 for bug-gnu-emacs@gnu.org; Sun, 27 Mar 2016 19:38:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: jan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Mar 2016 23:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23131 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14591218622610 (code B ref -1); Sun, 27 Mar 2016 23:38:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Mar 2016 23:37:42 +0000 Original-Received: from localhost ([127.0.0.1]:40516 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1akKFa-0000g2-7B for submit@debbugs.gnu.org; Sun, 27 Mar 2016 19:37:42 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41163) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1akKFY-0000fp-Ta for submit@debbugs.gnu.org; Sun, 27 Mar 2016 19:37:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akKFS-0001ww-Gj for submit@debbugs.gnu.org; Sun, 27 Mar 2016 19:37:35 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:39446) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akKFS-0001wr-CW for submit@debbugs.gnu.org; Sun, 27 Mar 2016 19:37:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60322) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akKFR-0001nv-1k for bug-gnu-emacs@gnu.org; Sun, 27 Mar 2016 19:37:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akKFP-0001ve-Ug for bug-gnu-emacs@gnu.org; Sun, 27 Mar 2016 19:37:32 -0400 Original-Received: from mail-qk0-x235.google.com ([2607:f8b0:400d:c09::235]:33338) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akKFP-0001vW-Oq for bug-gnu-emacs@gnu.org; Sun, 27 Mar 2016 19:37:31 -0400 Original-Received: by mail-qk0-x235.google.com with SMTP id s5so90891838qkd.0 for ; Sun, 27 Mar 2016 16:37:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=gzwF54hwPYCvYlyBFUeWFCpRpgqZtHi8KOrEHfPH2Ds=; b=E+rtmzxzmt1t5z/xZEg1+yqCztTLf/u+9XEof8UklVQW3VyFP5QlZgwyhjJoeotjbR QMufuboDnCQuNvOT1o17osOOHAqOsHMCwEt8tjJY9mO1+yValiKQZqpD/BHmVbigFEOI xDrw+92pdWLv7moTFZFfd7wqZQyuXKgq8ECukAyMJaD+EwDAOm180ESjyuYHMPVDEAIu w2wHIu1JzD8K2jDpcf6mH+lHWyZE6UeaOFFVhggD2nRd0d7WdELMutZ/5J1dCg2Vc/RW VHyk9p7/wfXJ1jueZbWBQXrxGwxNOPsq3Nk2TF6vR0PmBfePVwJFUXgj149i2cgJO0lD 38Xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=gzwF54hwPYCvYlyBFUeWFCpRpgqZtHi8KOrEHfPH2Ds=; b=KIDtuaMq7a/l11vm37WmGBaFqy60rdgTIg3+i0f6A6gpuM/kcJaXpc+c+czBd/+1PY mSHJtkZE0eRtJgIJhAhqqEOg1UzRBP/D//HJq476zJf9zvrdQWqLH3gkdBVZGAbtxSuF z2hbt8Y9qlU2S5qXd9T0EeOn0Ekm2fHe5XtzNNsy50luPu1gaQ/JgJnWqZNA0o/GrACl cYEXnpastqkad2to6bXYFxO78nkOo4nJQOtkIcyfvwn7iiiLjGWZuRXg3jeZ7zYMeXPU AR55+7XznNcmKQC2fLNdAJPLlh9BbRgQiGHRZUgMj3v3P8I2a3O8t3E5mw43+7NCqByK HKqA== X-Gm-Message-State: AD7BkJJsokNLvDl7sOTZchyrfFmBQWSIywgJHgYkHFbeXr2mn/SP4yNS5YvizttXoSlNRJlldXttivHNIHk07A== X-Received: by 10.37.230.73 with SMTP id d70mr3008999ybh.138.1459121851023; Sun, 27 Mar 2016 16:37:31 -0700 (PDT) Original-Received: by 10.37.65.195 with HTTP; Sun, 27 Mar 2016 16:37:30 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:115618 Archived-At: Running emacs 24.5.1 on windows. Hi all, switch-to-buffer-other-frame works but should prompt for the name of the buffer to switch to. Per the help on that function "If called interactively, prompt for the buffer name using the minibuffer". Well it does but then refuses to recognise my buffer by name. --------- e.g Start emacs, then drag a file (say sample.txt) onto it. File opens fine. Type C-x 5 b - minibuffer shows "Switch to buffer in other frame (default *GNU Emacs*): " I type "sam" [tab key for completion] - minibuffer says "Switch to buffer in other frame (default *GNU Emacs*): sam[No Match]" odd. If I remove the "sam" I just typed then type '?' to show the buffer list, it opens a 2nd buffer at the bottom and shows Possible completions are: *GNU Emacs* *Messages* *scratch* which does not show sample.txt, which is definitly there as I can see it open in the buffer at the top. As a workaround, I enter a nonexistent buffer name, the 2nd frame opens, blank, I then do C-x b sam <- I type this in [tab for completion] sample.txt <- emacs autocompletes this RET <- to accept and sample.txt is now shown in the other frame as I want. But this is a workaround. ---------------- Having raised this with Eli, he says this is expected behaviour: "Yes, it's a feature: Emacs doesn't offer you a buffer that is already displayed in an existing window. This was introduced in Emacs 24." Well, a) this is not documented (see below) and b) I can't see any rationale for this behaviour. Hiding this option does not assist the user in any way I can see. Also, the behaviour is apparently broken if the current buffer/window is split: a. open sample.txt b. C-x 2 -- split window in 2, top and bottom c. C-x 5 b -- try to get 2nd frame d. sample.txt -- type in full filename in minibuffer e. 2nd frame does *not* appear, cursor jumps to top of split window, even if was originally in bottom. can reproduce? jan I said this behaviour isn't documented that I can see. Here's the full docs for this function. It says nothing about hiding the current buffer name: ------- switch-to-buffer-other-frame is an interactive compiled Lisp function in `window.el'. It is bound to C-x 5 b. (switch-to-buffer-other-frame BUFFER-OR-NAME &optional NORECORD) Switch to buffer BUFFER-OR-NAME in another frame. BUFFER-OR-NAME may be a buffer, a string (a buffer name), or nil. Return the buffer switched to. If called interactively, prompt for the buffer name using the minibuffer. The variable `confirm-nonexistent-file-or-buffer' determines whether to request confirmation before creating a new buffer. If BUFFER-OR-NAME is a string and does not identify an existing buffer, create a new buffer with that name. If BUFFER-OR-NAME is nil, switch to the buffer returned by `other-buffer'. Optional second arg NORECORD non-nil means do not put this buffer at the front of the list of recently selected ones. This uses the function `display-buffer' as a subroutine; see its documentation for additional customization information. -------