From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: stephen_leake@stephe-leake.org Newsgroups: gmane.emacs.bugs Subject: bug#21237: 25.0.50; defconst vs dump Date: Tue, 11 Aug 2015 15:07:21 -0500 Message-ID: <86oaidy4g6.fsf@stephe-leake.org> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1439323765 17892 80.91.229.3 (11 Aug 2015 20:09:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Aug 2015 20:09:25 +0000 (UTC) To: 21237@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 11 22:09:12 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZPFrD-0000jK-N0 for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Aug 2015 22:09:11 +0200 Original-Received: from localhost ([::1]:35755 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPFrC-00083S-T3 for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Aug 2015 16:09:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38313) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPFr8-00082A-Ej for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2015 16:09:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZPFr5-0008MX-4v for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2015 16:09:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33044) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPFr5-0008ML-1W for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2015 16:09:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZPFr4-0005GB-Nb for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2015 16:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: stephen_leake@stephe-leake.org Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Aug 2015 20:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21237 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.143932368320150 (code B ref -1); Tue, 11 Aug 2015 20:09:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Aug 2015 20:08:03 +0000 Original-Received: from localhost ([127.0.0.1]:53487 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZPFq6-0005Eu-IS for submit@debbugs.gnu.org; Tue, 11 Aug 2015 16:08:03 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56273) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZPFq3-0005EV-8D for submit@debbugs.gnu.org; Tue, 11 Aug 2015 16:08:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZPFq1-0007Tp-FA for submit@debbugs.gnu.org; Tue, 11 Aug 2015 16:07:58 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:38454) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPFq1-0007Tj-Cl for submit@debbugs.gnu.org; Tue, 11 Aug 2015 16:07:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38037) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPFq0-0007Wl-2Y for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2015 16:07:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZPFpv-0007Qm-36 for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2015 16:07:56 -0400 Original-Received: from gproxy10-pub.mail.unifiedlayer.com ([69.89.20.226]:49996) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1ZPFpu-0007P0-SC for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2015 16:07:51 -0400 Original-Received: (qmail 18234 invoked by uid 0); 11 Aug 2015 20:07:42 -0000 Original-Received: from unknown (HELO cmgw2) (10.0.90.83) by gproxy10.mail.unifiedlayer.com with SMTP; 11 Aug 2015 20:07:42 -0000 Original-Received: from host114.hostmonster.com ([74.220.207.114]) by cmgw2 with id 3Y7W1r01c2UdiVW01Y7Zxx; Tue, 11 Aug 2015 14:07:40 -0600 X-Authority-Analysis: v=2.1 cv=O9qq4nNW c=1 sm=1 tr=0 a=CQdxDb2CKd3SRg4I0/XZPQ==:117 a=CQdxDb2CKd3SRg4I0/XZPQ==:17 a=DsvgjBjRAAAA:8 a=f5113yIGAAAA:8 a=9i_RQKNPAAAA:8 a=hEr_IkYJT6EA:10 a=x_XPkuGwIRMA:10 a=uRRa74qj2VoA:10 a=6Jw-STCzYtA0awVyL54A:9 a=azqV9JjXgeJs2dXk:21 a=OX3gG150Roi91iza:21 Original-Received: from [76.218.37.33] (port=62817 helo=TAKVER2) by host114.hostmonster.com with esmtpa (Exim 4.84) (envelope-from ) id 1ZPFpc-0007xa-18 for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2015 14:07:32 -0600 X-Identified-User: {2442:host114.hostmonster.com:stephele:stephe-leake.org} {sentby:smtp auth 76.218.37.33 authed with stephen_leake@stephe-leake.org} X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:105419 Archived-At: Given these two definitions: (defconst format-1 (let ((str "(%s %s)")) (put-text-property 1 3 'face 'font-lock-keyword-face str) (put-text-property 4 6 'face 'font-lock-function-name-face str) str)) (defvar format-2 (let ((str "(%s %s %s)")) (put-text-property 1 3 'face 'font-lock-keyword-face str) (put-text-property 4 6 'face 'font-lock-function-name-face str) str)) If I byte-compile a file containing these, and later load that byte-compiled file, the text properties are present on both format-1 and format-2. However, if the file is dumped for preloading into emacs, then the text properties are not present on format-1; the defconst apparently causes them to disappear. If this is desired/intended behavior, it should be documented in the defconst doc string, and there should be a warning during the dump process. In GNU Emacs 25.0.50.10 (x86_64-w64-mingw32) of 2015-08-11 on TAKVER2 Repository revision: 85f7e5115f9f409126d355997e8103ea5126ada2 Windowing system distributor `Microsoft Corp.', version 6.3.9600 Configured using: `configure --prefix=/mingw64 PKG_CONFIG_PATH=/mingw64/lib/pkgconfig:/mingw64/share/pkgconfig' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: cp1252 Major mode: Emacs-Lisp Minor modes in effect: diff-auto-refine-mode: t global-ede-mode: t ede-minor-mode: t other-frame-window-mode: t display-time-mode: t delete-selection-mode: t icomplete-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Error: (file-error "Setting ACL" "Operation not permitted" "c:/home/stephe/projects.text~") Wrote c:/home/stephe/projects.text Compiling c:/home/stephe/Elisp_Work/defconst_vs_bytecompile.el...done Wrote c:/home/stephe/Elisp_Work/defconst_vs_bytecompile.elc You can run the command `byte-compile-file' with M-x by-c RET Wrote c:/home/stephe/Elisp_Work/defconst_vs_bytecompile.elc Saving file c:/home/stephe/Misc/emacs_notes.text... Wrote c:/home/stephe/Misc/emacs_notes.text Mark set [3 times] Auto-saving... Load-path shadows: c:/home/stephe/.emacs.d/elpa/ada-ref-man-2012.0/ada-ref-man hides /Projects/org.emacs.ada-mode/ada-ref-man /Projects/org.emacs.ada-mode/ada-xref hides c:/Projects/emacs/master/lisp/progmodes/ada-xref /Projects/org.emacs.ada-mode/ada-stmt hides c:/Projects/emacs/master/lisp/progmodes/ada-stmt /Projects/org.emacs.ada-mode/ada-prj hides c:/Projects/emacs/master/lisp/progmodes/ada-prj /Projects/org.emacs.ada-mode/ada-mode hides c:/Projects/emacs/master/lisp/progmodes/ada-mode Features: (shadow sort mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils copyright gpr-query xref-ada ada-skel ada-skeletons skeleton ada-compiler ada-gnat-compile ada-xref-tool ada-gnat-xref gnat-core ada-indent-engine ada-wisi ada-indent-user-options ada-grammar-wy wisi-compile wisi wisi-parse wisi-compat-24.2 semantic/wisent semantic/wisent/wisent ada-fix-error ada-build ada-mode find-file ada-mode-compat-24.2 align cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs vc vc-dispatcher vc-git diff-mode project-settings ede/generic semantic/db ede/shell ede/config eieio-opt find-func ede/emacs ede/speedbar ede/files ede ede/detect ede/base ede/auto ede/source eieio-base eieio-speedbar speedbar sb-image ezimage dframe eieio-custom project-elisp xref-patches semantic/symref semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local cedet project-patches etags xgit-core bzr-core xmtn-minimal dvc-autoloads dvc-unified dvc-core dvc-buffers dvc-ui dvc-register dvc-utils ewoc dvc-emacs ffap thingatpt url-parse auth-source gnus-util mm-util help-fns mail-prsvr password-cache url-vars dvc-defs dvc-site other-frame-window time delsel cus-start cus-load color-theme edmacro kmacro wid-edit cl noutline outline easy-mmode xref cl-seq project eieio byte-opt bytecomp byte-compile cl-extra help-mode seq cconv eieio-core whitespace dired-x dired-aux dired compile comint ansi-color ring cl-macs gv cl-loaddefs pcase cl-lib icomplete finder-inf bbdb-autoloads info package easymenu epg-config time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote w32notify w32 multi-tty make-network-process emacs) Memory information: ((conses 16 372334 22137) (symbols 56 32965 0) (miscs 48 87 352) (strings 32 61954 12167) (string-bytes 1 1753908) (vectors 16 33702) (vector-slots 8 1346382 183617) (floats 8 715 202) (intervals 56 991 85) (buffers 976 19))