From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0NuxKbQNb2FMoAAAgWs5BA (envelope-from ) for ; Tue, 19 Oct 2021 20:25:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id mFVWJbQNb2FqAgAA1q6Kng (envelope-from ) for ; Tue, 19 Oct 2021 18:25: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 E68692E471 for ; Tue, 19 Oct 2021 20:25:55 +0200 (CEST) Received: from localhost ([::1]:37654 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mcto9-0005lC-9m for larch@yhetil.org; Tue, 19 Oct 2021 14:25:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41330) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mctm4-0005hm-Uz for emacs-orgmode@gnu.org; Tue, 19 Oct 2021 14:23:44 -0400 Received: from mail-ua1-x932.google.com ([2607:f8b0:4864:20::932]:35631) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mctm3-00081S-18 for emacs-orgmode@gnu.org; Tue, 19 Oct 2021 14:23:44 -0400 Received: by mail-ua1-x932.google.com with SMTP id q13so1787380uaq.2 for ; Tue, 19 Oct 2021 11:23:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Y45W4P2ojmycQ+N/2taApU5bGVyiBxB6Lp8bn197vM0=; b=PNWDyKyJlw8Yq/aKeseKD/f4kRCg2424FXtAiU90DMgEJgXMzy2u9Tapuzkb3hIDU0 aV/SMSxjAJjpFblZnDMxSdYIblN8eeVegh19a7DlhUkMYvbc/jqU/JgUXN1SY0vIyZF4 Ab8IPau9i6/wNcjsGnUhNi2KHtfqrDSIfr5VSWifJjt1LSiA8SCPmA4x0jpgKk8ahGZJ 77dxTMJzzNjt4M4ndVdrgXLoo/vy9f41kR+STS5sbzWv1nIUHCpUOlWDiJ4fVicLEZw8 0QD8FHGBI6vq5txN6lFpEYfA+S820dL2DEkt65v+RVL5m/GoeAPbBHE7MCNeO2J8fNrr 1s9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Y45W4P2ojmycQ+N/2taApU5bGVyiBxB6Lp8bn197vM0=; b=KhMESRfndHINnKAI7Rg6rr+HbouLGflUSksaWImaDo04dpFx05zDR3hPvO865LlIPb 2oaWXADAw+lq5yg/waqJ5kiTK3xSBAxXJSrmHOKTqBvzfnhOFGc/qxfto53Py8UD/9YD VdC2MaJdhodYmE0siC1OeBwXauvkoXMnxxBoQp9NGuC4V33a9VvC5ZEUiGgYZ/Pb/23i 00x1kFkjAh8SxYBiRMoArQBAnGVwh6QvmhUesMyIrWIGkzDCEMIc6iIbuVAI25JDTMg9 vLwwmRLPj4cqorZsx0UCT68JsA/65lPeOx7ywvp0A4UhcR3eWqE4/kPCXs1KiGtHDnVH /S+g== X-Gm-Message-State: AOAM531jehteZQF+ZpNe43/eCiyx3oXral9suSo+cl4FkwSOKYLefUBG xDaAE2mUsjwAfe4SHMVXvi7TVY+EBNJsV7EDCpA= X-Google-Smtp-Source: ABdhPJzuN0eqtvTZ8zVTWamabtBOUass0o6CCxqGYbPM5Z6YYKLfEFIJq38fE5dy/3FCkfHYfzq+2bxBk3B9Qzp6j5I= X-Received: by 2002:a67:1c04:: with SMTP id c4mr35150447vsc.11.1634667821598; Tue, 19 Oct 2021 11:23:41 -0700 (PDT) MIME-Version: 1.0 References: <87wnm8gbyb.fsf@localhost> In-Reply-To: <87wnm8gbyb.fsf@localhost> From: John Hendy Date: Tue, 19 Oct 2021 13:23:30 -0500 Message-ID: Subject: Re: Clarification on org-startup-fold behavior vs. docs To: Ihor Radchenko Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::932; envelope-from=jw.hendy@gmail.com; helo=mail-ua1-x932.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_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=1634667956; 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=Y45W4P2ojmycQ+N/2taApU5bGVyiBxB6Lp8bn197vM0=; b=Ky5gjmQ/3/+hPjzEJdiZkcgYhg9Fj5jtSKWIKmjDZdM2t1PbeziNUrvSVeFhF1N3xj49Mi E6RHGNEf8JXwlU+ybRoA1qmyQ4P8k4/24WGm0GUgQxV2ZB2JIZ4RYIygFgZCprpS4P6E3J f23zpYOPH4NfHX0ImwYxGpRbx7K4i+B1SJ4xhCKM3gQekj1mFn2eg43lama8W+YdqfAkK2 3jCvx/3QRwhEAcSvQje/SJLHfvMAZVhA+ztg1kClKgQPfAGlXFp9UhfBSIfm5WUZ4jq5ku i/5IzPsJXmqKuqqOhaPbsR4Ki01HMZQMTtN7VNyT29PN0BkDd4gKWfY5UsZ5uQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634667956; a=rsa-sha256; cv=none; b=ZlJOIEpizs+cNi25v/+D16iK+zSgs1bO0Vt7ddmTXmaz2oliEtFnoVfHAmaVqjk4MAjhM8 1LcxLSV15LLpc/bh3x4PvsDsSmt71uSVkvpFjDSmh13c7Bdy0XQHxK0vWeeO49eeT2Fj/9 kHwBKZ5rIBnoLEojQLV8gKR9CL/IlroJLTrJthrXE/KRxollvmsuNyxgUpW3A3aFwVG6Ms /YwTjxIOnL5VuMRU5LwimrQzXkp81lFTC4oYnen+pXtCe54hoIpX9OYxrga0RW/10FDVFE MRDxgqY3MMXl9jBI9q5SbwWnsuLNsR3dVCtUKHyxTihebfVgBg+eUMttG67gRA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=PNWDyKyJ; 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: -3.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=PNWDyKyJ; 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: E68692E471 X-Spam-Score: -3.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: z4MTpRALbeDo On Tue, Oct 19, 2021 at 12:28 PM Ihor Radchenko wrote: > > John Hendy writes: > 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 Thanks, this is helpful. I would, then, chalk this up to my ignorance on emacs variables and such. This note also appeared when I was using emacs -Q and it said I couldn't change it because I might have started with -q, so I thought the "mismatch" might have just been some artifact of that. I didn't know what "mismatch" meant and suspected it might merely mean that I'd set this in a config, not with M-x customize-variable. > 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). This is a good reminder and I've done this before (see what it does to my config custom variable section, then replicate directly). I didn't think to do it this time. My remaining question is why anything except nil (string or not) isn't non-nil? Like I get that to set a specific setting, you'd need to match a defined variable... but is it the case that non-parseable types (expected var, got string) evaluates to nil? I think the docs still throw me off. Note that showeverthing in the lead up to the options is fontified as a variable (no backticks), but below they are all backticked. I actually thought those were all quoted, only realizing now they are [probably] backticks. I didn't expect both fixed width (which my brain reads as "code/variable") *and* backticks on top. https://orgmode.org/manual/In_002dbuffer-Settings.html Actually, now I'm realizing these backticks go in the opposite slant as what I'm used to? Or are they really single quotes, indeed? Thanks again, John > > Best, > Ihor