From: Daimrod <daimrod@gmail.com>
To: martin rudalics <rudalics@gmx.at>
Cc: 17769@debbugs.gnu.org
Subject: bug#17769: 24.4.50; [PATCH] rcirc-omit-mode: `recenter'ing a window that does not display current-buffer.
Date: Sat, 14 Jun 2014 01:08:52 +0900 [thread overview]
Message-ID: <87d2ecbxm3.fsf@tanger.home> (raw)
In-Reply-To: <539B0956.3060003@gmx.at> (martin rudalics's message of "Fri, 13 Jun 2014 16:23:18 +0200")
[-- Attachment #1: Type: text/plain, Size: 507 bytes --]
martin rudalics <rudalics@gmx.at> writes:
>>> Strictly spoken this should read "But if it is displayed in the selected
>>> window, recenter that window."
>>
>> No, because in that case it would already have been done by a normal
>> call to recenter.
>
> Unless the selected window displayed another buffer. Then you probably
> mean something like
>
> (dolist (window (get-buffer-window-list buffer))
> (with-selected-window window (recenter)))
I see, thanks for inputs.
Here is an updated patch.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-lisp-net-rcirc.el-rcirc-omit-mode-recenter-the-corre.patch --]
[-- Type: text/x-diff, Size: 1066 bytes --]
From c9fb7786be4fd929ad81861b3ada47d8d2f385e9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gr=C3=A9goire=20Jadi?= <gregoire.jadi@gmail.com>
Date: Sat, 14 Jun 2014 00:57:06 +0900
Subject: [PATCH] * lisp/net/rcirc.el (rcirc-omit-mode): `recenter' the correct
windows.
---
lisp/net/rcirc.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el
index 41cc002..a0e72d1 100644
--- a/lisp/net/rcirc.el
+++ b/lisp/net/rcirc.el
@@ -1903,7 +1903,9 @@ Uninteresting lines are those whose responses are listed in
(message "Rcirc-Omit mode enabled"))
(remove-from-invisibility-spec '(rcirc-omit . nil))
(message "Rcirc-Omit mode disabled"))
- (recenter (when (> (point) rcirc-prompt-start-marker) -1)))
+ (dolist (window (get-buffer-window-list (current-buffer)))
+ (with-selected-window window
+ (recenter (when (> (point) rcirc-prompt-start-marker) -1)))))
(defun rcirc-switch-to-server-buffer ()
"Switch to the server buffer associated with current channel buffer."
--
1.8.0.2722.gc0242e5
[-- Attachment #3: Type: text/plain, Size: 17 bytes --]
--
Daimrod/Greg
next prev parent reply other threads:[~2014-06-13 16:08 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-13 6:59 bug#17769: 24.4.50; [PATCH] rcirc-omit-mode: `recenter'ing a window that does not display current-buffer Daimrod
2014-06-13 8:29 ` Eli Zaretskii
2014-06-13 9:14 ` Daimrod
2014-06-13 9:38 ` Eli Zaretskii
2014-06-13 9:54 ` Daimrod
2014-06-13 12:21 ` Eli Zaretskii
2014-06-13 12:51 ` martin rudalics
2014-06-13 13:30 ` Eli Zaretskii
2014-06-13 14:23 ` martin rudalics
2014-06-13 16:08 ` Daimrod [this message]
2014-06-19 11:18 ` Leo Liu
2014-06-13 12:51 ` Stefan Monnier
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=87d2ecbxm3.fsf@tanger.home \
--to=daimrod@gmail.com \
--cc=17769@debbugs.gnu.org \
--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 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).