From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.devel Subject: Re: Cycling first N heading levels in outline Date: Sun, 23 May 2021 18:21:35 +0800 Message-ID: <87r1hxu4wg.fsf@localhost> References: <87wnrqt5re.fsf@localhost> <87tumtu6jl.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6848"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Christopher Dimech Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 23 12:17:53 2021 Return-path: Envelope-to: ged-emacs-devel@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 1lklBA-0001cC-UT for ged-emacs-devel@m.gmane-mx.org; Sun, 23 May 2021 12:17:52 +0200 Original-Received: from localhost ([::1]:47816 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lklB8-0005fB-TN for ged-emacs-devel@m.gmane-mx.org; Sun, 23 May 2021 06:17:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lklAA-0004ww-Uh for emacs-devel@gnu.org; Sun, 23 May 2021 06:16:50 -0400 Original-Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]:35426) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lklA9-0003so-75 for emacs-devel@gnu.org; Sun, 23 May 2021 06:16:50 -0400 Original-Received: by mail-pj1-x1029.google.com with SMTP id lx17-20020a17090b4b11b029015f3b32b8dbso7852794pjb.0 for ; Sun, 23 May 2021 03:16:48 -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:cc:date:message-id :mime-version; bh=BWl8NkS8JeDmTYFVkXy34iPExdDZnn0ggfbdso0UrYY=; b=pZpv4/AedrI8gFdgzkEOkBv6ASuDNRRCCJv7xMOs+gmJKR84F+zevC4A7bwHiX7+Rq x6iIgldBok/H+yNwd3biRGN9pzy2DJrs+p/Dr/ENzkj0D2ckxItAG6lw2shqLq+4VEyi VRUmskDz2hVQqJerSffzaA/mfJwZ9c169M/el4B/QQjPyq7KcCJYTfQN3GvT4hxrvfkI kAqZZxltyns77s+A7iq3YAwmUqJ75Bck7gjx6l4iMSSJVM36N2Y2RodNamQEi6OA4R8L 9cD5n7FwobVNx9g9evTYdm/CsH+jY1FHjy2hQJkzV8MaPCmbSVTJ5wZP/M8lcuz+R5A0 vmpw== 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:cc:date :message-id:mime-version; bh=BWl8NkS8JeDmTYFVkXy34iPExdDZnn0ggfbdso0UrYY=; b=F2P/foFwe+vw8bu40iMLA3eB/3M0YR3QBkekS7N2oR4Zdr7/M/gyaY+a5jtJUnjKeT dJJL1sdH49+3AQxTX1Bn0pG0dfdUL2wlIOATXnBWtxisB1CAZ2zB5tUm8Xo8Aa00FGQ6 WKjQewE8aO3FC1Fo77DNKbx2TEh5fYgEUpapyTAy1T+EXkfvjwNgaGbC4KceuvZsXFws qbROCuNAVhdx2qliBMHqLY0vsnV/ko4RuWQvuVb+D+5/9d8p5h5tsYX04bc+lyRel7Yy 206n/7TUkWy/xUsKPSYN4BPpj553hKxwcxJkG1IvxY+HcPxHlWQ/St2DRZaM5/uB+ucE 2GXQ== X-Gm-Message-State: AOAM532YdIqUNOfjB9bMMhUvaeXEWgKcvdYeLWTR7ZuqtdyeUbCExyFO np5YDrzz7MhsI/EW/+hdGwk= X-Google-Smtp-Source: ABdhPJxNpqCTeL6pugpoi/Owwe3FPtcpiArTxN3p0SQoTFygYGMySbYRfh35OrqaHGEJ00ebn+I6Lg== X-Received: by 2002:a17:90a:62c1:: with SMTP id k1mr19446436pjs.151.1621765007610; Sun, 23 May 2021 03:16:47 -0700 (PDT) Original-Received: from localhost ([104.250.131.79]) by smtp.gmail.com with ESMTPSA id gg10sm7440867pjb.49.2021.05.23.03.16.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 May 2021 03:16:46 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::1029; envelope-from=yantar92@gmail.com; helo=mail-pj1-x1029.google.com 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_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:269660 Archived-At: Christopher Dimech writes: >> Hmm. Have you tried org-shifttab (bound to S-)? It operates >> globally across the buffer. > > I rather keep things to outline-minor-mode than apply org functionality. Originally, > Was using org-mode as the major buffer but that removed programming highlighting. > Outline should take care of such things itself rather than workarounds with org > functionality. Sorry, I actually mixed this message with org mailing list because of the contents. I initially though that you referred to org. As for highlighting issue, please report is as a bug if you think that Org does something wrongly. >> Also, there is outline-hide-sublevels. When called with prefix argument, >> it will display sublevels from level 1 up until the level equal to the >> prefix argument. > > But LEVELS defaults to the level of the *current heading* or to 1 if the > *current line is not a heading*. This means I got to go to a heading. > > The problem occurs for long files, because I am forces to navigate the file. > If the heading level is deep, it is difficult to search through. Yet, with *numeric* prefix argument it will forcefully show all the levels between 1 and number passed as prefix argument. Best, Ihor