unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Emacs 26.0.50 (Git@head) Nested defsubst fails
@ 2017-02-24  1:32 raman
  2017-02-24  4:12 ` Stefan Monnier
  0 siblings, 1 reply; 5+ messages in thread
From: raman @ 2017-02-24  1:32 UTC (permalink / raw)
  To: emacs-devel

I tracked down the breakage to the following use case:

If you have two functions defined via defsubst -- calling the  first
function from within the second causes a byte compile error. Appears to
be independent of lexical scoping. If interested I can email out a file
showing the breakage. 


Also, looking at define-inline and the comments in that file, I see that
we dont appear to have a prefered/recommended solution to  writing
functions that should be in-lined -- might be worth getting that fixed.

According to that file, defsubst and cl-defsubst appear to have
different issues with each --- though defsubst at least fo rmy use-case
has worked well for 20+ years.

emacspeak has a lot of defsubst forms that go back a long time, and I
tried a patch where I changed all defsubst forms to defun --- that
inexplicably led to build failures  that I could not explain ---
essentially the build system started loading all of emacspeak to build
each individual file.
-- 



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

end of thread, other threads:[~2017-02-24 18:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-24  1:32 Emacs 26.0.50 (Git@head) Nested defsubst fails raman
2017-02-24  4:12 ` Stefan Monnier
2017-02-24 16:20   ` raman
2017-02-24 17:36     ` T.V Raman
2017-02-24 18:24       ` Stefan Monnier

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).