From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#18381: 24.3.93; Diary can wrongly be displayed in Calendar's window Date: Tue, 09 Sep 2014 03:44:25 -0400 Message-ID: References: <87k35nqtdd.fsf@rosalinde.fritz.box> <54085AC5.5050304@gmx.at> <7lr3zrjm94.fsf@fencepost.gnu.org> <64a96fko3d.fsf@fencepost.gnu.org> <54099491.4040607@gmx.at> <540ACB49.8010405@gmx.at> <9l38c2bqbo.fsf@fencepost.gnu.org> <87bnqpj1k3.fsf@rosalinde.fritz.box> <540EA527.4050809@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1410249568 30241 80.91.229.3 (9 Sep 2014 07:59:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Sep 2014 07:59:28 +0000 (UTC) Cc: Stephen Berman , 18381@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 09 09:59:21 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 1XRG6w-0004nB-Hi for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Sep 2014 09:45:10 +0200 Original-Received: from localhost ([::1]:47980 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRG6w-0005tf-5Z for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Sep 2014 03:45:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46924) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRG6s-0005rc-AO for bug-gnu-emacs@gnu.org; Tue, 09 Sep 2014 03:45:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XRG6p-0003zr-2Y for bug-gnu-emacs@gnu.org; Tue, 09 Sep 2014 03:45:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42812) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRG6o-0003yi-PF for bug-gnu-emacs@gnu.org; Tue, 09 Sep 2014 03:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XRG6o-0000bU-9S for bug-gnu-emacs@gnu.org; Tue, 09 Sep 2014 03:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Sep 2014 07:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18381 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18381-submit@debbugs.gnu.org id=B18381.14102486702264 (code B ref 18381); Tue, 09 Sep 2014 07:45:02 +0000 Original-Received: (at 18381) by debbugs.gnu.org; 9 Sep 2014 07:44:30 +0000 Original-Received: from localhost ([127.0.0.1]:34376 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XRG6H-0000aR-QU for submit@debbugs.gnu.org; Tue, 09 Sep 2014 03:44:30 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:56009 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XRG6F-0000aI-4U for 18381@debbugs.gnu.org; Tue, 09 Sep 2014 03:44:28 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1XRG6D-0004T0-CR; Tue, 09 Sep 2014 03:44:25 -0400 X-Spook: Hamas Attorney General mindwar 64 Vauxhall Cross defense X-Ran: Fj*^~?sPi*df)c!v./RRs6YaUgQo#U1H0WE3z"0wO!0[D4]s4OUq,&V!^(q!sjo@+\Q1Av X-Hue: white X-Attribution: GM In-Reply-To: <540EA527.4050809@gmx.at> (martin rudalics's message of "Tue, 09 Sep 2014 08:58:47 +0200") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) 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:93174 Archived-At: martin rudalics wrote: >> (let ((display-buffer-fallback-action >> (list (delq 'display-buffer-in-previous-window >> (copy-sequence (car display-buffer-fallback-action)))))) >> ...) [...] > (let ((display-buffer-overriding-action > (list (delq 'display-buffer-in-previous-window > (copy-sequence (car display-buffer-fallback-action)))))) > ...) I can't see that the second form is substantially cleaner than the first, but ok. > You still didn't tell me who actually is responsible for displaying the > calendar and then the diary. Not sure I understand. Like I said: M-x diary M-x calendar M-x diary If you are asking me where the display-buffer call is, then it's diary-display-function as called from diary-list-entries. The two standard values are diary-fancy-display (which uses calendar-in-read-only-buffer, which calls display-buffer), and diary-simple-display, which calls display-buffer directly. Since calendar-in-read-only-buffer is a general function, I'd prefer not to add too much that is specific to this one usage. And even for the diary using the previous window might be right in some cases, just not this specific one where the previous window now contains the calendar. > Is it `calendar-in-read-only-buffer'? If we are sure that it's there, > we can pass the necessary advice in that mancro's `display-buffer' > call's ACTION argument. What would the necessary advice look like? At the moment I think I'm going to settle for just getting 24.3 behaviour back. Perhaps this should all be rewritten using modern display syntax rather than trying to coerce it to behave piecemeal.