all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stephen Berman <stephen.berman@gmx.net>
To: martin rudalics <rudalics@gmx.at>
Cc: Jens Lechtenboerger <lechten@wi.uni-muenster.de>,
	Michael Heerdegen <michael_heerdegen@web.de>,
	Stephen Berman <stephen.berman@gmx.net>,
	25946@debbugs.gnu.org
Subject: bug#25946: 26.0.50; display-buffer ignores ignores reusable-frames in display-buffer-alist
Date: Tue, 07 Mar 2017 20:36:54 +0100	[thread overview]
Message-ID: <87innk6fqh.fsf@rosalinde> (raw)
In-Reply-To: <58BF033E.6050001@gmx.at> (martin rudalics's message of "Tue, 07 Mar 2017 20:00:14 +0100")

On Tue, 07 Mar 2017 20:00:14 +0100 martin rudalics <rudalics@gmx.at> wrote:

>> TeX-recenter-output-buffer could be redefined as follows to get the same
>> result (according to my tests) without resorting to pop-up-frame-alist:
>>
>>     (defun TeX-recenter-output-buffer (line)
>>       "Redisplay buffer of TeX job output so that most recent output can be seen.
>>     The last line of the buffer is displayed on line LINE of the window, or
>>     at bottom if LINE is nil."
>>       (interactive "P")
>>       (let ((buffer (TeX-active-buffer)))
>>         (if buffer
>>     	(let* ((old-buffer (current-buffer))
>>     	       (frame1 (window-frame (get-buffer-window old-buffer)))
>
> Are you sure old-buffer is displayed in a window here?  Otherwise frame1
> is just the frame of the selected window.

Normally, TeX-recenter-output-buffer is called (by `C-c C-l') from a
LaTeX source file, which is visited in old-buffer; though if you switch
to another buffer and invoke `M-x TeX-recenter-output-buffer' and the
output buffer exists, it will be displayed together with (by in the same
window and underneath) whatever the current buffer is.

>>     	       frame2)
>>     	  (TeX-pop-to-buffer buffer t t)
>>     	  (setq frame2 (window-frame (get-buffer-window buffer)))
>>     	  (bury-buffer buffer)
>
> Why bury it?  To remove it from the selected window?  It might be in
> another window.

That's in the exisiting definition; I don't know why, and don't see any
difference when I invoke this command with that line commented out.

>>     	  (goto-char (point-max))
>>     	  (recenter (if line
>>     			(prefix-numeric-value line)
>>     		      (/ (window-height) 2)))
>>     	  (if (eq frame1 frame2)
>>     	      (TeX-pop-to-buffer old-buffer nil t)
>
> Why this?

This is to get the current standard behavior described above, i.e. in
the same frame with source buffer above and output buffer below.

>>     	    (select-frame-set-input-focus frame1)))
>>           (message "No process for this document."))))
>
> It might make sense to redefine that function but I have no idea what it
> is supposed to do so I can't really comment on it.

I'm also not really familiar with the AUCTeX code, so I don't know if
this would cause problems elsewhere.

>>> Can you try to selectively revert that commit and see whether the
>>> problem persists?
>>
>> I suppose I could try to revert, but since I can't reliably reproduce
>> the problems, not seeing them after reverting may not be conclusive.
>> (For example, so far testing the above redefinition of TeX-pop-to-buffer
>> has not shown the problems.)
>
> Problems related to that commit might pop up any time with GTK now.  So
> if you experience phenomenas similar to the ones you described earlier
> please complain immediately.

Will do.

Steve Berman





  reply	other threads:[~2017-03-07 19:36 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-03 10:01 bug#25946: 26.0.50; display-buffer ignores ignores reusable-frames in display-buffer-alist Jens Lechtenboerger
2017-03-03 10:38 ` martin rudalics
2017-03-03 10:58   ` Jens Lechtenboerger
2017-03-03 14:24     ` martin rudalics
2017-03-03 14:49       ` Jens Lechtenboerger
2017-03-03 18:23         ` martin rudalics
2017-03-03 18:55           ` Drew Adams
     [not found]           ` <13CD49F822DC4A42AF94C24270D9E5CF9A5D4E36@WIWI-MAIL-1.WIWI.UNI-MUENSTER.DE>
2017-03-04 17:08             ` Jens Lechtenboerger
2017-03-04 17:40           ` martin rudalics
2017-03-05 10:34             ` martin rudalics
2017-03-05 11:27               ` Stephen Berman
2017-03-05 13:28                 ` martin rudalics
2017-03-05 22:20                   ` Michael Heerdegen
2017-03-06  8:11                     ` martin rudalics
2017-03-06  8:57                     ` Stephen Berman
2017-03-06  9:25                       ` Jens Lechtenboerger
2017-03-06 11:07                         ` Stephen Berman
2017-03-06 17:46                           ` martin rudalics
2017-03-06 20:59                             ` Stephen Berman
2017-03-07  9:45                               ` martin rudalics
2017-03-07 16:51                                 ` Stephen Berman
2017-03-07 19:00                                   ` martin rudalics
2017-03-07 19:36                                     ` Stephen Berman [this message]
2017-03-10 15:01                                   ` Jens Lechtenboerger
2017-03-11 10:20                                     ` martin rudalics
2017-03-06 17:46                         ` martin rudalics

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87innk6fqh.fsf@rosalinde \
    --to=stephen.berman@gmx.net \
    --cc=25946@debbugs.gnu.org \
    --cc=lechten@wi.uni-muenster.de \
    --cc=michael_heerdegen@web.de \
    --cc=rudalics@gmx.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.