From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#66742: 30.0.50; transient-mark-mode is not enabled after re-dumping Emacs Date: Thu, 26 Oct 2023 12:44:37 +0000 Message-ID: <87r0lhblje.fsf@localhost> References: <8734xz2guk.fsf@localhost> <874jidd2ym.fsf@localhost> <837cn9h9ko.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33019"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gerd.moellmann@gmail.com, 66742@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 26 14:43:49 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qvziH-0008NM-4C for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Oct 2023 14:43:49 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qvzi0-0001Qo-9T; Thu, 26 Oct 2023 08:43:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qvzhz-0001Qd-EF for bug-gnu-emacs@gnu.org; Thu, 26 Oct 2023 08:43:31 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qvzhz-00049U-5t for bug-gnu-emacs@gnu.org; Thu, 26 Oct 2023 08:43:31 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qvziT-0006ZF-TW for bug-gnu-emacs@gnu.org; Thu, 26 Oct 2023 08:44:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Oct 2023 12:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66742 X-GNU-PR-Package: emacs Original-Received: via spool by 66742-submit@debbugs.gnu.org id=B66742.169832422525216 (code B ref 66742); Thu, 26 Oct 2023 12:44:01 +0000 Original-Received: (at 66742) by debbugs.gnu.org; 26 Oct 2023 12:43:45 +0000 Original-Received: from localhost ([127.0.0.1]:60903 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvziC-0006Yd-G2 for submit@debbugs.gnu.org; Thu, 26 Oct 2023 08:43:44 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:41345) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvzi9-0006YM-Cv for 66742@debbugs.gnu.org; Thu, 26 Oct 2023 08:43:43 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 015D1240101 for <66742@debbugs.gnu.org>; Thu, 26 Oct 2023 14:43:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1698324185; bh=fUa9v9//MW8+uIcAPuJVE4LP4HskUbcCtOf5WkgD2Bg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=MaW5dUc3M5+ivo8CJPLALPEUtEmKMPdVsJv30mFw14m7UhpqfQj4zW1cjjXGerSk7 UcYck1mms9uBF01Mm4J7jBVSuqunfjg+V9hCV+H5vqqs43WFt5nl1jdlfLfv4Eh8wD WGpuIwXfq7WiE7c/z5YhG397xfMcx4OQoGco44wGoc3JVR4Rf/RyWi+xrgIt5qs0yf xM0cWyQrnE53zDhu7zd9JGitdTK0f3vVpXz7VNAMRaz9ZqOMz2r96qYvLzlQQNuYQ8 g3ICd71ttJsLIHG/VC/4EO/abrY9C27mi8SWIPh/albSf8EdsnKRttS7BGqfqsG0Tm AtsREE3peTeCw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SGQSS0jddz6twh; Thu, 26 Oct 2023 14:43:03 +0200 (CEST) In-Reply-To: <837cn9h9ko.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:273273 Archived-At: Eli Zaretskii writes: >> Actually, I think that I will not be wrong to say that (defvar foo >> . ..), (defcustom foo ...), and similar expressions are >> often assumed to evaluated in the same Emacs session that will use the >> library. > > There should be no such assumption, and so you will be wrong saying > that. We actually try paying attention to this aspect when reviewing > patches where a defcustom has a default value that is not a constant, > precisely for this reason. This is a surprise to me! Is it documented anywhere? I thought that we should expect the value to be evaluated unless explicitly wrapped into (eval-when-compile ...). Also, I just looked up defvar instances across Emacs and I am seeing multiple cases when the value is calculated dynamically, assuming loading time: cvs-diff-program, diff-use-changed-face, url-mime-encoding-string, url-dav-lock-identifier, type-break-time-last-command, reftex-section-numbers, ispell-library-directory, artist-pointer-shape, so-long-version, shadow-system-name, bdf-cache-file, vhdl-mode-menu-list, sh-shell, js-js-tmpdir, gud-sdb-needs-tags, tetris-next-x, tetris-score-y, , vip-startup-file, vi-scroll-amount, tramp-cache-read-persistent-data, tramp-archive-enabled, socks-username, newsticker--latest-update-time, dictionary-color-support, mh-uncompface-executable, mh-swish++-binary, mh-swish-binary, mh-mairix-binary, mh-namazu-binary, mh-grep-binary, mh-spamassassin-executable, mh-sa-learn-executable, mh-bogofilter-executable, mh-spamprobe-executable, mh-pgp-support-flag, kkc-init-file-name, image-dired-queue-active-limit, mm-temp-files-cache-file, erc-autoaway-last-sent-time, viper-custom-file-name, viper-current-frame-saved, copyright-current-year, cl--random-state (!!! that can easily cause subtle issues), dframe-have-timer-flag, todo-files, todo-archives, todo-done-separator, diary-font-lock-keywords, math-expr-opers, calc-gnuplot-display, archive-7z-program. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at