From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id kHXYIRyjal9uEgAA0tVLHw (envelope-from ) for ; Wed, 23 Sep 2020 01:21:32 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 8HFxHRyjal9ILAAAbx9fmQ (envelope-from ) for ; Wed, 23 Sep 2020 01:21:32 +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 8C7009406BB for ; Wed, 23 Sep 2020 01:21:31 +0000 (UTC) Received: from localhost ([::1]:38442 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kKtTM-0004E7-Q1 for larch@yhetil.org; Tue, 22 Sep 2020 21:21:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42932) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kKtSZ-0004Dx-RJ for emacs-orgmode@gnu.org; Tue, 22 Sep 2020 21:20:39 -0400 Received: from mail-pj1-x1043.google.com ([2607:f8b0:4864:20::1043]:50667) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kKtSX-0003xS-Dj for emacs-orgmode@gnu.org; Tue, 22 Sep 2020 21:20:39 -0400 Received: by mail-pj1-x1043.google.com with SMTP id fa1so2365022pjb.0 for ; Tue, 22 Sep 2020 18:20:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:references:user-agent:from:to:cc:subject:reply-to :in-reply-to:date:mime-version; bh=xLmJp2IM2nTstRf9hpC0to5FOaBbUs7MVhAy+S8YpNY=; b=D6EZ6w6r6oGAL+zXRZ9I87vceMyJ6asv3Ndit/Y96BI3B7tv14qBIKppf1EZry46Qj LAJN7ZZ5SM+28kQ/n/TolqP4B3ZkJNc1wGryRF5wZjaOeP4G2glhH4wii/jqHGwB9TMB Ty3LtSPREXVOGkSi04un5j41eu7A3ERmtVmQtf6W+hT2L+NeXqdlI5YDlRGq+jDQZu7Y HsdlPAzIiPey8KeVde2b65v55FuUN0qgcfQ5G21QDtFi1JjdOVpP1jhDrbDoB551FEVZ +XRnld/UoX72bk5nxhgFuP7GenKlWJ2kJXgNfZ+YT7SbwHcMExhwZK00HDSKqzS5ut3+ 10Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:references:user-agent:from:to:cc :subject:reply-to:in-reply-to:date:mime-version; bh=xLmJp2IM2nTstRf9hpC0to5FOaBbUs7MVhAy+S8YpNY=; b=BmDDzA4DX2Hi5/6OMHULFtfEdhwGb8TGWzoKBLR7FKOCj2TkuPNJRlANayGFcHdhT6 Sz3d1JgAWn9trGuiT0srn62THojG0SwGrTsoV6z62bcwkzbqyWZAo+uAx8IrebHBRn4P SYq7i2I6gyM25ME8sNdXU9wAMIJRxVmi/mCVLAAiF+KLHJnqdFGhylyWBDxHdXBHZcfO p1l1MmVm5Y8M9nCfPcvBcMaLxNUfY0FqjvGx49DWqdXRExQoM5B73iFDUD0LWY6jDoGa dthpgRtmgWVwggKHl5f5CrnKw3Xh+MzuQoYmTmlfGCA2bA9Jl2A8/FI2GyDseOdnNsO1 KbtQ== X-Gm-Message-State: AOAM531JVMjHtzCEZDRjW6vL2a4bMEruH1PxXddBis0EFTNCxNwViNby ZroV/4B/4XT+hMzM2f5yx7wp/b+NhQ== X-Google-Smtp-Source: ABdhPJxJCKkBT6ovv2RUh4AY7CC/WCzkndrjCCA16yLf/Ga2/YnXxlhXeu5AsXrEKes37dTuKeB2BQ== X-Received: by 2002:a17:90a:aa94:: with SMTP id l20mr5914375pjq.95.1600824035069; Tue, 22 Sep 2020 18:20:35 -0700 (PDT) Received: from dark.gmail.com ([183.246.145.207]) by smtp.gmail.com with ESMTPSA id gb19sm3303987pjb.38.2020.09.22.18.20.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Sep 2020 18:20:34 -0700 (PDT) Message-ID: <5f6aa2e2.1c69fb81.9bff7.9127@mx.google.com> X-Google-Original-Message-ID: <87wo0ls31p.fsf@numbchild@gmail.com> References: <50f165b2-bdaf-4861-aab5-122cfef7d67c@www.fastmail.com> User-agent: mu4e 1.5.5; emacs 28.0.50 From: stardiviner To: Nicholas Savage Subject: Re: Bug: org-cycle stops working on Org files with empty lines at end of buffer [9.4 (9.4-elpaplus @ /home/brentg/.emacs.d/elpa/org-plus-contrib-20200914/)] In-reply-to: <50f165b2-bdaf-4861-aab5-122cfef7d67c@www.fastmail.com> Date: Wed, 23 Sep 2020 09:19:14 +0800 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::1043; envelope-from=numbchild@gmail.com; helo=mail-pj1-x1043.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: -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: , Reply-To: numbchild@gmail.com Cc: emacs-orgmode@gnu.org 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=D6EZ6w6r; 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: -1.71 X-TUID: 6nQhNd73Npe+ I can reproduce this problem too. I'm on Emacs 28.0.50 with Org Mode master branch latest commit "aea1109ef". I also did a bisect debug. Found the function ~org-cycle-show-empty-lines~ in hook ~org-cycle-hook~ caused this problem. Nicholas Savage writes: > I can reproduce this. I'm on the most recent master with Emacs 28.0.50. Once the last line is deleted, org-cycle won't show the "**" line and the minibuffer continues to say "FOLDING" instead of cycling through the various states. > > On Sat, Sep 19, 2020, at 12:10, B Goodr wrote: >> Hi, >> >> Still loving Org mode!! Keep up the good work. >> >> Here is a bug, though: >> >> Steps to reproduce: >> >> Store the following into some .org file (in between the "cut-here" lines): >> >> ---cut-here---cut-here---cut-here---cut-here---cut-here---cut-here--- >> * TODO aaa bbb ccc >> >> ** TODO aaa bbb ccc >> >> delete-this-line-to-see-the-problem >> ---cut-here---cut-here---cut-here---cut-here---cut-here---cut-here--- >> >> Move point at first asterisk (beginning of buffer). >> >> Type TAB key (bound to org-cycle) multiple times and notice it cycles >> the headings through the various levels of exposure. >> >> Now go to the end of the buffer, and delete the one line there >> containing "delete-this-line-to-see-the-problem", but retain the two >> empty lines at the end. >> >> Repeat the above steps with the TAB key at the top of the buffer, and >> notice it stops working. >> >> On the mailing list, I see some recent changes that might or might not >> have broken this. I've not upgraded Org mode in a while: >> >> https://lists.gnu.org/archive/html/emacs-orgmode/2020-09/msg00520.html >> >> Thanks! >> -bgoodr >> >> >> >> Emacs : GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.14) >> of 2020-03-26, modified by Debian >> Package: Org mode version 9.4 (9.4-elpaplus @ /home/brentg/.emacs.d/elpa/org-plus-contrib-20200914/) >> >> current state: >> ============== >> (setq >> org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) >> org-link-shell-confirm-function 'yes-or-no-p >> org-babel-after-execute-hook '(bg-org-babel-after-execute-hook) >> org-metadown-hook '(org-babel-pop-to-session-maybe) >> org-export-with-sub-superscripts nil >> org-clock-out-hook '(org-clock-remove-empty-clock-drawer) >> org-refile-targets '((nil :maxlevel . 9) (org-agenda-files :maxlevel . 9)) >> org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function >> org-odt-format-headline-function 'org-odt-format-headline-default-function >> org-agenda-files "/home/brentg/Plans/Home/org-agenda-files-list-file.txt" >> org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default >> org-plantuml-jar-path "/home/brentg/plantuml/plantuml.jar" >> org-startup-folded nil >> org-id-link-to-org-use-id t >> org-mode-hook '(org-tempo-setup org-clock-load bg-org-mode-hook #[0 "\301\211 \207" [imenu-create-index-function org-imenu-get-tree] 2] >> #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-show-all append local] 5] >> #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes org-eldoc-load) >> org-clock-persist t >> org-odt-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"] >> org-archive-hook '(org-attach-archive-delete-maybe) >> org-confirm-elisp-link-function 'bg-org-confirm-elisp-link >> org-agenda-before-write-hook '(org-agenda-add-entry-text) >> org-metaup-hook '(org-babel-load-in-session-maybe) >> org-bibtex-headline-format-function #[257 "\300 \236A\207" [:title] 3 "\n\n(fn ENTRY)"] >> org-adapt-indentation nil >> org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"] >> org-babel-pre-tangle-hook '(save-buffer) >> org-file-apps '((auto-mode . emacs) (directory . emacs) ("\\.mm\\'" . default) ("\\.x?html?\\'" lambda (file link) (browse-url-of-file (expand-file-name file))) ("\\.pdf\\'" . default)) >> org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) >> org-babel-load-languages '((emacs-lisp . t) (python . t) (shell . t) (sqlite . t) (dot . t) (plantuml . t)) >> org-ascii-format-drawer-function #[771 " \207" [] 4 "\n\n(fn NAME CONTENTS WIDTH)"] >> org-agenda-loop-over-headlines-in-active-region nil >> org-src-lang-modes '(("arduino" . arduino) ("redis" . redis) ("php" . php) ("C" . c) ("C++" . c++) ("asymptote" . asy) ("bash" . sh) ("beamer" . latex) ("calc" . fundamental) ("cpp" . c++) ("ditaa" . artist) >> ("dot" . fundamental) ("elisp" . emacs-lisp) ("ocaml" . tuareg) ("screen" . shell-script) ("shell" . sh) ("sqlite" . sql)) >> org-occur-hook '(org-first-headline-recenter) >> org-html-head-include-default-style nil >> org-html-htmlize-output-type 'css >> org-export-headline-levels 100 >> org-edit-src-auto-save-idle-delay 5 >> org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) >> org-todo-keywords '((sequence "TODO(t)" "|" "DONE(d)" "SHELVED(s)" "DELEGATED(e)")) >> org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate) >> org-clock-persist-file "/home/brentg/Plans/Home/org-clock-save.el" >> org-odt-format-inlinetask-function 'org-odt-format-inlinetask-default-function >> org-babel-tangle-lang-exts '(("python" . "py") ("emacs-lisp" . "el") ("elisp" . "el")) >> org-return-follows-link t >> org-refile-use-outline-path 'file >> org-clock-in-hook '(bg-org-clock-in-hook) >> org-export-before-parsing-hook '(org-attach-expand-links) >> org-id-locations-file "/home/brentg/Plans/Home/.org-id-locations" >> org-confirm-shell-link-function 'yes-or-no-p >> org-link-parameters '(("attachment" :follow org-attach-follow :complete org-attach-complete-link) ("id" :follow org-id-open) ("eww" :follow org-eww-open :store org-eww-store-link) >> ("rmail" :follow org-rmail-open :store org-rmail-store-link) ("mhe" :follow org-mhe-open :store org-mhe-store-link) >> ("irc" :follow org-irc-visit :store org-irc-store-link :export org-irc-export) ("info" :follow org-info-open :export org-info-export :store org-info-store-link) >> ("gnus" :follow org-gnus-open :store org-gnus-store-link) ("docview" :follow org-docview-open :export org-docview-export :store org-docview-store-link) >> ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link) ("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete org-bbdb-complete-link :store org-bbdb-store-link) >> ("w3m" :store org-w3m-store-link) ("file+sys") ("file+emacs") ("shell" :follow org-link--open-shell) >> ("news" :follow #[514 "\301\300\302 Q \"\207" ["news" browse-url ":"] 6 "\n\n(fn URL ARG)"]) >> ("mailto" :follow #[514 "\301\300\302 Q \"\207" ["mailto" browse-url ":"] 6 "\n\n(fn URL ARG)"]) >> ("https" :follow #[514 "\301\300\302 Q \"\207" ["https" browse-url ":"] 6 "\n\n(fn URL ARG)"]) >> ("http" :follow #[514 "\301\300\302 Q \"\207" ["http" browse-url ":"] 6 "\n\n(fn URL ARG)"]) >> ("ftp" :follow #[514 "\301\300\302 Q \"\207" ["ftp" browse-url ":"] 6 "\n\n(fn URL ARG)"]) ("help" :follow org-link--open-help) ("file" :complete org-link-complete-file) >> ("elisp" :follow org-link--open-elisp) ("doi" :follow org-link--open-doi)) >> org-latex-format-headline-function 'org-latex-format-headline-default-function >> org-link-elisp-confirm-function 'bg-org-confirm-elisp-link >> org-clock-idle-time 10 >> org-latex-format-inlinetask-function 'org-latex-format-inlinetask-default-function >> org-tab-before-tab-emulation-hook '(org-tempo-complete-tag) >> org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"] >> org-html-format-headline-function 'org-html-format-headline-default-function >> org-confirm-babel-evaluate 'bg-org-confirm-babel-evaluate >> org-directory "/home/brentg/Plans/Home" >> org-publish-project-alist '(("my-emacs-lisp-org" :base-directory "~/emacs_lisp/" :publishing-directory "~/public_html/emacs_lisp" :recursive t :table-of-contents t :base-extension "org" :publishing-function >> org-html-publish-to-html :style-include-default nil :section-numbers t :with-sub-superscript nil :html-head "" >> :author-info nil :creator-info nil) >> ("my-emacs-lisp-extra" :base-directory "~/emacs_lisp/" :publishing-directory "~/public_html/emacs_lisp" :base-extension "css\\|pdf\\|png\\|jpg\\|gif" :publishing-function >> org-publish-attachment :recursive t :author nil) >> ("my-emacs-lisp" :components ("my-emacs-lisp-org" "my-emacs-lisp-extra"))) >> org-default-notes-file "/home/brentg/Plans/Home/notes.org" >> ) -- [ stardiviner ] I try to make every word tell the meaning that I want to express. Blog: https://stardiviner.github.io/ IRC(freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3