-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve Gnus support and update for Emacs 27.1 #71
Conversation
When `ace-link-gnus' is called from the summary buffer, use the currently opened article buffer instead of switching to the selected article (which might be different). Also, do not jump to the next button, as this might lead to unintended scrolling of the article buffer.
(while (progn (widget-forward 1) | ||
(> (point) pt)) | ||
(if (<= 27 emacs-major-version) | ||
(mapcar #'cdr (ace-link--woman-collect)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe the "collect links in a buffer using button.el" functionality could be extracted and given a more general name.
(declare-function widget-button-press "wid-edit") | ||
(cond ((< emacs-major-version 27) | ||
(widget-button-press (point))) | ||
((and (eq mm-text-html-renderer 'shr) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could possibly already be required for Emacs 26.3 to open links in portions of the buffer rendered by shr.
Friendly ping @abo-abo, can you have a look at this change? :) |
Merged. Thanks! |
This should fix #56. In addition I added some ergonomic improvements:
ace-link
from the summary bufferforward-button
was called, which would scroll the window if the next button after point was out of view)@poulpoulsen Maybe you are interested in giving this a try.
N.B. The last two commits have only been tested with Emacs 27.1, so any feedback from someone still on Emacs 26.3 is appreciated.