unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Kenichi Handa <handa@gnu.org>
Cc: 13066@debbugs.gnu.org
Subject: bug#13066: 24.2.90; setting rmail-summary-window-size causes error
Date: Sun, 30 Dec 2012 10:28:42 +0100	[thread overview]
Message-ID: <50E0094A.1010500@gmx.at> (raw)
In-Reply-To: <87mwww9bq7.fsf@gnu.org>

 > It seems that the new code changed the logic.  Now
 > rmail-summary-window-size doesn't take effect.  As I didn't
 > customize rmail-redisplay-summary, its value is nil.  And
 > the new code handles rmail-summary-window-size only if its
 > value is non-nil.
 >
 >     (and rmail-summary-buffer (buffer-name rmail-summary-buffer)
 > 	 rmail-redisplay-summary   ;; <--- !!!
 > 	 (setq window
 > 	       (display-buffer
 > 		rmail-summary-buffer '(nil (reusable-frames . visible))))
 > 	 rmail-summary-window-size
 > 	 (setq size (- rmail-summary-window-size (window-height window)))
 > 	 (window--resizable-p window size)
 > 	 (window-resize window size))))

I obviously have no idea how this is supposed to work :-(

We could replace the condition

   (when (and rmail-summary-buffer (buffer-name rmail-summary-buffer)
	     rmail-redisplay-summary)

in `rmail-maybe-display-summary' either by

   (when (and rmail-summary-buffer (buffer-name rmail-summary-buffer)
	     (or rmail-redisplay-summary
		 (get-buffer-window rmail-summary-buffer 0)))

or by

   (when (and rmail-summary-buffer (buffer-name rmail-summary-buffer)
	     (or rmail-redisplay-summary rmail-summary-window-size))

Both should work if the summary window was specially created for the
summary.  They won't work when the window got merely reused - but in
that case resizing the window doesn't strike me as a good idea in the
first place.  Can you try them?

If this doesn't help, can you please tell me when and why you want to
resize the summary window and why you want to do that with
`rmail-redisplay-summary' set to nil?  I can obviously restore the old
logic but would like to understand it first.

Thanks, martin





  reply	other threads:[~2012-12-30  9:28 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-03 13:43 bug#13066: 24.2.90; setting rmail-summary-window-size causes error Kenichi Handa
2012-12-03 17:41 ` martin rudalics
2012-12-03 19:41   ` Glenn Morris
2012-12-04  2:18     ` Glenn Morris
2012-12-04  8:36       ` martin rudalics
2012-12-04 13:33       ` Kenichi Handa
2012-12-06 11:26         ` Kenichi Handa
2012-12-06 20:55           ` Glenn Morris
2012-12-06 21:45             ` Glenn Morris
2012-12-07 10:35               ` martin rudalics
2012-12-07 12:36               ` Kenichi Handa
2012-12-08 11:20                 ` martin rudalics
2012-12-28 10:25                 ` martin rudalics
2012-12-30  8:37                   ` Kenichi Handa
2012-12-30  9:28                     ` martin rudalics [this message]
2012-12-31 11:36                       ` martin rudalics
2013-01-02 14:09 ` Kenichi Handa
2013-01-04  7:08   ` martin rudalics
2013-01-06  6:04     ` Kenichi Handa
2013-01-07  7:43       ` 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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=50E0094A.1010500@gmx.at \
    --to=rudalics@gmx.at \
    --cc=13066@debbugs.gnu.org \
    --cc=handa@gnu.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).