unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#44503: 27.1; image-scroll-up and image-scroll-down
@ 2020-11-07 15:16 Roland Winkler
  2020-11-07 15:26 ` Eli Zaretskii
  0 siblings, 1 reply; 14+ messages in thread
From: Roland Winkler @ 2020-11-07 15:16 UTC (permalink / raw)
  To: 44503


My understanding of the doc strings of image-scroll-up and
image-scroll-down is that the argument N should be a number, nil, or
`-'."  However, these commands use (interactive "P") with
prefix-numeric-value inside the body of these commands.  I suggest
to document this behavior.  (I guess it is not very clean to use
prefix-numeric-value inside the body of these commands.  But
changing this behavior likely will break existing code that uses
these commands.)

I realized this when I looked at doc-view's scrolling commands
doc-view-scroll-up-or-next-page and
doc-view-scroll-down-or-previous-page
that likewise use (interactive "P"), contrary, to what the
docstrings of these commands say, and I was surprised that this
gives a meaningful behavior.  So these docstrings probably should be
updated, too.


In GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
 of 2020-08-31 built on regnitz
Windowing system distributor 'The X.Org Foundation', version 11.0.11804000
System Description: Ubuntu 16.04.7 LTS






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

end of thread, other threads:[~2022-05-07 13:06 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-07 15:16 bug#44503: 27.1; image-scroll-up and image-scroll-down Roland Winkler
2020-11-07 15:26 ` Eli Zaretskii
2020-11-09 20:03   ` Roland Winkler
2021-06-06 10:37     ` Lars Ingebrigtsen
2021-06-08 15:34       ` Roland Winkler
2021-06-09  9:56         ` Lars Ingebrigtsen
2021-06-09 11:51           ` Eli Zaretskii
2021-06-10  8:19             ` Lars Ingebrigtsen
2021-06-10 12:52               ` Lars Ingebrigtsen
2021-06-10 14:24                 ` Eli Zaretskii
2021-06-10 15:09                   ` Lars Ingebrigtsen
2021-06-10 15:33                     ` Eli Zaretskii
2021-06-12 12:11                       ` Lars Ingebrigtsen
2022-05-07 13:06             ` Lars Ingebrigtsen

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