From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aL7kHFgAb2FMggAAgWs5BA (envelope-from ) for ; Tue, 19 Oct 2021 19:28:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id eCyJGFgAb2FkcQAA1q6Kng (envelope-from ) for ; Tue, 19 Oct 2021 17:28:56 +0000 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 B4BCB2C29E for ; Tue, 19 Oct 2021 19:28:55 +0200 (CEST) Received: from localhost ([::1]:42166 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mcsv0-0008Us-Ob for larch@yhetil.org; Tue, 19 Oct 2021 13:28:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56440) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcsuM-0008Sn-2B for emacs-orgmode@gnu.org; Tue, 19 Oct 2021 13:28:14 -0400 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]:36513) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mcsuK-0004ET-2y for emacs-orgmode@gnu.org; Tue, 19 Oct 2021 13:28:13 -0400 Received: by mail-pf1-x429.google.com with SMTP id m26so561559pff.3 for ; Tue, 19 Oct 2021 10:28:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=lsZeXa1+Yw7FC+5ZqIAdJ+XF12gp/pWO520n/UWQdBw=; b=p/KZ+RuY+UO192h2EzPgVoBUFaM6JhY4qu996wcktIcYPAanLR2vfvTTfK2dI1+t8G nfseNEDCNB0uOGE7e3XSJZToduLKERlbApj2ErXqN9J1TPWXMsb8skMbS86daFe+wF/3 NLxOQv2hfvk6A/RlxHcs6eiR3Ea4MFVHZAshoO4WMLOoNAKAmvZNJmHywg7QKiJQ16+/ ObCYY0PDHYfewte6mKDw4aPaqW4SxRWhSeRXoF5AEqWfe11xPVpLnAmYYUlFUWK7jjFn uEYY9nKVGpwrbJw+feV7IcAJlXv7KN8YBYmoWQRuuoRUT3D2aVGgCP2uaqJsKACc6oBu YGdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=lsZeXa1+Yw7FC+5ZqIAdJ+XF12gp/pWO520n/UWQdBw=; b=cJ5y94bJRUkjQI1iAHvE+f9UWkfxoM4WUvwD0qxawuV+1Wgv35mIKW/NIDp6tO7ER0 mhw8p4xwBGk8Uvy4Xg7kqyKUoY2c1S6pUrbtrXkhwu2xEDPhA6UljdlBj1G5l0YeEG/o AUnmcZ/LfY1ihy7Pur0646vNshektXqe7XubDz0t+KWm+bblqhiiOH5SYgLSUOlQMCsD fKpV/zmVH0YvqAG7MOIuNVuKSomRu5oa0klifDqOd3xnhbjU3jebka6Sizu9bcfYvKju kl89kN/qrXXNUXrEJewCw5bxe5eIsOeydGoMaHJm5SrIPlXnSrJTLRazxRiwmI+zuV2h 5TLw== X-Gm-Message-State: AOAM532rKfIp9TETEvVaIAPEWyRCxsXwgSEo/2Yr/HMONWC8mWPdLBfz P0mxNwNLEoK0Jc52T2eZW0vOENbDkAI= X-Google-Smtp-Source: ABdhPJy7aWW6qCqfVcA/xmmZ6NBdrMD4OipiHLnsOvelo/BstHFqLRvcixEhjdCyUNC8RyLOpLDDrg== X-Received: by 2002:a63:191a:: with SMTP id z26mr29312647pgl.373.1634664490794; Tue, 19 Oct 2021 10:28:10 -0700 (PDT) Received: from localhost ([103.125.234.210]) by smtp.gmail.com with ESMTPSA id mp16sm3501860pjb.1.2021.10.19.10.28.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Oct 2021 10:28:10 -0700 (PDT) From: Ihor Radchenko To: John Hendy Subject: Re: Clarification on org-startup-fold behavior vs. docs In-Reply-To: References: Date: Wed, 20 Oct 2021 01:29:32 +0800 Message-ID: <87wnm8gbyb.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::429; envelope-from=yantar92@gmail.com; helo=mail-pf1-x429.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1634664535; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=lsZeXa1+Yw7FC+5ZqIAdJ+XF12gp/pWO520n/UWQdBw=; b=CtHll7zwF5+Z/j15c4k3UgjziILRdm6FcYrzUSV1wyKHDeMTBACBXh7G7g/abCVv3jG8eH ahqknyj4wb8N26WxsHKT+5t6C2KWkXnGwRNDWanHpmzELvh5HNhEh+dw2SAsPKD7G4orFC bF8Uu7DDmeb+EVc4hk8CofDhNboYWIuNwiEDyxcqoCrcnSyBr2Sn3nEQhex8uzjJIQxpkc KTTXzz64++BRg2i66acGHszujiXpyThwlA5R2EHpdPt3TNQ14I90k4cf6sTgd4n9EOVShg lTMtzvBMJd1BLuUT/+qS2JzBKgiBZHf3Hc3h+a5R4fJfVWXSJFZay97jeBNRhw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634664535; a=rsa-sha256; cv=none; b=MmgYqVbXx9RLRYD33g2i27HhJfvXKQXQx6At6D2fSAeJKzlWGKuXQlRwy+toL2Ov7rn3fg NV/qUSKsL7f8xY8r6jXNW46av6gcKBJ+vvKwOI9N73P6IZ1HJtl2z8ChbkWd/0ZYBfI//J g+N8nPAVDFeA7RRmcqcMbVI141ilk1fpMaMQ8CqsMu3p22rjguKl7fwD9+pr1I6AyqDD6T KeDo/r6sutNg1PCChz9dghXJEY1tL+p5Pq9o0v2hlaZS7mF230vwpCF9TXo5cHwRPfmZsH yU3BRTtbSqb2CzJSJUabnqsk42exZBXuMDU9VQgApN/fiPMAz54gAQ+W1umJUg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="p/KZ+RuY"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.63 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="p/KZ+RuY"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: B4BCB2C29E X-Spam-Score: -2.63 X-Migadu-Scanner: scn0.migadu.com X-TUID: A34/CptPaRtR John Hendy writes: > #+begin_example > (add-to-list 'load-path "~/.elisp/org/lisp/") > (add-to-list 'load-path "~/.elisp/org/contrib/lisp/") > (setq org-startup-folded "overview") > #+end_example The value should be a symbol, not a string: (setq org-startup-folded 'overview) customise interface even tries to warn you that something is wrong: > In addition, M-x customize-variable for org-startup-folded says: > > #+begin_quote > org-startup-folded: "overview" > State : CHANGED outside Customize. (mismatch) <--- this is a clue > Non-nil means entering Org mode will switch to OVERVIEW. Hide If you select the value from customise interface, Emacs would set it correctly. Direct setting is indeed possible, but you need to consult how the variable is defined. Note the :type specifier below (also, see 15.4 Customization Types section of Elisp manual). (defcustom org-startup-folded 'showeverything "Non-nil means entering Org mode will switch to OVERVIEW. This can also be configured on a per-file basis by adding one of the following lines anywhere in the buffer: #+STARTUP: fold (or `overview', this is equivalent) #+STARTUP: nofold (or `showall', this is equivalent) #+STARTUP: content #+STARTUP: showlevels ( = 2..5) #+STARTUP: showeverything Set `org-agenda-inhibit-startup' to a non-nil value if you want to ignore this option when Org opens agenda files for the first time." :group 'org-startup :package-version '(Org . "9.4") :type '(choice (const :tag "nofold: show all" nil) (const :tag "fold: overview" t) (const :tag "fold: show two levels" show2levels) (const :tag "fold: show three levels" show3levels) (const :tag "fold: show four levels" show4evels) (const :tag "fold: show five levels" show5levels) (const :tag "content: all headlines" content) (const :tag "show everything, even drawers" showeverything))) Best, Ihor