unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* emacs-27 breaks null function
@ 2020-04-06 17:30 Nelson H. F. Beebe
  2020-04-06 17:46 ` Andreas Schwab
  2020-04-06 18:12 ` Stefan Monnier
  0 siblings, 2 replies; 7+ messages in thread
From: Nelson H. F. Beebe @ 2020-04-06 17:30 UTC (permalink / raw)
  To: emacs-devel; +Cc: beebe

Some 34 years ago, I wrote a function with the code snippet

	(if (null executing-macro) ...)

and that function has been in daily use through emacs-26.  However,
with emacs-27, I get an error with this traceback

	Symbol's value as variable is void: executing-macro

The Emacs Lisp function null is defined in C in the file data.c,
and its body 

{
  if (NILP (object))
    return Qt;
  return Qnil;
}

appears not to have changed between 2009 and 2020.  I find nothing
in the ChangeLog.* files that would explain the behavior change
in emacs-27.

Nor can I readily spot some other function that could be used
to test for the prior definition of a variable.

Comments and advice are welcome!

-------------------------------------------------------------------------------
- Nelson H. F. Beebe                    Tel: +1 801 581 5254                  -
- University of Utah                    FAX: +1 801 581 4148                  -
- Department of Mathematics, 110 LCB    Internet e-mail: beebe@math.utah.edu  -
- 155 S 1400 E RM 233                       beebe@acm.org  beebe@computer.org -
- Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe/ -
-------------------------------------------------------------------------------



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

end of thread, other threads:[~2020-04-06 18:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-06 17:30 emacs-27 breaks null function Nelson H. F. Beebe
2020-04-06 17:46 ` Andreas Schwab
2020-04-06 18:37   ` Nelson H. F. Beebe
2020-04-06 18:51     ` Joost Kremers
2020-04-06 18:52     ` Andreas Schwab
2020-04-06 18:53     ` Dmitry Gutov
2020-04-06 18:12 ` 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).