unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: Glenn Morris <rgm@gnu.org>, 22299@debbugs.gnu.org
Subject: bug#22299: Obsolete selective-display
Date: Thu, 21 Jan 2021 12:14:46 -0500	[thread overview]
Message-ID: <jwv4kjaz06z.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <877do66xft.fsf_-_@gnus.org> (Lars Ingebrigtsen's message of "Thu, 21 Jan 2021 17:56:22 +0100")

>> Perhaps this is done as of 2f50a99 and similar.
> The `selective-display' variable isn't marked as deprecated, though, and
> is used throughout Emacs...

I don't think it's *used* throughout.  AFAIK it's *obeyed* at many
places, in case someone still uses it (it's obsolete, not removed).
If you spot an actual use, please report it as a bug.

> should it be marked as such?  And the usages either removed (from the
> callers) or warnings suppressed (in simple.el etc).

The problem is that the var has 2 uses:
- one is the obsolete value `t` whereby \r.* is hidden
- the other is when it's set to an integer N whereby it hides lines with
  a deeper indentation than N.

The second one is a UI functionality and it's sufficiently "not terribly
useful" that nobody bothered to write a replacement for it using
overlays (instead, all the possible replacements provide a more tailored
functionality).


        Stefan






  reply	other threads:[~2021-01-21 17:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <7j8u467a11.fsf@fencepost.gnu.org>
2019-03-18 16:09 ` bug#22299: Obsolete selective-display Glenn Morris
2021-01-21 16:56   ` Lars Ingebrigtsen
2021-01-21 17:14     ` Stefan Monnier [this message]
2021-01-22 17:22       ` Lars Ingebrigtsen
2021-01-22 17:55         ` Stefan Monnier
2021-01-21 19:42     ` Eli Zaretskii

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=jwv4kjaz06z.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=22299@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=rgm@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).