unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* customized mode-line face interfers with gnus keybinding
@ 2011-02-17 19:48 Darren Hoo
  2011-02-19 18:13 ` Darren Hoo
  0 siblings, 1 reply; 2+ messages in thread
From: Darren Hoo @ 2011-02-17 19:48 UTC (permalink / raw)
  To: emacs-devel

customize face mode-line as following

(custom-set-faces
 '(mode-line ((t (:box (:line-width 1 :style released-button))))))

Then in Gnus's Summary buffer hitting RET will scroll down the 
article one page as SPC does instead of one line down, while M-RET
is ok(one line scrollup).

I experience this wierd behavior when using gnus with color-theme-arjen
and track down the problem to the customized mode-line face above.

This is always reproducable both with emacs23 and emacs24 trunk.

--
Darren




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: customized mode-line face interfers with gnus keybinding
  2011-02-17 19:48 customized mode-line face interfers with gnus keybinding Darren Hoo
@ 2011-02-19 18:13 ` Darren Hoo
  0 siblings, 0 replies; 2+ messages in thread
From: Darren Hoo @ 2011-02-19 18:13 UTC (permalink / raw)
  To: emacs-devel


> customize face mode-line as following
>
> (custom-set-faces
>  '(mode-line ((t (:box (:line-width 1 :style released-button))))))
>
> Then in Gnus's Summary buffer hitting RET will scroll down the 
> article one page as SPC does instead of one line down, while M-RET
> is ok(one line scrollup).
>

I have reported the bug to bugs@gnus.org by M-x gnus-bug, but I am not
sure where it goes. 

Anyway, a patch to fix this follows, Hope gnus developers will look 
into this minor problem.

temporalily disable auto vscroll when doing a scroll-up

diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index 533b010..19eee78 100644
--- a/lisp/gnus/gnus-art.el
+++ b/lisp/gnus/gnus-art.el
@@ -6322,7 +6322,8 @@ specifies."
 
 (defun gnus-article-next-page-1 (lines)
   (condition-case ()
-      (let ((scroll-in-place nil))
+      (let ((scroll-in-place nil)
+           (auto-window-vscroll nil))
        (scroll-up lines))
     (end-of-buffer
      ;; Long lines may cause an end-of-buffer error.






^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-02-19 18:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-17 19:48 customized mode-line face interfers with gnus keybinding Darren Hoo
2011-02-19 18:13 ` Darren Hoo

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).