info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Follow-up etc in NEW frame


From: Reiner Steib
Subject: Re: Follow-up etc in NEW frame
Date: Tue, 12 Oct 2004 17:41:45 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

[ Added Cc to the ding list.  If anyone thinks that this patch is not
  the right solution, please speak up.  I'd suggest to contionue the
  thread on the ding list. ]

On Mon, Oct 11 2004, Reiner Steib wrote:

> On Mon, Oct 11 2004, Xavier Maillard wrote:
>> Any chance we can see what does it look like in action (ie. any
>> picture) ?
>
> Both solutions [1] lead to new frames when composing messages, 
> e.g. when pressing `F', `R' and similar, you get a new frame.  When
> pressing `C-c C-c', the frame is closed automatically.
>
> Alas, there are a couple of minor pitfalls (at least with my
> special-display configuration):
>
> E.g. when the question "Remove the backup file" from
> `message-kill-buffer' (after `C-c C-k') appears, the frame has already
> been deleted.
[...]
> Thus the message appears in some other (non-focused) frame.  Maybe
> someone has a solution for this problem.

The following patch (already installed in No Gnus) should fix this:

--8<---------------cut here---------------start------------->8---
--- message.el  08 Oct 2004 17:33:21 +0200      7.52
+++ message.el  12 Oct 2004 17:31:14 +0200      
@@ -3417,8 +3417,15 @@
                          (file-exists-p auto-save-file-name))
                     (and file-name
                          (file-exists-p file-name)))
-              (yes-or-no-p (format "Remove the backup file%s? "
-                                   (if modified " too" ""))))
+                (progn
+                  ;; If the message buffer has lived in a dedicated window,
+                  ;; `kill-buffer' has killed the frame.  Thus the
+                  ;; `yes-or-no-p' may show up in a lowered frame.  Make sure
+                  ;; that the user can see the question by raising the
+                  ;; current frame:
+                  (raise-frame)
+                  (yes-or-no-p (format "Remove the backup file%s? "
+                                       (if modified " too" "")))))
        (ignore-errors
          (delete-file auto-save-file-name))
        (let ((message-draft-article draft-article))
--8<---------------cut here---------------end--------------->8---

Bye, Reiner.

[1]
,----[ <v9d5zpth1z.fsf@marauder.physik.uni-ulm.de">news:v9d5zpth1z.fsf@marauder.physik.uni-ulm.de> ]
| On Sun, Oct 10 2004, Simon Kellett wrote:
| 
| > I would like to do my replies/followups/new posts in a new frame 
| 
| In Emacs, you can modify `special-display-regexps' and
| `special-display-buffer-names' (I don't about XEmacs).  You may find
| <URL:http://theotp1.physik.uni-ulm.de/~ste/comp/emacs/rs-special-display.el>
| useful to find out which buffer names to add.
| 
| A different possibility is `gnus-buffer-configuration'.  Katsumi
| Yamaoka has posted his setup for new frames some time ago on ding, see
| <URL:http://theotp1.physik.uni-ulm.de/~ste/comp/emacs/gnus/rs-gnus-win.el>.
| IIRC he has posted an update later.  I don't have the Message-Id for
| it and I didn't include it in `rs-gnus-win.el' because I switched to
| the special display solution.
`----
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]