From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id QLYjMfOc2GWJ+AAAqHPOHw:P1 (envelope-from ) for ; Fri, 23 Feb 2024 14:26:11 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id QLYjMfOc2GWJ+AAAqHPOHw (envelope-from ) for ; Fri, 23 Feb 2024 14:26:11 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="BEgm/Aem"; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708694771; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=cwkXF08c4WBjwoWttdKozIzgci2I0tP2sgi+OlM9d/0=; b=ZQ0+iVmLwl2X8iBgE6DCqMMXWmXvneo5OFHRY0LPbSx4Hi9liotjC35vona4UnXtwQCch0 D3tK6S0wwysMGr+Fgr4T4AaeiYcmrEIesolnZ+/ua8Qbo0xmXug5lyg+mjgaIs0esCf28M 0wLb0Esr6aFBTidxDCFu8I1cg3xByxQDD2k85oN+mfw9YwU70Byj/D+kHVUMVSrE2ev2Ap FUHzjAv2R8idua08FCDNzMZvELB1niBAfMnhTqPoxfFy2ah2vmJh2PMfSY2Reryn3qH6mQ pbzau5EE3pMHak0/9z2oDwmUYh3th4OK7oDHQXe9P6qcZVgZmInL6z/6sdmhGg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="BEgm/Aem"; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708694771; a=rsa-sha256; cv=none; b=S3BT1X/qqx5uq8CPxKCchm0vC7m0Ks1fg7vwIQNEXU+W2U+tRLhvzPU9PoUtdzr6+7JtuA v13ztW5ZHSVQMaJnZkUksbIU13kumkrVy6OjcGW794YG0CBi1xnGWssjeNOff2Tv8T7xbt vQiX8YVOWkZSmyJsebT6/LXpyAaVzJT9qxWNlcRPckvoFbO98we8DGSo28kZGHzWUR63uo nw0ovOXOSk/uc5caTxnl1vcxCQlnJK4EKNmzmvYme5oY//0DVzTwzjod3w53V27cVF5URy XGzjysWEtvvr5AahyypQrz1y4950Y4TfCKJCNw/7DtekMXbFDTi8RU1BzLe5+w== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A6F296913B for ; Fri, 23 Feb 2024 14:26:11 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rdVY4-0004Gp-M6; Fri, 23 Feb 2024 08:25:08 -0500 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 1rdVUc-0003mg-Qn for emacs-orgmode@gnu.org; Fri, 23 Feb 2024 08:21:35 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rdVUa-0003PP-GQ for emacs-orgmode@gnu.org; Fri, 23 Feb 2024 08:21:34 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 8B3D2240027 for ; Fri, 23 Feb 2024 14:21:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1708694489; bh=cwkXF08c4WBjwoWttdKozIzgci2I0tP2sgi+OlM9d/0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=BEgm/AemL3FvZNXxRjz4T9WlT02awUMVqYmnggKVDyAds/jokV9YHFd6FRAU6kglv iEe4osWrcOKvjEtjYU8AX0ff/thnXrtx7dJB4iDMfhN95ABYmqraXtpW/QB7KKO10z rMKwxXc1cn0MUitxGipYMSW64SvOBUgqQ6QGbFTvG5TT+8fiWfh4ZBtdeSl7vRflgY RdfavCp5slgyBEdnepJlWEEHklb9B20H8XBjTShtrk88Y796KTH1/b4s4IzF9KdM06 RsYbAxvvMHxHd5+eVjICvBhsMVX4W5WKM54+LSg6ANuuMUlCZNBc+XODrTPrGIVZ38 L899+k06mfjtg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Th9dN40kMz9rxL; Fri, 23 Feb 2024 14:21:28 +0100 (CET) From: Ihor Radchenko To: Ruiyang Wu Cc: emacs-orgmode@gnu.org Subject: Re: User set org-hide-block-startup value overwritten by defvaralias In-Reply-To: References: Date: Fri, 23 Feb 2024 13:25:12 +0000 Message-ID: <87r0h3ia87.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -4.65 X-Spam-Score: -4.65 X-Migadu-Queue-Id: A6F296913B X-TUID: 2s9UNVuBtNg0 Ruiyang Wu writes: > I recently started to get the following warning from emacs when loading o= rg mode: > Warning (defvaralias): Overwriting value of =E2=80=98org-hide-block-start= up=E2=80=99 by aliasing to =E2=80=98org-cycle-hide-block-startup=E2=80=99 > > I have this in my init file: > (setq org-hide-block-startup t) > > I believe the value t is not preserved because in org.el, it first loads = org-cycle.el which assigns nil to org-cycle-hide-block-startup, and then ex= ecutes (defvaralias 'org-hide-block-startup 'org-cycle-hide-block-startup) = so the value of org-hide-block-startup is overwritten to nil. > > Some quick search on the internet seems to suggest that defvaralias shoul= d be called first before giving org-cycle-hide-block-startup its default va= lue. (Cf. https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D5950) Thanks for reporting and for hunting down the cause! Fixed, on bugfix. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=3Dbfe253f7e --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at