all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* can't open the same buffer in a second frame
@ 2017-12-05 21:30 ken
  2017-12-05 21:50 ` Dale Snell
  0 siblings, 1 reply; 5+ messages in thread
From: ken @ 2017-12-05 21:30 UTC (permalink / raw)
  To: help-gnu-emacs

It used to be nice that I could open the same buffer in a second frame 
(aka window).  Sometimes I need to edit the same file in three or four 
places and it's necessary to have all of them showing at the same 
time... and for other reasons.  But I tried doing "C-x 5 b" and also 
"C-x 5 f" yesterday and couldn't do it either way.  I could open a 
different (not currently open file or buffer), but couldn't open the 
same one.  It worked years ago. Why take away perfectly good and useful 
functionality?  More importantly, how do I get it back?





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: can't open the same buffer in a second frame
  2017-12-05 21:30 ken
@ 2017-12-05 21:50 ` Dale Snell
  2017-12-05 23:00   ` tomas
  2017-12-06 18:25   ` ken
  0 siblings, 2 replies; 5+ messages in thread
From: Dale Snell @ 2017-12-05 21:50 UTC (permalink / raw)
  To: help-gnu-emacs

On Tue, 5 Dec 2017 16:30:31 -0500, in message
9df860de-de40-773c-44ad-3079ba29390b@mousecar.com, ken wrote:

> It used to be nice that I could open the same buffer in a second
> frame (aka window).  Sometimes I need to edit the same file in three
> or four places and it's necessary to have all of them showing at the
> same time... and for other reasons.  But I tried doing "C-x 5 b" and
> also "C-x 5 f" yesterday and couldn't do it either way.  I could open
> a different (not currently open file or buffer), but couldn't open
> the same one.  It worked years ago. Why take away perfectly good and
> useful functionality?  More importantly, how do I get it back?


I tried this here, and both "C-x 5 b" and "C-x 5 f" worked just
fine, though they both wanted me to specify the filename.  "C-x 5 2"
opened a new frame and automatically displayed the buffer from
the previous frame.

I suspect that there is something in your ~/.emacs.el
configuration that is causing this.  Best thing to do is do
a binary search of your configuration.  I.e., comment out half of
the config and save it.  Run emacs and see if the problem has gone
away.  If not, comment out half of the remaining config and try
again.  If it has gone away, un-comment the section you just
commented and try again.  Rinse and repeat until you've found the
errant config.

Hope this helps.

--Dale

-- 
“Always do right -- this will gratify some and astonish the rest.”
    -- Mark Twain (1835-1910) 



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: can't open the same buffer in a second frame
  2017-12-05 21:50 ` Dale Snell
@ 2017-12-05 23:00   ` tomas
  2017-12-06 18:25   ` ken
  1 sibling, 0 replies; 5+ messages in thread
From: tomas @ 2017-12-05 23:00 UTC (permalink / raw)
  To: help-gnu-emacs

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, Dec 05, 2017 at 01:50:29PM -0800, Dale Snell wrote:
> On Tue, 5 Dec 2017 16:30:31 -0500, in message
> 9df860de-de40-773c-44ad-3079ba29390b@mousecar.com, ken wrote:
> 
> > It used to be nice that I could open the same buffer in a second
> > frame (aka window).  [...]

> I tried this here, and both "C-x 5 b" and "C-x 5 f" worked just
> fine, though they both wanted me to specify the filename.  "C-x 5 2"
> opened a new frame and automatically displayed the buffer from
> the previous frame.
> 
> I suspect that there is something in your ~/.emacs.el
> configuration that is causing this.  Best thing to do is do
> a binary search of your configuration.

Perhaps try first with "emacs -Q" to sidestep your whole local
config.

Cheers
- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlonJSQACgkQBcgs9XrR2kYT4QCeO7wb+4xtnJEG/TzA1wQybif0
z58AmwVgJrKLOINHn6zZk4eOvnwms3/x
=p/8R
-----END PGP SIGNATURE-----



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: can't open the same buffer in a second frame
       [not found] <mailman.5191.1512509446.27995.help-gnu-emacs@gnu.org>
@ 2017-12-06  3:34 ` Emanuel Berg
  0 siblings, 0 replies; 5+ messages in thread
From: Emanuel Berg @ 2017-12-06  3:34 UTC (permalink / raw)
  To: help-gnu-emacs

ken wrote:

> It used to be nice that I could open the same
> buffer in a second frame (aka window). 

(defun other-window-or-split ()
  (interactive)
  (when (= 1 (count-windows)) (split-window-vertically))
  (other-window 1) )

-- 
underground experts united
http://user.it.uu.se/~embe8573


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: can't open the same buffer in a second frame
  2017-12-05 21:50 ` Dale Snell
  2017-12-05 23:00   ` tomas
@ 2017-12-06 18:25   ` ken
  1 sibling, 0 replies; 5+ messages in thread
From: ken @ 2017-12-06 18:25 UTC (permalink / raw)
  To: GNU Emacs List

On 12/05/2017 04:50 PM, Dale Snell wrote:
> On Tue, 5 Dec 2017 16:30:31 -0500, in message
> 9df860de-de40-773c-44ad-3079ba29390b@mousecar.com, ken wrote:
>
>> It used to be nice that I could open the same buffer in a second
>> frame (aka window).  Sometimes I need to edit the same file in three
>> or four places and it's necessary to have all of them showing at the
>> same time... and for other reasons.  But I tried doing "C-x 5 b" and
>> also "C-x 5 f" yesterday and couldn't do it either way.  I could open
>> a different (not currently open file or buffer), but couldn't open
>> the same one.  It worked years ago. Why take away perfectly good and
>> useful functionality?  More importantly, how do I get it back?
>
> I tried this here, and both "C-x 5 b" and "C-x 5 f" worked just
> fine, though they both wanted me to specify the filename.  "C-x 5 2"
> opened a new frame and automatically displayed the buffer from
> the previous frame.

"C-x 5 2" worked... didn't know about it, and it actually does what I 
need more directly and efficiently.  Thanks.




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-12-06 18:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.5191.1512509446.27995.help-gnu-emacs@gnu.org>
2017-12-06  3:34 ` can't open the same buffer in a second frame Emanuel Berg
2017-12-05 21:30 ken
2017-12-05 21:50 ` Dale Snell
2017-12-05 23:00   ` tomas
2017-12-06 18:25   ` ken

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.