unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Roland Winkler" <winkler@gnu.org>
To: 44503@debbugs.gnu.org
Subject: bug#44503: 27.1; image-scroll-up and image-scroll-down
Date: Sat, 7 Nov 2020 09:16:22 -0600	[thread overview]
Message-ID: <47686.12087.468202.24486@gargle.gargle.HOWL> (raw)


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






             reply	other threads:[~2020-11-07 15:16 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-07 15:16 Roland Winkler [this message]
2020-11-07 15:26 ` bug#44503: 27.1; image-scroll-up and image-scroll-down 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

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=47686.12087.468202.24486@gargle.gargle.HOWL \
    --to=winkler@gnu.org \
    --cc=44503@debbugs.gnu.org \
    /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).