all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: master f4af1137e6: Bind print-symbols-bare to t in byte-compile-from-buffer
       [not found] ` <20220123164248.CC706C0DA30@vcs2.savannah.gnu.org>
@ 2022-01-23 16:47   ` Stefan Monnier
  2022-01-24 11:50     ` Alan Mackenzie
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2022-01-23 16:47 UTC (permalink / raw)
  To: Alan Mackenzie; +Cc: emacs-devel

> -  (let ((print-symbols-bare t))
> +  (let ((print-symbols-bare t))         ; Possibly redundant binding.
>      (macroexpand `(declare-function ,fn ,file ,@args))))

Why do we need this binding here?
This is just a `macroexpand`, so it's not expected to print anything
at all.  What kind of prints are supposed to be affected, and if so, why
should it be solved by a let-binding here rather than elsewhere, such
as maybe in `macroexpand`?


        Stefan




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: master f4af1137e6: Bind print-symbols-bare to t in byte-compile-from-buffer
  2022-01-23 16:47   ` master f4af1137e6: Bind print-symbols-bare to t in byte-compile-from-buffer Stefan Monnier
@ 2022-01-24 11:50     ` Alan Mackenzie
  2022-01-24 13:07       ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Mackenzie @ 2022-01-24 11:50 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: emacs-devel

Hello, Stefan

On Sun, Jan 23, 2022 at 11:47:34 -0500, Stefan Monnier wrote:
> > -  (let ((print-symbols-bare t))
> > +  (let ((print-symbols-bare t))         ; Possibly redundant binding.
> >      (macroexpand `(declare-function ,fn ,file ,@args))))

> Why do we need this binding here?
> This is just a `macroexpand`, so it's not expected to print anything
> at all.  What kind of prints are supposed to be affected, and if so, why
> should it be solved by a let-binding here rather than elsewhere, such
> as maybe in `macroexpand`?

I don't think we do need that binding there.  The main point of my patch
was to bind the variable at a high level (in byte-compile-from-file),
and I don't think we need it anywhere else (execept compile-defun).

But I didn't have the courage to strip it out, yesterday.  Maybe I
should have done.

>         Stefan

-- 
Alan Mackenzie (Nuremberg, Germany).



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: master f4af1137e6: Bind print-symbols-bare to t in byte-compile-from-buffer
  2022-01-24 11:50     ` Alan Mackenzie
@ 2022-01-24 13:07       ` Stefan Monnier
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2022-01-24 13:07 UTC (permalink / raw)
  To: Alan Mackenzie; +Cc: emacs-devel

Alan Mackenzie [2022-01-24 11:50:36] wrote:
> Hello, Stefan
> On Sun, Jan 23, 2022 at 11:47:34 -0500, Stefan Monnier wrote:
>> > -  (let ((print-symbols-bare t))
>> > +  (let ((print-symbols-bare t))         ; Possibly redundant binding.
>> >      (macroexpand `(declare-function ,fn ,file ,@args))))
>
>> Why do we need this binding here?
>> This is just a `macroexpand`, so it's not expected to print anything
>> at all.  What kind of prints are supposed to be affected, and if so, why
>> should it be solved by a let-binding here rather than elsewhere, such
>> as maybe in `macroexpand`?
>
> I don't think we do need that binding there.  The main point of my patch
> was to bind the variable at a high level (in byte-compile-from-file),
> and I don't think we need it anywhere else (execept compile-defun).

Just to clarify:

My question was not "Is there a path to here that doesn't already bind
that var to t?" (to which you already reply in the comment), but "(why) do
we need to have that variable be t during the execution of that code?".


        Stefan




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-01-24 13:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <164295616740.28199.17365289068509535871@vcs2.savannah.gnu.org>
     [not found] ` <20220123164248.CC706C0DA30@vcs2.savannah.gnu.org>
2022-01-23 16:47   ` master f4af1137e6: Bind print-symbols-bare to t in byte-compile-from-buffer Stefan Monnier
2022-01-24 11:50     ` Alan Mackenzie
2022-01-24 13:07       ` Stefan Monnier

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.