GNU bug report logs -
#64311
[PATCH] Fix shell-dirtrack-mode showing up as enabled in unrelated buffers
Previous Next
Reported by: Vladimir Sedach <vas <at> oneofus.la>
Date: Tue, 27 Jun 2023 06:30:02 UTC
Severity: normal
Tags: patch
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> Cc: 64311 <at> debbugs.gnu.org
> Date: Mon, 03 Jul 2023 23:32:49 -0400
> From: Stefan Monnier via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>
> > diff --git a/lisp/shell.el b/lisp/shell.el
> > index b74442f1961..39e12577280 100644
> > --- a/lisp/shell.el
> > +++ b/lisp/shell.el
> > @@ -346,10 +346,10 @@ shell-dirstack
> > "List of directories saved by pushd in this buffer's shell.
> > Thus, this does not include the shell's current directory.")
> >
> > -(defvaralias 'shell-dirtrack-mode 'shell-dirtrackp)
> > -
> > -(defvar shell-dirtrackp t
> > - "Non-nil in a shell buffer means directory tracking is enabled.")
> > +(define-obsolete-variable-alias 'shell-dirtrackp 'shell-dirtrack-mode
> > + "???"
> > + "Non-nil in a shell buffer means directory tracking is enabled.
> > +Use the minor mode variable `shell-dirtrack-mode' instead.")
>
> Indeed `shell-dirtrackp` should not be defvar'd.
> The above looks good to me.
It doesn't look good to me, for the reasons I explained in the
discussion. Do you see anything wrong with the alternative patch I
proposed instead?
This bug report was last modified 1 year and 320 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.