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 ms11 with LMTPS id kPOlJoTkzV7TMAAA0tVLHw (envelope-from ) for ; Wed, 27 May 2020 03:54:44 +0000 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 YAmSIoTkzV5KagAA1q6Kng (envelope-from ) for ; Wed, 27 May 2020 03:54:44 +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 14DDE94029E for ; Wed, 27 May 2020 03:54:44 +0000 (UTC) Received: from localhost ([::1]:60246 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdn9O-0002bZ-Vh for larch@yhetil.org; Tue, 26 May 2020 23:54:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55966) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdn94-0002bO-BZ for emacs-orgmode@gnu.org; Tue, 26 May 2020 23:54:22 -0400 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]:39199) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jdn92-0005Rx-Ut for emacs-orgmode@gnu.org; Tue, 26 May 2020 23:54:22 -0400 Received: by mail-pf1-x430.google.com with SMTP id b190so11213554pfg.6 for ; Tue, 26 May 2020 20:54:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=G728CPT/b4CamRwJrg83s7bnbrudOK2GpBNb0VBN1uo=; b=ePIgR0/UP3f6ejGP96RjGwjeV9VhqH25WVBCnzbI0kaQgqjUoU9uluvar9QZgJbTE5 dt/9cOPpfbF4RwKq9CCxS1LX0H30U7vfAni2586wNFp1RnMTr+HDn7W3LL/mtgvk4u0k RdeL4G0mskel2C7QkB5NDpYcVh1iW9JDbM6wFxgjSUZWAdgZF0Z4XyZ5l42lfycys0HP PKWqc+5TbTb2lTU7E7sFG1GKEuZ8pUlrZPd3HNFkj+NAm8P5qncfcpBeAWU6tdEqgH+j WrVTZtkuFDBlZiU5/NkSQP8J2odMwNhM7PsWOPnn1REpRthu6VPdF7EuKu37OnMwS/lV xWRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=G728CPT/b4CamRwJrg83s7bnbrudOK2GpBNb0VBN1uo=; b=QyaS5dFfBv3SsUrk3cibJy4NDfWDuR6iYZW5EhlHyKHMod7EsgdTTJiYmhxsX2QjFc 3Xp/Fm9UJEzzAa33hlvKd73uKmHj5QCStCjkmXj71wss4GI86SYJ621ciljoSbUZo3GS ZstTz1/TR6hqwaWvsV2wpyj1BUIBeLHMrjJKZmF+VMjiBkaEEkC8G/3wI2mOisRb4oLu Cn44r/dx56eYZImYB1hU4WGVvOjn8A4s0XT1n+rZbn6VYCabHSOhWSM8SACG8hD53g9T U/QQsYza3UIgCyvEV1wsgjIbpdIrVtCQrQXA3v1tj1q8yhu3AqyA4DXjB2fKW5dL7VIk CSjw== X-Gm-Message-State: AOAM53268MP1EqPjCEYQZuFGsLROS5qv+J3GdjH/v1EV6Rn/8BIAw3yG 8TQHq1H5VlD49tdXlbd+kwk= X-Google-Smtp-Source: ABdhPJwNPM95cvbrUasRhXO4wx3nPc8bcaDXt4nBMC4NTkuI5cpge1zigvLIUtXHnEnz3adi9/K3Ag== X-Received: by 2002:a65:6795:: with SMTP id e21mr2069207pgr.282.1590551658744; Tue, 26 May 2020 20:54:18 -0700 (PDT) Received: from localhost (97.151-89-23.rdns.scalabledns.com. [23.89.151.97]) by smtp.gmail.com with ESMTPSA id d2sm855084pgp.56.2020.05.26.20.54.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 May 2020 20:54:18 -0700 (PDT) From: Ihor Radchenko To: Kyle Meyer , Vladimir Nikishkin , emacs-orgmode Subject: Re: Bug: why does org-goto call org-latex-preview? In-Reply-To: <87tv02vy5r.fsf@kyleam.com> References: <87tv02vy5r.fsf@kyleam.com> Date: Wed, 27 May 2020 11:49:41 +0800 Message-ID: <87mu5u5962.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::430; envelope-from=yantar92@gmail.com; helo=mail-pf1-x430.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=ePIgR0/U; 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-Spam-Score: -0.21 X-TUID: i//NIlUU28V/ > It looks like an oversight to me. I think > org-startup-with-latex-preview should be let-bound to nil around > org-goto-location's call to org-mode. Likewise, I'd say that > org-startup-with-inline-images and org-startup-shrink-all-tables should > be let-bound to nil. Is there even a need to call the whole (org-mode). The new buffer is an indirect buffer. It should already have org-mode activated (at least, we can check for it and not call (org-mode) unnecessarily). If we just want to reset initial visibility, (org-overview) is already doing the job of (org-set-startup-visibility) from (org-mode). Best, Ihor Kyle Meyer writes: > Vladimir Nikishkin writes: > >> Why is it that org-goto enforces the regeneration of previews in a buffer? > > It looks like an oversight to me. I think > org-startup-with-latex-preview should be let-bound to nil around > org-goto-location's call to org-mode. Likewise, I'd say that > org-startup-with-inline-images and org-startup-shrink-all-tables should > be let-bound to nil. > > Assuming nobody chimes in to explain why that's a bad idea, I'll plan to > make those changes tomorrow night. > -- Ihor Radchenko, PhD, Center for Advancing Materials Performance from the Nanoscale (CAMP-nano) State Key Laboratory for Mechanical Behavior of Materials, Xi'an Jiaotong University, Xi'an, China Email: yantar92@gmail.com, ihor_radchenko@alumni.sutd.edu.sg