From: Noam Postavsky Date: Sat, 19 Aug 2017 11:36:05 +0000 (-0400) Subject: Stop printing '4' in .elc files after 'define-symbol-prop' calls X-Git-Tag: emacs-26.0.90~401 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2326a3ab13d49f40115e9093bcf71d7d68c11772;p=emacs.git Stop printing '4' in .elc files after 'define-symbol-prop' calls * lisp/emacs-lisp/bytecomp.el (byte-compile-define-symbol-prop): Return nil in case we have compiled the form, to prevent a redundant constant from getting added to the compiled output. --- diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index 9e14c91c953..d769a155aa0 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el @@ -4740,7 +4740,8 @@ binding slots have been popped." . (,prop ,val ,@(alist-get fun overriding-plist-environment))) overriding-plist-environment) (byte-compile-push-constant val) - (byte-compile-out 'byte-call 3))) + (byte-compile-out 'byte-call 3) + nil)) (_ (byte-compile-keep-pending form))))