From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id mN5bDy4QYGJUSQAAbAwnHQ (envelope-from ) for ; Wed, 20 Apr 2022 15:52:46 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id YAE1Dy4QYGI8RAAAauVa8A (envelope-from ) for ; Wed, 20 Apr 2022 15:52:46 +0200 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 C5C8030592 for ; Wed, 20 Apr 2022 15:52:45 +0200 (CEST) Received: from localhost ([::1]:46824 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhAlA-0004ig-Ue for larch@yhetil.org; Wed, 20 Apr 2022 09:52:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37172) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhAKn-0004Lm-1v for emacs-orgmode@gnu.org; Wed, 20 Apr 2022 09:25:29 -0400 Received: from mail-pg1-x52c.google.com ([2607:f8b0:4864:20::52c]:44992) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nhAKk-00043A-4O for emacs-orgmode@gnu.org; Wed, 20 Apr 2022 09:25:27 -0400 Received: by mail-pg1-x52c.google.com with SMTP id i63so1600074pge.11 for ; Wed, 20 Apr 2022 06:25:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:in-reply-to:references:message-id:date:mime-version; bh=yNXldYEao3gcXw6Aozdqvszp1KrZ5oTteGpL5hKhRNg=; b=eKg/zHV7/ijjmGw6UX0xpjviFIVAb90uyOx2ojdl/8E90nh1wm05fVrjnsN1dfLtE6 hMA+SZgUpNLUKxpCn0aoUulzj2R9PfFv9AVKuTVXjbyhzDX6TlA86ec6D7wosYlCtiB/ ZGKyAi/OTt/3BsnpIUBqb3xhwRD6Xwex1gjb449jDvoIF18ljPKlarC8CaE2HogGaCgn WPN3qWw+MU7v1So3hzoDtMugqm6+znJnDmI7gsWEgxrkTNRbZkO9kmjAUwYB37LFcUCP ujXseHoDrWE9tT/aP/O3N9CKbLD61To7bFE7iHOBobWoHywL94YSsis1aE52kPmobGSi sTcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:in-reply-to:references :message-id:date:mime-version; bh=yNXldYEao3gcXw6Aozdqvszp1KrZ5oTteGpL5hKhRNg=; b=mXqhFrAAaegenRjznW2MKDl7v/c/G/XvHxJ1b2avA+soCj+67JTqwv1ChYUmv9iuVb RldvOdDFfLjCmkUs8UBQonUOdTLqkQpjzhfriXMocQJuy8IzG14+bxAYjrVlaBCjfaTb ymkNVU3Rldrwi/Qw/0IB7xu6+/IXPBI4uO+G8265xEFZn0GXU7slJS0DZ0cB1q/uK2Nv 68/1z/ycNi6jj8gtlKxiX1JPvi0C0dobmjbsJTEDWIwz5gONch1OSZf2ucMw4IymRDPL EIRea/w+2YZB8sSReHfHjPALw+iZh0zMz/OESclZE0neqI1RZFPPyv/6rgyX2xPxPxq4 LhIw== X-Gm-Message-State: AOAM531TidY1GtHPFXss2XkSavfekIOiI2HoKgwKEnfKJNZM+F2eu1B2 JoVTqhtqXyqPhiPkLBnGjb/HCjHKD9AIWQ== X-Google-Smtp-Source: ABdhPJxV5nyNkGxcedGeskK6wbDb9XBex4yEXcGB0H9bqn8B8J0Ij67wviGlpSg+Ht0lCaVUEiYyLg== X-Received: by 2002:a63:5d0a:0:b0:399:40fd:2012 with SMTP id r10-20020a635d0a000000b0039940fd2012mr19581254pgb.454.1650461123741; Wed, 20 Apr 2022 06:25:23 -0700 (PDT) Received: from localhost ([64.32.23.62]) by smtp.gmail.com with ESMTPSA id oo17-20020a17090b1c9100b001bf0ccc59c2sm24192915pjb.16.2022.04.20.06.25.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Apr 2022 06:25:23 -0700 (PDT) From: Ihor Radchenko To: emacs-orgmode@gnu.org Subject: [PATCH v2 19/38] Restore old visibility behaviour of org-refile--- In-Reply-To: References: Message-Id: <2dcb15f0745ccd6c31750be507a0aee3dba82ba0.1650460489.git.yantar92@gmail.com> Date: Wed, 20 Apr 2022 21:26:16 +0800 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::52c; envelope-from=yantar92@gmail.com; helo=mail-pg1-x52c.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1650462765; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=yNXldYEao3gcXw6Aozdqvszp1KrZ5oTteGpL5hKhRNg=; b=APMHpIgtdqeAMufLoijoK+OKWffXGkk0kLYRKY/jKr3XWdD9EHFDI/dDMHF5yMnbMn89XU 9vJrR1E+tLzbEkZNr2F5Q6T81Zj0aPVXC+V7oOBeo3RrZ70CEHfbaznystsWz0fAuA2FmI 5AG80P6/7Nh0apQ1ZDuQa30XEITbfOGag9k9IJ332D0LwnbtXnecXnqdv0RCWP3iUxQai7 b9sFr9gcmVs6gOo3f4DBzaf/FwJ6wi9tAiFUI8z/kNlVR+rCP02p3h1utGb4lTQKFRQDdr 3LV2aEyIKXZ/4Ouoo9FmzI3IsrHnsYsuEMBiyQwlFTwhx39LL0RlWTc3Eoqq+w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650462765; a=rsa-sha256; cv=none; b=WF947wP2ja91izkwvjckbRhxU6q3V9VCKLjIeehj7rmVPyZ6wYRqYBKPvM4qIdI/ygLs7T OPqdGnpHcUTKpxUHozYNs0JsPWvtQ1LadHjXcAtDgbmPrFnO+/JLUpwjgK77WOf8vX+j42 20mAo9vGDSS7DG8Op1VIxr/KERb36tudsOuCiUg6GH/yLh/JmK0bGcGqWEFPrDskCydQX+ wEVkqD1pAwLp8W5vzz2pUh6NyJjCyKZKTnr65XhRXEfx853HOvOewXv9mXMOMgnZIHpdg/ h6zoTUsECydyjXCJhdsrhn1ItNVMnYExBkT0LBM8xjvHME++XWjw82gOD3OKgg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="eKg/zHV7"; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Spam-Score: -6.54 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="eKg/zHV7"; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Queue-Id: C5C8030592 X-Spam-Score: -6.54 X-Migadu-Scanner: scn0.migadu.com X-TUID: paRxtCgwX2eu --- lisp/org-refile.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/org-refile.el b/lisp/org-refile.el index 6f2b019ad..e87c3e9a9 100644 --- a/lisp/org-refile.el +++ b/lisp/org-refile.el @@ -547,6 +547,7 @@ (defun org-refile (&optional arg default-buffer rfloc msg) (goto-char (point-min)) (or (outline-next-heading) (goto-char (point-max))))) (unless (bolp) (newline)) + (org-fold-reveal) (org-paste-subtree level nil nil t) ;; Record information, according to `org-log-refile'. ;; Do not prompt for a note when refiling multiple -- 2.35.1 -- 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