* Re: master b573aaab76b 2/2: ; Make utility functions for getting the Eshell non-special regexps
[not found] ` <20241021031557.6BAE930F2F1@vcs3.savannah.gnu.org>
@ 2024-10-21 8:00 ` Andrea Corallo
2024-10-21 21:26 ` Jim Porter
0 siblings, 1 reply; 3+ messages in thread
From: Andrea Corallo @ 2024-10-21 8:00 UTC (permalink / raw)
To: emacs-devel; +Cc: Jim Porter
Jim Porter <jporterbugs@gmail.com> writes:
> branch: master
> commit b573aaab76b55ec276b9190570b3ca3ae72cb416
> Author: Jim Porter <jporterbugs@gmail.com>
> Commit: Jim Porter <jporterbugs@gmail.com>
>
> ; Make utility functions for getting the Eshell non-special regexps
>
> * lisp/eshell/esh-arg.el (eshell-inside-quote-regexp)
> (eshell-outside-quote-regexp): Rename to...
> (eshell--non-special-inside-quote-regexp)
> (eshell--non-special-outside-quote-regexp): ... these, and add
> defsubsts.
> (eshell-arg-initialize): Don't initialize regexp variables.
> (eshell-parse-non-special): ... use them.
>
> * lisp/eshell/em-glob.el (eshell-glob-chars-regexp): Use 'rx-to-string'.
Hi Jim,
If I'm not wrong this commit once merged into master is causing the
following warnings:
eshell/em-script.el:75:9: Warning: Unused lexical variable
‘eshell-outside-quote-regexp’
eshell/em-script.el:74:9: Warning: Unused lexical variable
‘eshell-inside-quote-regexp’
Would you ming having a look?
Thanks!
Andrea
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: master b573aaab76b 2/2: ; Make utility functions for getting the Eshell non-special regexps
2024-10-21 8:00 ` master b573aaab76b 2/2: ; Make utility functions for getting the Eshell non-special regexps Andrea Corallo
@ 2024-10-21 21:26 ` Jim Porter
2024-10-22 16:31 ` Andrea Corallo
0 siblings, 1 reply; 3+ messages in thread
From: Jim Porter @ 2024-10-21 21:26 UTC (permalink / raw)
To: Andrea Corallo, emacs-devel
On 10/21/2024 1:00 AM, Andrea Corallo wrote:
> If I'm not wrong this commit once merged into master is causing the
> following warnings:
>
> eshell/em-script.el:75:9: Warning: Unused lexical variable
> ‘eshell-outside-quote-regexp’
>
> eshell/em-script.el:74:9: Warning: Unused lexical variable
> ‘eshell-inside-quote-regexp’
>
> Would you ming having a look?
Thanks for letting me know. It turns out there was an actual bug here
that my previous change helped reveal: the previous code was trying to
work around the fact that the Eshell startup scripts were running before
the Eshell session was fully-initialized, which is iffy at best.
I've now changed this so that there's a new
'eshell-after-initialize-hook' that em-script.el can use. That's more
correct and lets us avoid the let-binding that caused this warning.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: master b573aaab76b 2/2: ; Make utility functions for getting the Eshell non-special regexps
2024-10-21 21:26 ` Jim Porter
@ 2024-10-22 16:31 ` Andrea Corallo
0 siblings, 0 replies; 3+ messages in thread
From: Andrea Corallo @ 2024-10-22 16:31 UTC (permalink / raw)
To: Jim Porter; +Cc: emacs-devel
Jim Porter <jporterbugs@gmail.com> writes:
> On 10/21/2024 1:00 AM, Andrea Corallo wrote:
>> If I'm not wrong this commit once merged into master is causing the
>> following warnings:
>> eshell/em-script.el:75:9: Warning: Unused lexical variable
>> ‘eshell-outside-quote-regexp’
>> eshell/em-script.el:74:9: Warning: Unused lexical variable
>> ‘eshell-inside-quote-regexp’
>> Would you ming having a look?
>
> Thanks for letting me know. It turns out there was an actual bug here
> that my previous change helped reveal: the previous code was trying to
> work around the fact that the Eshell startup scripts were running
> before the Eshell session was fully-initialized, which is iffy at
> best.
>
> I've now changed this so that there's a new
> 'eshell-after-initialize-hook' that em-script.el can use. That's more
> correct and lets us avoid the let-binding that caused this warning.
Thanks
Andrea
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-10-22 16:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <172948055644.3805440.7086621144248259008@vcs3.savannah.gnu.org>
[not found] ` <20241021031557.6BAE930F2F1@vcs3.savannah.gnu.org>
2024-10-21 8:00 ` master b573aaab76b 2/2: ; Make utility functions for getting the Eshell non-special regexps Andrea Corallo
2024-10-21 21:26 ` Jim Porter
2024-10-22 16:31 ` Andrea Corallo
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.