unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Antoine Kalmbach <ane@iki.fi>
Cc: eliz@gnu.org, 55847@debbugs.gnu.org
Subject: bug#55847: 29.0.50; line-number-at-pos ignores absolute parameter when checking position range
Date: Thu, 09 Jun 2022 14:43:02 +0200	[thread overview]
Message-ID: <87v8ta6m95.fsf@gnus.org> (raw)
In-Reply-To: <lypmjiytha.fsf@iki.fi> (Antoine Kalmbach's message of "Thu, 09 Jun 2022 14:19:29 +0300")

Antoine Kalmbach <ane@iki.fi> writes:

> Right, so as long as pos is within the narrowed region, but the line
> number is counted from the absolute beginning of the buffer.  Well,
> I would understand "disregarding narrowing" as doing an implicit
> (save-restriction (widen) ...) anyway. 

It's slightly ambiguous.

I've now changed the function to work in Emacs 29 as in earlier versions.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





      reply	other threads:[~2022-06-09 12:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-08 11:44 bug#55847: 29.0.50; line-number-at-pos ignores absolute parameter when checking position range Antoine Kalmbach
2022-06-08 12:52 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-08 14:02 ` Eli Zaretskii
2022-06-09  7:44   ` Antoine Kalmbach
2022-06-09 10:46     ` Lars Ingebrigtsen
2022-06-09 11:19       ` Antoine Kalmbach
2022-06-09 12:43         ` Lars Ingebrigtsen [this message]

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=87v8ta6m95.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=55847@debbugs.gnu.org \
    --cc=ane@iki.fi \
    --cc=eliz@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).