From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#41130: bug#41198: 27.0.60; [PATCH] heading cycling command for outline Date: Fri, 16 Oct 2020 11:20:41 +0300 Organization: LINKOV.NET Message-ID: <87v9fatwdi.fsf@mail.linkov.net> References: <452A6049-893A-4E7E-8349-541D276FAD19@gmail.com> <92D944EF-6BF9-4635-AC05-4B51B386D5C7@gmail.com> <878sca7r43.fsf@gnus.org> <87mu0ozntx.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15205"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: 41130@debbugs.gnu.org, Lars Ingebrigtsen , Stefan Kangas , 41198@debbugs.gnu.org To: Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 16 10:27:15 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kTL51-0003pD-Up for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Oct 2020 10:27:15 +0200 Original-Received: from localhost ([::1]:50410 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kTL50-0008Rg-W1 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Oct 2020 04:27:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54420) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kTL4o-0008QB-UT for bug-gnu-emacs@gnu.org; Fri, 16 Oct 2020 04:27:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46042) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kTL4o-0001aZ-Kg for bug-gnu-emacs@gnu.org; Fri, 16 Oct 2020 04:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kTL4o-0005Wn-Ht for bug-gnu-emacs@gnu.org; Fri, 16 Oct 2020 04:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Oct 2020 08:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41130 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 41130-submit@debbugs.gnu.org id=B41130.160283676921170 (code B ref 41130); Fri, 16 Oct 2020 08:27:02 +0000 Original-Received: (at 41130) by debbugs.gnu.org; 16 Oct 2020 08:26:09 +0000 Original-Received: from localhost ([127.0.0.1]:57585 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTL3w-0005VN-M7 for submit@debbugs.gnu.org; Fri, 16 Oct 2020 04:26:08 -0400 Original-Received: from relay7-d.mail.gandi.net ([217.70.183.200]:46819) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTL3u-0005UH-Go; Fri, 16 Oct 2020 04:26:07 -0400 X-Originating-IP: 91.129.102.160 Original-Received: from mail.gandi.net (m91-129-102-160.cust.tele2.ee [91.129.102.160]) (Authenticated sender: juri@linkov.net) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id A5C6820014; Fri, 16 Oct 2020 08:25:57 +0000 (UTC) In-Reply-To: (Yuan Fu's message of "Thu, 15 Oct 2020 19:33:39 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:190668 Archived-At: >> Now finally org keys are available in etc/NEWS, nice! >> But typing S-TAB at the beginning of etc/NEWS signals the error: >> >> Debugger entered--Lisp error: (error "Before first heading") >> signal(error ("Before first heading")) >> >> This is not how org-mode works - S-TAB doesn't fail before first heading >> in org-mode. > > Do you suggest to change it to a user-error? Or just be silent? To imitate org-mode, maybe outline-mode could temporarily (i.e. by using save-excursion) navigate to the first heading before running the rest of outline-cycle-buffer when it's before first heading? Thank you for this nice feature!