unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: rpluim@gmail.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org
Subject: Re: xref in a narrowed buffer?
Date: Wed, 04 Mar 2020 18:38:52 +0200	[thread overview]
Message-ID: <83h7z4vzvn.fsf@gnu.org> (raw)
In-Reply-To: <f7c7f7b9-04fc-7842-0c20-37b612ce6425@yandex.ru> (message from Dmitry Gutov on Wed, 4 Mar 2020 18:04:50 +0200)

> From: Dmitry Gutov <dgutov@yandex.ru>
> Date: Wed, 4 Mar 2020 18:04:50 +0200
> Cc: Robert Pluim <rpluim@gmail.com>, emacs-devel@gnu.org
> 
> > It could also signal a clean error telling the user the destination is
> > outside of the narrowed region, so the user can decide whether to widen
> > or not (and is aware of the fact that the source of the problem is the
> > narrowing).
> 
> True. It's also an option.
> 
> I don't use narrowing, and don't understand its intended behavior, so 
> someone else should make the choice on what is the best approach here.

Signaling an error sounds TRT to me.  When you narrow a buffer, Emacs
should behave as if the parts outside the restriction didn't exist.



  reply	other threads:[~2020-03-04 16:38 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-04 14:39 xref in a narrowed buffer? Robert Pluim
2020-03-04 15:20 ` Dmitry Gutov
2020-03-04 15:46   ` Stefan Monnier
2020-03-04 16:04     ` Dmitry Gutov
2020-03-04 16:38       ` Eli Zaretskii [this message]
2020-03-04 16:08   ` Robert Pluim
2020-03-04 18:18     ` Dmitry Gutov

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=83h7z4vzvn.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=dgutov@yandex.ru \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=rpluim@gmail.com \
    /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).