From unknown Sun Sep 21 03:01:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50679: 28.0.50; outline-minor-mode-cycle should be able to only cycle at the begining of a line Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Sep 2021 16:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 50679 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 50679@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16320686799088 (code B ref -1); Sun, 19 Sep 2021 16:25:02 +0000 Received: (at submit) by debbugs.gnu.org; 19 Sep 2021 16:24:39 +0000 Received: from localhost ([127.0.0.1]:39665 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRzcM-0002MV-TB for submit@debbugs.gnu.org; Sun, 19 Sep 2021 12:24:39 -0400 Received: from lists.gnu.org ([209.51.188.17]:55212) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRzcK-0002MM-2A for submit@debbugs.gnu.org; Sun, 19 Sep 2021 12:24:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41580) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRzcJ-0004Eu-Ep for bug-gnu-emacs@gnu.org; Sun, 19 Sep 2021 12:24:35 -0400 Received: from mout01.posteo.de ([185.67.36.65]:52439) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRzcB-0000S7-12 for bug-gnu-emacs@gnu.org; Sun, 19 Sep 2021 12:24:35 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 91FA124002B for ; Sun, 19 Sep 2021 18:24:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1632068662; bh=c7OOgIQUrgUGEC3VGcEYlEqn5Drjm0Q1pH2lQhcC92M=; h=From:To:Subject:Autocrypt:Date:From; b=Tide3Di2TRfhdPZjTnGt1znbv1A/ac6//sdGoG3mZhM5NpfCb/7NvhZj83QhhrpOF U3wa+KDW8bBkjb9w9NzQdSXVWaIykumgtkzzmAaAfqeeF3yJ+zmjsReCPyCTYC3Es4 SLc0Y0ISJZhVkWoslG9Jn/NdiNEDjK9QTXIoGni0sDOQ0PkfDF06cG0it+baUhxpvO J8M+G0aSUZijUnLpvOJHVxNpNfYW8H08OvgnPhR2zhdQ2xC5sreI7Oxbo+tDedJ/2Z U47vrYjSFh6APWpL388AXNI7E4Y488wUtf8Oye+FE2n/cUedgMqNmtJR79cOR///IE NaLVKgzNRxWUA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HCCgp13dxz9rxD for ; Sun, 19 Sep 2021 18:24:21 +0200 (CEST) From: Philip Kaludercic Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB Date: Sun, 19 Sep 2021 16:24:21 +0000 Message-ID: <87r1dkv8i2.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=philipk@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) I like the new outline-minor-mode-cycle option, but it becomes annoying in combination with tab-always-indent set to 'complete, because outline takes over, even if I don't expect it. Replacing the (outline-on-heading-p) check with (looking-at outline-regexp) or (and (bolp) (looking-at outline-regexp)) improves the experience for me, but I am not sure if this is a general improvement. Could it make sense to have this as a configurable option, or check the value of tab-always-indent and DWIM? In GNU Emacs 28.0.50 (build 12, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw scroll bars) of 2021-09-18 built on icterid Repository revision: 2557c009bb1b7b9bc001aee5e6cd1c0054de83d6 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: Debian GNU/Linux 11 (bullseye) Configured using: 'configure LDFLAGS=-flto 'CFLAGS=-O2 -march=native -mtune=native -pipe' --with-native-compilation PKG_CONFIG_PATH=' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM LUCID ZLIB Important settings: value of $EMACSLOADPATH: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Outline Minor modes in effect: shell-dirtrack-mode: t bug-reference-mode: t flyspell-mode: t display-time-mode: t winner-mode: t windmove-mode: t electric-pair-mode: t recentf-mode: t save-place-mode: t savehist-mode: t show-paren-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tab-bar-mode: t file-name-shadow-mode: t context-menu-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t temp-buffer-resize-mode: t buffer-read-only: t line-number-mode: t auto-fill-function: do-auto-fill indent-tabs-mode: t transient-mark-mode: t view-mode: t Load-path shadows: /home/philip/.config/emacs/elpa/transient-0.3.6/transient hides /home/philip/Code/src/emacs/lisp/transient ~/.config/emacs/site-lisp/autoload hides /home/philip/Code/src/emacs/lisp/emacs-lisp/autoload Features: (shadow slime-tests slime hyperspec mm-archive smiley gnus-cite gnus-async gnus-bcklg qp gnus-ml disp-table mode-local ert-x ert ewoc emacsbug repeat mhtml-mode css-mode smie eww url-queue mm-url js imenu sgml-mode facemenu arc-mode archive-mode autorevert filenotify doc-view image-mode exif mailalias bbdb-pgp sort bbdb-message mail-extr autocrypt-message autocrypt-gnus autocrypt nndraft nnmh epa-file gnutls network-stream nsm nnmaildir nnfolder bbdb-gnus bbdb-mua bbdb-com nnnil gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig nntp gnus-cache gnus-sum shr kinsoku svg dom gnus-group gnus-undo gnus-start gnus-dbus dbus xml gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo parse-time iso8601 gnus-spec gnus-int gnus-range message rmc puny rfc822 mml mml-sec epa epg rfc6068 epg-config mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader gnus-win ffap crdt xdg completion vc-mtn vc-hg vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs grep magit-utils crm dash jka-compr apropos cl-print debug backtrace mule-util compat smerge-mode add-log scroll-all follow etags fileloop generator view shell char-fold eieio-opt speedbar ezimage dframe shortdoc org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete pcomplete org-list org-faces org-entities org-version ob-emacs-lisp ob-core ob-eval org-table ol org-keys org-compat advice org-macs org-loaddefs format-spec allout cus-edit cus-start reposition avy time-stamp flymake-cc pulse color vc-git diff-mode bug-reference macrostep-c cmacexp macrostep pp cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs find-func xref misearch multi-isearch help-at-pt vc-backup log-view pcvs-util diff vc-fossil vc vc-dispatcher dired-aux paredit corfu checkdoc flymake-proc flymake project thingatpt flyspell ispell noutline outline easy-mmode comp comp-cstr warnings cl-extra gnus-dired dired-x dired dired-loaddefs rx time bbdb derived bbdb-site timezone sendmail gnus nnheader gnus-util rmail rmail-loaddefs time-date mail-utils hippie-exp winner windmove elec-pair recentf tree-widget wid-edit saveplace savehist paren modus-operandi-theme modus-themes pcase edmacro kmacro holidays hol-loaddefs cal-menu calendar cal-loaddefs cus-load setup load compile text-property-search comint ansi-color autoload lisp-mnt mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr tex-site geiser-impl help-fns radix-tree help-mode geiser-custom geiser-base ring slime-autoloads info package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo x-toolkit x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 897653 621228) (symbols 48 42429 70) (strings 32 169188 70225) (string-bytes 1 5972522) (vectors 16 84010) (vector-slots 8 2108446 801160) (floats 8 648 1092) (intervals 56 28827 11991) (buffers 992 60)) -- Philip K. From unknown Sun Sep 21 03:01:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50679: 28.0.50; outline-minor-mode-cycle should be able to only cycle at the begining of a line Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Sep 2021 16:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50679 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Philip Kaludercic Cc: 50679@debbugs.gnu.org Received: via spool by 50679-submit@debbugs.gnu.org id=B50679.163207045628971 (code B ref 50679); Sun, 19 Sep 2021 16:55:01 +0000 Received: (at 50679) by debbugs.gnu.org; 19 Sep 2021 16:54:16 +0000 Received: from localhost ([127.0.0.1]:39754 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mS052-0007XC-J4 for submit@debbugs.gnu.org; Sun, 19 Sep 2021 12:54:16 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:32445) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mS04z-0007Ws-GQ for 50679@debbugs.gnu.org; Sun, 19 Sep 2021 12:54:14 -0400 Received: (Authenticated sender: juri@linkov.net) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 4AC07240003; Sun, 19 Sep 2021 16:54:04 +0000 (UTC) From: Juri Linkov Organization: LINKOV.NET References: <87r1dkv8i2.fsf@posteo.net> Date: Sun, 19 Sep 2021 19:53:11 +0300 In-Reply-To: <87r1dkv8i2.fsf@posteo.net> (Philip Kaludercic's message of "Sun, 19 Sep 2021 16:24:21 +0000") Message-ID: <87mto8h5hk.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > I like the new outline-minor-mode-cycle option, but it becomes annoying > in combination with tab-always-indent set to 'complete, because outline > takes over, even if I don't expect it. This is a known problem without a good solution. It misbehaves even when tab-always-indent is set to 't'. > Replacing the (outline-on-heading-p) check with > > (looking-at outline-regexp) > > or > > (and (bolp) (looking-at outline-regexp)) > > improves the experience for me, but I am not sure if > this is a general improvement. Could it make sense to have this as a > configurable option, or check the value of tab-always-indent and DWIM? So you propose to cycle only at the beginning of the line? But when tab-always-indent is set to 't', sometimes typing TAB at the beginning of the line is expected to indent the line instead of cycling outlines. From unknown Sun Sep 21 03:01:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50679: 28.0.50; outline-minor-mode-cycle should be able to only cycle at the begining of a line Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Sep 2021 20:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50679 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov Cc: 50679@debbugs.gnu.org Received: via spool by 50679-submit@debbugs.gnu.org id=B50679.163208401827649 (code B ref 50679); Sun, 19 Sep 2021 20:41:02 +0000 Received: (at 50679) by debbugs.gnu.org; 19 Sep 2021 20:40:18 +0000 Received: from localhost ([127.0.0.1]:40084 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mS3bm-0007Bt-1J for submit@debbugs.gnu.org; Sun, 19 Sep 2021 16:40:18 -0400 Received: from mout02.posteo.de ([185.67.36.66]:43795) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mS3bi-0007BZ-DO for 50679@debbugs.gnu.org; Sun, 19 Sep 2021 16:40:16 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id ED78F240101 for <50679@debbugs.gnu.org>; Sun, 19 Sep 2021 22:40:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1632084008; bh=efHVFbECX0lyrlcY4i+cTGUisiV7H2f+GNU+iMZ1zA4=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=TgZ6zccrn7LKUz7zvaddfQiUJc/uC8NngIN3q/PNPeKsAz6Lm/GvOh+Ew6njFmCL7 +RlFCuUcHUPGko0rok7q2USArXybx0hOR1+woORYUSIun5PEST/+Fg9p0BGtUyx0yD m0q0XM4I3TTor0ffLXmSUoIOiUOacuOzrdqKYLG1myfF6HyNGgwMz8s7qdb/45O/cl qjTjiTnxCD0RjkUPDcwR+p/aQ8Dx2h2hzVhsiLiJkUPcA1R/e19lPvkcjlQGMnGuu9 J0IQh5XdbUNz+MP+kz+PgUnrE9vHy3UTegt7Qe5Orv/5CEwd3LcXIVAAvVXkd3QaMk E29DKLnZcZVCg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HCKLv0F6Hz6tmM; Sun, 19 Sep 2021 22:40:06 +0200 (CEST) From: Philip Kaludercic References: <87r1dkv8i2.fsf@posteo.net> <87mto8h5hk.fsf@mail.linkov.net> Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB Date: Sun, 19 Sep 2021 20:40:05 +0000 In-Reply-To: <87mto8h5hk.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 19 Sep 2021 19:53:11 +0300") Message-ID: <87mto8uwnu.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Juri Linkov writes: >> Replacing the (outline-on-heading-p) check with >> >> (looking-at outline-regexp) >> >> or >> >> (and (bolp) (looking-at outline-regexp)) >> >> improves the experience for me, but I am not sure if >> this is a general improvement. Could it make sense to have this as a >> configurable option, or check the value of tab-always-indent and DWIM? > > So you propose to cycle only at the beginning of the line? > But when tab-always-indent is set to 't', sometimes typing TAB > at the beginning of the line is expected to indent the line > instead of cycling outlines. I didn't necessarily propose anything, it might only be able to solve this using a option like (defcustom outline-minor-mode-cycle-predicate ...) as to allow for users to configure cycling as they see fit. Of course if some consistent behaviour could be found that respects other options and modes, then something automatic could also be used. -- Philip Kaludercic From unknown Sun Sep 21 03:01:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50679: 28.0.50; outline-minor-mode-cycle should be able to only cycle at the begining of a line Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Sep 2021 07:12:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50679 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Philip Kaludercic Cc: 50679@debbugs.gnu.org Received: via spool by 50679-submit@debbugs.gnu.org id=B50679.16321218679369 (code B ref 50679); Mon, 20 Sep 2021 07:12:03 +0000 Received: (at 50679) by debbugs.gnu.org; 20 Sep 2021 07:11:07 +0000 Received: from localhost ([127.0.0.1]:40858 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSDSE-0002Qx-QN for submit@debbugs.gnu.org; Mon, 20 Sep 2021 03:11:07 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:59183) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSDS2-0002PV-Rm for 50679@debbugs.gnu.org; Mon, 20 Sep 2021 03:10:55 -0400 Received: (Authenticated sender: juri@linkov.net) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 969C210000D; Mon, 20 Sep 2021 07:10:47 +0000 (UTC) From: Juri Linkov Organization: LINKOV.NET References: <87r1dkv8i2.fsf@posteo.net> <87mto8h5hk.fsf@mail.linkov.net> <87mto8uwnu.fsf@posteo.net> Date: Mon, 20 Sep 2021 10:02:43 +0300 In-Reply-To: <87mto8uwnu.fsf@posteo.net> (Philip Kaludercic's message of "Sun, 19 Sep 2021 20:40:05 +0000") Message-ID: <87fstzn2zw.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > I didn't necessarily propose anything, it might only be able to solve > this using a option like > > (defcustom outline-minor-mode-cycle-predicate ...) > > as to allow for users to configure cycling as they see fit. Of course if > some consistent behaviour could be found that respects other options and > modes, then something automatic could also be used. Probably offloading the decision to the users with a customizable option is all what we can do here, indeed. From unknown Sun Sep 21 03:01:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50679: 28.0.50; outline-minor-mode-cycle should be able to only cycle at the begining of a line Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Sep 2021 15:29:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50679 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Philip Kaludercic Cc: 50679@debbugs.gnu.org Received: via spool by 50679-submit@debbugs.gnu.org id=B50679.16321517427595 (code B ref 50679); Mon, 20 Sep 2021 15:29:03 +0000 Received: (at 50679) by debbugs.gnu.org; 20 Sep 2021 15:29:02 +0000 Received: from localhost ([127.0.0.1]:43856 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSLE5-0001yD-Kc for submit@debbugs.gnu.org; Mon, 20 Sep 2021 11:29:02 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:48987) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSLE2-0001xW-Qi for 50679@debbugs.gnu.org; Mon, 20 Sep 2021 11:28:59 -0400 Received: (Authenticated sender: juri@linkov.net) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id B9C7E1C0004; Mon, 20 Sep 2021 15:28:51 +0000 (UTC) From: Juri Linkov Organization: LINKOV.NET References: <87r1dkv8i2.fsf@posteo.net> <87mto8h5hk.fsf@mail.linkov.net> <87mto8uwnu.fsf@posteo.net> <87fstzn2zw.fsf@mail.linkov.net> Date: Mon, 20 Sep 2021 18:25:09 +0300 In-Reply-To: <87fstzn2zw.fsf@mail.linkov.net> (Juri Linkov's message of "Mon, 20 Sep 2021 10:02:43 +0300") Message-ID: <87y27rpi4q.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >> I didn't necessarily propose anything, it might only be able to solve >> this using a option like >> >> (defcustom outline-minor-mode-cycle-predicate ...) >> >> as to allow for users to configure cycling as they see fit. Of course if >> some consistent behaviour could be found that respects other options and >> modes, then something automatic could also be used. > > Probably offloading the decision to the users with a customizable option > is all what we can do here, indeed. Maybe something like: (defvar outline-mode-cycle-map (let ((map (make-sparse-keymap))) (let ((tab-binding `(menu-item "" outline-cycle ;; Only takes effect if point is on a heading. :filter ,(lambda (cmd) - (when (outline-on-heading-p) cmd))))) + (when (and (outline-on-heading-p) + (or (not (functionp outline-mode-cycle-filter)) + (funcall outline-mode-cycle-filter))) + cmd))))) (define-key map (kbd "TAB") tab-binding) (define-key map (kbd "") #'outline-cycle-buffer)) map) Then you can customize it to 'bolp'. From unknown Sun Sep 21 03:01:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50679: 28.0.50; outline-minor-mode-cycle should be able to only cycle at the begining of a line Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Sep 2021 15:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50679 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov Cc: 50679@debbugs.gnu.org Received: via spool by 50679-submit@debbugs.gnu.org id=B50679.16321521158550 (code B ref 50679); Mon, 20 Sep 2021 15:36:01 +0000 Received: (at 50679) by debbugs.gnu.org; 20 Sep 2021 15:35:15 +0000 Received: from localhost ([127.0.0.1]:43886 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSLK7-0002Dq-ET for submit@debbugs.gnu.org; Mon, 20 Sep 2021 11:35:15 -0400 Received: from mout01.posteo.de ([185.67.36.65]:53745) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSLK4-0002DS-JE for 50679@debbugs.gnu.org; Mon, 20 Sep 2021 11:35:13 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 3E018240028 for <50679@debbugs.gnu.org>; Mon, 20 Sep 2021 17:35:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1632152106; bh=C4OHLJK8OV2PL2R1NUrSOr/icxWtTtV3rt0e66UuxBE=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=me+PeEqRnE7W4ShSLEab3FevOwg8xZhG8oUn9G7HE/sUG38YdE5C30o/aHIpZJXg9 F9eRv5IeSSch1d7i1wo41/59ZF9PQoF4op9l9hDn73zLA6GIg84IrXgj+Tw+dQy07A JaUwslpVRBJE+a15UpcfI77+xgOUqpG9lRz51bNctEpL983IETx4jFQ+zcqke9hlpO T0Aft/HR+wbOxokCrJ/5JxBOyBLy283CL4EukVdNZuWRS05hG5AHiUxA42T09vIUbr +3GbdPt1oSyRxwaA5ZPpJ12Bo/zg8P7povjCd+ri+ggUtkkOqlZdfoL6CiGDpLWZV6 IMF4v1g4L0XaQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HCpXT2LPLz6tmM; Mon, 20 Sep 2021 17:35:05 +0200 (CEST) From: Philip Kaludercic References: <87r1dkv8i2.fsf@posteo.net> <87mto8h5hk.fsf@mail.linkov.net> <87mto8uwnu.fsf@posteo.net> <87fstzn2zw.fsf@mail.linkov.net> <87y27rpi4q.fsf@mail.linkov.net> Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB Date: Mon, 20 Sep 2021 15:35:04 +0000 In-Reply-To: <87y27rpi4q.fsf@mail.linkov.net> (Juri Linkov's message of "Mon, 20 Sep 2021 18:25:09 +0300") Message-ID: <87bl4nuuon.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Juri Linkov writes: >>> I didn't necessarily propose anything, it might only be able to solve >>> this using a option like >>> >>> (defcustom outline-minor-mode-cycle-predicate ...) >>> >>> as to allow for users to configure cycling as they see fit. Of course if >>> some consistent behaviour could be found that respects other options and >>> modes, then something automatic could also be used. >> >> Probably offloading the decision to the users with a customizable option >> is all what we can do here, indeed. > > Maybe something like: > > (defvar outline-mode-cycle-map > (let ((map (make-sparse-keymap))) > (let ((tab-binding `(menu-item > "" outline-cycle > ;; Only takes effect if point is on a heading. > :filter ,(lambda (cmd) > - (when (outline-on-heading-p) cmd))))) > + (when (and (outline-on-heading-p) > + (or (not (functionp outline-mode-cycle-filter)) > + (funcall outline-mode-cycle-filter))) > + cmd))))) > (define-key map (kbd "TAB") tab-binding) > (define-key map (kbd "") #'outline-cycle-buffer)) > map) > > Then you can customize it to 'bolp'. I just tried it out, and it looks good. The only thing I wonder is if this should apply to both outline-minor-mode and outline-mode? -- Philip Kaludercic From unknown Sun Sep 21 03:01:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50679: 28.0.50; outline-minor-mode-cycle should be able to only cycle at the begining of a line Resent-From: Augusto Stoffel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Sep 2021 18:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50679 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Philip Kaludercic Cc: 50679@debbugs.gnu.org, Juri Linkov Received: via spool by 50679-submit@debbugs.gnu.org id=B50679.163216302331211 (code B ref 50679); Mon, 20 Sep 2021 18:38:02 +0000 Received: (at 50679) by debbugs.gnu.org; 20 Sep 2021 18:37:03 +0000 Received: from localhost ([127.0.0.1]:44013 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSOA3-00087L-Ff for submit@debbugs.gnu.org; Mon, 20 Sep 2021 14:37:03 -0400 Received: from mail-wr1-f47.google.com ([209.85.221.47]:38594) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSOA2-00086m-4U for 50679@debbugs.gnu.org; Mon, 20 Sep 2021 14:37:02 -0400 Received: by mail-wr1-f47.google.com with SMTP id u18so30676554wrg.5 for <50679@debbugs.gnu.org>; Mon, 20 Sep 2021 11:37:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=YPbytUYo+GucrkEnWPAtgKj1fwMSqiPDRAuaqECNQUc=; b=QyAPQ3RKfTj6pbSB/rp/QmYzz2Fn6WLd/zzRmFq7eylrQKxnutsd/AbmnyVVIU4wM9 eMdpLl0XPRnZUI0ZmSBzlCOyCpyj5ryHPPZ38uWOA7rcG97MzjLiEhm2lGdhuweudEM+ +Na/b6ENtus5gWNaE3Tg/r9lY//Yyp8fAHhDpnRPAjIBOT9fqNdj4oJA/AX4E2ywHZWN Ffp2S0XHLgmX0tNU2LddMAbYMvHyzNWfVNiRqAwSGGzoff4KaiacIZUYkiDb6LlGxp2g 1A/s351TOazTH6XCWmp8/+BFMiQMYfyIpzsJL77Z6gvsETfJcwe4bhUagmzDaNTbK71C xYsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=YPbytUYo+GucrkEnWPAtgKj1fwMSqiPDRAuaqECNQUc=; b=vZafzlutcNVOcH64DzkmxMqPR4MZSggVVrfbddIutfUTOCRYHT82QT/x788T+aEYLy +p4huc9K5fGx8ihBzSvNwaIXIUVohQU2a+e5iNlq3AMUU18Le3MQRuDpC8wl08RYbCp3 fc0hV/KtGdUzdDMkrNPUvSt/F0A8dh/fKvXkP8SH+J6dtsDutZlXhQ245DkYg7rW2YU2 7aRDe0oZUwWhTxSA1/OTQ+PV3OXJQiHT/68A2vHnsuyRePMIP4g/FNudTWtS/8N0j9Pl CIefnyitWdJDmT1Z/ns4h+MlbhnDqpn8ce67i3mnb4E1udoZRyU068ze1Yhhl3Io1x0b 7jHw== X-Gm-Message-State: AOAM532RQ/7CAFkTKzNXc5D50nSg6A39FBlVLlZTLqw/OBgEGPaKTOaU uNObRZU1DFHAvXEYru6fOMLBNp17sro= X-Google-Smtp-Source: ABdhPJyQaGRCRoSRTnjsK1IHUGuExsG1zjt/gaXso7kkVQQ38yhex/tqhTVcwcS5QcKVS7OS2U4fWQ== X-Received: by 2002:a5d:43d2:: with SMTP id v18mr30288199wrr.98.1632163015816; Mon, 20 Sep 2021 11:36:55 -0700 (PDT) Received: from ars3 ([2a02:8109:8ac0:56d0::2f72]) by smtp.gmail.com with ESMTPSA id v21sm11804185wrv.3.2021.09.20.11.36.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Sep 2021 11:36:55 -0700 (PDT) From: Augusto Stoffel References: <87r1dkv8i2.fsf@posteo.net> <87mto8h5hk.fsf@mail.linkov.net> <87mto8uwnu.fsf@posteo.net> <87fstzn2zw.fsf@mail.linkov.net> <87y27rpi4q.fsf@mail.linkov.net> <87bl4nuuon.fsf@posteo.net> Date: Mon, 20 Sep 2021 20:36:54 +0200 In-Reply-To: <87bl4nuuon.fsf@posteo.net> (Philip Kaludercic's message of "Mon, 20 Sep 2021 15:35:04 +0000") Message-ID: <87mto73xh5.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Mon, 20 Sep 2021 at 15:35, Philip Kaludercic wrote: > Juri Linkov writes: > >>>> I didn't necessarily propose anything, it might only be able to solve >>>> this using a option like >>>> >>>> (defcustom outline-minor-mode-cycle-predicate ...) >>>> >>>> as to allow for users to configure cycling as they see fit. Of course = if >>>> some consistent behaviour could be found that respects other options a= nd >>>> modes, then something automatic could also be used. >>> >>> Probably offloading the decision to the users with a customizable option >>> is all what we can do here, indeed. >> >> Maybe something like: >> >> (defvar outline-mode-cycle-map >> (let ((map (make-sparse-keymap))) >> (let ((tab-binding `(menu-item >> "" outline-cycle >> ;; Only takes effect if point is on a heading. >> :filter ,(lambda (cmd) >> - (when (outline-on-heading-p) cmd)))= )) >> + (when (and (outline-on-heading-p) >> + (or (not (functionp outl= ine-mode-cycle-filter)) >> + (funcall outline-mod= e-cycle-filter))) >> + cmd))))) >> (define-key map (kbd "TAB") tab-binding) >> (define-key map (kbd "") #'outline-cycle-buffer)) >> map) >> >> Then you can customize it to 'bolp'. > > I just tried it out, and it looks good. The only thing I wonder is if > this should apply to both outline-minor-mode and outline-mode? FWIW, I think it would be nice to provide a simple way to define other =E2=80=9Cspeed keys=E2=80=9D in `outline-minor-mode [1], or even provide so= me pre-configured ones [2]. Looking at the code, it seems that adding bindings to `outline-mode-cycle-map` would achieve precisely that, but the name of the keymap doesn't reflect that. [1]: Cf. https://orgmode.org/manual/Speed-Keys.html [2]: I personally use these speed keys in outline-minor-mode, which are probably very similar to those from Org mode: "" 'outline-cycle "" 'outline-cycle-buffer "f" 'outline-forward-same-level "b" 'outline-backward-same-level "n" 'outline-next-visible-heading "p" 'outline-previous-visible-heading "u" 'outline-up-heading "F" 'outline-move-subtree-down "B" 'outline-move-subtree-up "@" 'outline-mark-subtree From unknown Sun Sep 21 03:01:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50679: 28.0.50; outline-minor-mode-cycle should be able to only cycle at the begining of a line Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Sep 2021 11:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50679 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Augusto Stoffel Cc: 50679@debbugs.gnu.org, Juri Linkov Received: via spool by 50679-submit@debbugs.gnu.org id=B50679.16322236496804 (code B ref 50679); Tue, 21 Sep 2021 11:28:02 +0000 Received: (at 50679) by debbugs.gnu.org; 21 Sep 2021 11:27:29 +0000 Received: from localhost ([127.0.0.1]:45088 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSdvt-0001lg-EA for submit@debbugs.gnu.org; Tue, 21 Sep 2021 07:27:29 -0400 Received: from mout02.posteo.de ([185.67.36.66]:53873) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSdvq-0001lO-9O for 50679@debbugs.gnu.org; Tue, 21 Sep 2021 07:27:27 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id BE75C240103 for <50679@debbugs.gnu.org>; Tue, 21 Sep 2021 13:27:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1632223639; bh=Fc0qGtgQihIECG9Ngrl1stF8br5M3gWcx+6efhh9hq4=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=qHc7ENgH4VndwJfwu+pd9LhQ0rKFmUqM2HqutrX0+TsZku70+7wSjWpuybtQgoJwc kCmSZrLxqC914o2FEmW3L8k2c+BDggOv9d3GHQJu1jl3Q1HqPmm5J8DH4NLj+q9Mv3 c1fauuIU7trQF/QvWqYtnLNCiRjqAkX8kkjbyZPIcnNytuMJCdv0lIUKzSztAhNKZg Z3dG9i9onTZMNcS7x9d3dgIyfzqqgKXgBt6CYDhtl63spHy+QIGS111Q/VzDOhnfkt z5qKoEzH1w+P8SucgKzD2vkSleOGJMTLdnrYDp4wyk5+32AZCyK0JlFjDbYDLspw+q d5tsDXEgvrX7Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HDK064w7wz9rxD; Tue, 21 Sep 2021 13:27:18 +0200 (CEST) From: Philip Kaludercic References: <87r1dkv8i2.fsf@posteo.net> <87mto8h5hk.fsf@mail.linkov.net> <87mto8uwnu.fsf@posteo.net> <87fstzn2zw.fsf@mail.linkov.net> <87y27rpi4q.fsf@mail.linkov.net> <87bl4nuuon.fsf@posteo.net> <87mto73xh5.fsf@gmail.com> Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB Date: Tue, 21 Sep 2021 11:27:18 +0000 In-Reply-To: <87mto73xh5.fsf@gmail.com> (Augusto Stoffel's message of "Mon, 20 Sep 2021 20:36:54 +0200") Message-ID: <87k0jatbhl.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Augusto Stoffel writes: > On Mon, 20 Sep 2021 at 15:35, Philip Kaludercic wrot= e: > >> Juri Linkov writes: >> >>>>> I didn't necessarily propose anything, it might only be able to solve >>>>> this using a option like >>>>> >>>>> (defcustom outline-minor-mode-cycle-predicate ...) >>>>> >>>>> as to allow for users to configure cycling as they see fit. Of course= if >>>>> some consistent behaviour could be found that respects other options = and >>>>> modes, then something automatic could also be used. >>>> >>>> Probably offloading the decision to the users with a customizable opti= on >>>> is all what we can do here, indeed. >>> >>> Maybe something like: >>> >>> (defvar outline-mode-cycle-map >>> (let ((map (make-sparse-keymap))) >>> (let ((tab-binding `(menu-item >>> "" outline-cycle >>> ;; Only takes effect if point is on a heading. >>> :filter ,(lambda (cmd) >>> - (when (outline-on-heading-p) cmd))= ))) >>> + (when (and (outline-on-heading-p) >>> + (or (not (functionp out= line-mode-cycle-filter)) >>> + (funcall outline-mo= de-cycle-filter))) >>> + cmd))))) >>> (define-key map (kbd "TAB") tab-binding) >>> (define-key map (kbd "") #'outline-cycle-buffer)) >>> map) >>> >>> Then you can customize it to 'bolp'. >> >> I just tried it out, and it looks good. The only thing I wonder is if >> this should apply to both outline-minor-mode and outline-mode? > > FWIW, I think it would be nice to provide a simple way to define other > =E2=80=9Cspeed keys=E2=80=9D in `outline-minor-mode [1], or even provide = some > pre-configured ones [2]. > > Looking at the code, it seems that adding bindings to > `outline-mode-cycle-map` would achieve precisely that, but the name > of the keymap doesn't reflect that. I would appreciate something like this too, but you are right that it sounds like a separate functionality. Compared to outline-mode-cycle-map, this would most certainly have to operate on the beginning of a line, otherwise apparently random keys would suddenly throw the user around without them expecting it. > [1]: Cf. https://orgmode.org/manual/Speed-Keys.html > > [2]: I personally use these speed keys in outline-minor-mode, which are > probably very similar to those from Org mode: > > "" 'outline-cycle > "" 'outline-cycle-buffer > "f" 'outline-forward-same-level > "b" 'outline-backward-same-level > "n" 'outline-next-visible-heading > "p" 'outline-previous-visible-heading > "u" 'outline-up-heading > "F" 'outline-move-subtree-down > "B" 'outline-move-subtree-up > "@" 'outline-mark-subtree --=20 Philip Kaludercic From unknown Sun Sep 21 03:01:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50679: 28.0.50; outline-minor-mode-cycle should be able to only cycle at the begining of a line Resent-From: Augusto Stoffel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Sep 2021 11:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50679 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Philip Kaludercic Cc: 50679@debbugs.gnu.org, Juri Linkov Received: via spool by 50679-submit@debbugs.gnu.org id=B50679.163222470516929 (code B ref 50679); Tue, 21 Sep 2021 11:46:01 +0000 Received: (at 50679) by debbugs.gnu.org; 21 Sep 2021 11:45:05 +0000 Received: from localhost ([127.0.0.1]:45097 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSeCv-0004Oz-85 for submit@debbugs.gnu.org; Tue, 21 Sep 2021 07:45:05 -0400 Received: from mail-wr1-f49.google.com ([209.85.221.49]:42903) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSeCt-0004OF-Pa for 50679@debbugs.gnu.org; Tue, 21 Sep 2021 07:45:04 -0400 Received: by mail-wr1-f49.google.com with SMTP id q11so38265276wrr.9 for <50679@debbugs.gnu.org>; Tue, 21 Sep 2021 04:45:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=G5UcwwYqcOQYILYNPxjXy3Ymjqw/S0mMPhe45cBq7qE=; b=PDC/7GM8u5mw6bcpuFNo+twsdH6PXaJKWvTEzXyEJ62oDhIz3kAnXpJIAmVZs2Oe9G 6vd2B6nTznBZ8L6/IRVITspmcZbE0l/p0Z1G9DXvDPOko+u5Eey2jGBZqqJcFVFQMe4K kF+1DS5mit1Bj5APGqsKPTaNy4tqvzmLe3SVlPICgYWDYrlJ6CpCn4t3PcKNqO4bc8m2 Cb8nj97cJw4PhCF7pWFukDAPNrY3o9gNyGf+A+RTytPVOhzU4giDfF9QlN/YaIySr8rs /OFK1ZCpTjpcv1hIo+S2894nbAiDuK6wUGEMeUaRJTBI089G+02Qwcwp76pQ+hEuUjBG TEpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=G5UcwwYqcOQYILYNPxjXy3Ymjqw/S0mMPhe45cBq7qE=; b=crSS7UFxH2/fygkjovP4/4KOVHRJTHI1AKlqkBeGAOTQOfdCPgCRD1tOxd5Z9kMsin psLAqsaqYHi1t8aAdZWgKdWOR8vkPsUqd90RU2Uoe9vWYTV64uS/N1Xqqyi6GUd6pKC7 bXOUM/Rgad2gz0qFpSVK8s+m/G/VsWBPwg0OOA6vXI3CrDZBl+u61mCpIR8NebsiRiI1 zL/JAK2iK8j6cI+qXT36VpK6XBKJdCURivXovu+fjE0fLMTkfvApKXhGMgOU+Ch5z6XN 3UIr0/PGTomGlR+xuwwO+uxdDKLlDFAfLKDqmMq8NY7uxExKW4VfXYR3Dej+sdYyKuXN 4P3A== X-Gm-Message-State: AOAM531Lv38Qg/VChJUWQhizAuIdiZoOqptaDluydUJrbmDb6rmAIzRF DpCzheOwGIpqab/PYrYiLH0= X-Google-Smtp-Source: ABdhPJx8ADzwv+FuKFZy8sy1gU06pBGsIXZozLk7uSVgYk5Q+XZwpUfirt6WTgK8tAo65espAiR1hQ== X-Received: by 2002:a05:600c:4e8e:: with SMTP id f14mr4195989wmq.13.1632224697789; Tue, 21 Sep 2021 04:44:57 -0700 (PDT) Received: from ars3 ([2a02:8109:8ac0:56d0::2f72]) by smtp.gmail.com with ESMTPSA id 131sm1822444wmc.20.2021.09.21.04.44.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Sep 2021 04:44:57 -0700 (PDT) From: Augusto Stoffel References: <87r1dkv8i2.fsf@posteo.net> <87mto8h5hk.fsf@mail.linkov.net> <87mto8uwnu.fsf@posteo.net> <87fstzn2zw.fsf@mail.linkov.net> <87y27rpi4q.fsf@mail.linkov.net> <87bl4nuuon.fsf@posteo.net> <87mto73xh5.fsf@gmail.com> <87k0jatbhl.fsf@posteo.net> Date: Tue, 21 Sep 2021 13:44:56 +0200 In-Reply-To: <87k0jatbhl.fsf@posteo.net> (Philip Kaludercic's message of "Tue, 21 Sep 2021 11:27:18 +0000") Message-ID: <87pmt22lvr.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Tue, 21 Sep 2021 at 11:27, Philip Kaludercic wrote: > I would appreciate something like this too, but you are right that it > sounds like a separate functionality. Compared to > outline-mode-cycle-map, this would most certainly have to operate on the > beginning of a line, otherwise apparently random keys would suddenly > throw the user around without them expecting it. I thought your point was that TAB for cycling also gets in the way if it's available anywhere other than at the beginning of a line. So I think it's actually the _same_ functionality, and only the naming doesn't reflect that. To put it in a slightly different way, there would be no need for a `outline-mode-cycle-map' if something called `outline-speed-keys-map' (a keymap installed only at column 0 of heading lines) existed. From unknown Sun Sep 21 03:01:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50679: 28.0.50; outline-minor-mode-cycle should be able to only cycle at the begining of a line Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Sep 2021 11:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50679 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Augusto Stoffel Cc: 50679@debbugs.gnu.org, Juri Linkov Received: via spool by 50679-submit@debbugs.gnu.org id=B50679.163222550218461 (code B ref 50679); Tue, 21 Sep 2021 11:59:02 +0000 Received: (at 50679) by debbugs.gnu.org; 21 Sep 2021 11:58:22 +0000 Received: from localhost ([127.0.0.1]:45123 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSePl-0004nh-Tn for submit@debbugs.gnu.org; Tue, 21 Sep 2021 07:58:22 -0400 Received: from mout02.posteo.de ([185.67.36.66]:33203) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSePj-0004nR-TI for 50679@debbugs.gnu.org; Tue, 21 Sep 2021 07:58:20 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 87E5B240101 for <50679@debbugs.gnu.org>; Tue, 21 Sep 2021 13:58:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1632225493; bh=RKCWwNwsAbL/7DiOpAp3nY/LOgs3HWHJkP7sPfswxEI=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=IAUZ3xTbD8Ou0xlHO8ZH2ESDK3INcSrMrxMJ+61YeMa6FQaXOimDHmkibz+Wj9WIy zzO780IVWhuNyKWJsthBK0ekm3tgcJjJUmFA637SYuWI5EYgQx5WnbI601X/HcbIJi IRP+1lX/Tzr0bxw+V68/s4qcf1F2CXx0CwDmLUMJcgHOF7c5tJfCuezliTuO9/RrJs STd2jZV0+mlWQJMW1+5oHxcscPQ63VJ4vR9FzNvTSqHSqidxg1Aum52CfYXR3Bu4co egCq1/cJFoLXmjQN4GL6silyDvvm7vjBEED6NJQ0vpFXABkgqje9eiMZJpj8You1aW PXXxQt1VxuYrw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HDKgm3L0Cz9rxh; Tue, 21 Sep 2021 13:58:12 +0200 (CEST) From: Philip Kaludercic References: <87r1dkv8i2.fsf@posteo.net> <87mto8h5hk.fsf@mail.linkov.net> <87mto8uwnu.fsf@posteo.net> <87fstzn2zw.fsf@mail.linkov.net> <87y27rpi4q.fsf@mail.linkov.net> <87bl4nuuon.fsf@posteo.net> <87mto73xh5.fsf@gmail.com> <87k0jatbhl.fsf@posteo.net> <87pmt22lvr.fsf@gmail.com> Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB Date: Tue, 21 Sep 2021 11:58:12 +0000 In-Reply-To: <87pmt22lvr.fsf@gmail.com> (Augusto Stoffel's message of "Tue, 21 Sep 2021 13:44:56 +0200") Message-ID: <87a6k6ta23.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Augusto Stoffel writes: > On Tue, 21 Sep 2021 at 11:27, Philip Kaludercic wrote: > >> I would appreciate something like this too, but you are right that it >> sounds like a separate functionality. Compared to >> outline-mode-cycle-map, this would most certainly have to operate on the >> beginning of a line, otherwise apparently random keys would suddenly >> throw the user around without them expecting it. > > I thought your point was that TAB for cycling also gets in the way if > it's available anywhere other than at the beginning of a line. Yes, but Juri is right that there is a more general issue that tab is never always appropriate. Just yesterday I ran into the edge-case of trying to indent a line inwards, and instead of indenting it folded the definition, because the line unintentionally began with outline-regexp. > So I think it's actually the _same_ functionality, and only the naming > doesn't reflect that. To put it in a slightly different way, there > would be no need for a `outline-mode-cycle-map' if something called > `outline-speed-keys-map' (a keymap installed only at column 0 of > heading lines) existed. How about both? If you just want to press tab anywhere, use cycle, and otherwise use speed-keys? Or would that be overkill? -- Philip Kaludercic From unknown Sun Sep 21 03:01:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50679: 28.0.50; outline-minor-mode-cycle should be able to only cycle at the begining of a line Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Sep 2021 18:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50679 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Philip Kaludercic Cc: 50679@debbugs.gnu.org Received: via spool by 50679-submit@debbugs.gnu.org id=B50679.163224777924786 (code B ref 50679); Tue, 21 Sep 2021 18:10:02 +0000 Received: (at 50679) by debbugs.gnu.org; 21 Sep 2021 18:09:39 +0000 Received: from localhost ([127.0.0.1]:47925 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSkD5-0006Rh-FT for submit@debbugs.gnu.org; Tue, 21 Sep 2021 14:09:39 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:53793) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSkD3-0006RR-CU for 50679@debbugs.gnu.org; Tue, 21 Sep 2021 14:09:38 -0400 Received: (Authenticated sender: juri@linkov.net) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id E26D6FF805; Tue, 21 Sep 2021 18:09:29 +0000 (UTC) From: Juri Linkov Organization: LINKOV.NET References: <87r1dkv8i2.fsf@posteo.net> <87mto8h5hk.fsf@mail.linkov.net> <87mto8uwnu.fsf@posteo.net> <87fstzn2zw.fsf@mail.linkov.net> <87y27rpi4q.fsf@mail.linkov.net> <87bl4nuuon.fsf@posteo.net> Date: Tue, 21 Sep 2021 20:53:44 +0300 In-Reply-To: <87bl4nuuon.fsf@posteo.net> (Philip Kaludercic's message of "Mon, 20 Sep 2021 15:35:04 +0000") Message-ID: <87bl4llsiz.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >> Then you can customize it to 'bolp'. > > I just tried it out, and it looks good. The only thing I wonder is if > this should apply to both outline-minor-mode and outline-mode? You are right, this problem exists only for outline-minor-mode, so it should be rather: :filter ,(lambda (cmd) (when (and (outline-on-heading-p) (or (not outline-minor-mode) (not (functionp outline-minor-mode-cycle-filter)) (funcall outline-minor-mode-cycle-filter))) cmd)) From unknown Sun Sep 21 03:01:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50679: 28.0.50; outline-minor-mode-cycle should be able to only cycle at the begining of a line Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Sep 2021 18:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50679 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Augusto Stoffel Cc: Philip Kaludercic , 50679@debbugs.gnu.org Received: via spool by 50679-submit@debbugs.gnu.org id=B50679.163224778424802 (code B ref 50679); Tue, 21 Sep 2021 18:10:02 +0000 Received: (at 50679) by debbugs.gnu.org; 21 Sep 2021 18:09:44 +0000 Received: from localhost ([127.0.0.1]:47928 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSkD9-0006Ry-Lo for submit@debbugs.gnu.org; Tue, 21 Sep 2021 14:09:43 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:34841) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSkD6-0006RV-D8 for 50679@debbugs.gnu.org; Tue, 21 Sep 2021 14:09:40 -0400 Received: (Authenticated sender: juri@linkov.net) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 0EE8C100002; Tue, 21 Sep 2021 18:09:32 +0000 (UTC) From: Juri Linkov Organization: LINKOV.NET References: <87r1dkv8i2.fsf@posteo.net> <87mto8h5hk.fsf@mail.linkov.net> <87mto8uwnu.fsf@posteo.net> <87fstzn2zw.fsf@mail.linkov.net> <87y27rpi4q.fsf@mail.linkov.net> <87bl4nuuon.fsf@posteo.net> <87mto73xh5.fsf@gmail.com> Date: Tue, 21 Sep 2021 20:58:01 +0300 In-Reply-To: <87mto73xh5.fsf@gmail.com> (Augusto Stoffel's message of "Mon, 20 Sep 2021 20:36:54 +0200") Message-ID: <87tuidkdo2.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > FWIW, I think it would be nice to provide a simple way to define other > “speed keys” in `outline-minor-mode [1], or even provide some > pre-configured ones [2]. > > [2]: I personally use these speed keys in outline-minor-mode, which are > probably very similar to those from Org mode: > > "" 'outline-cycle > "" 'outline-cycle-buffer > "f" 'outline-forward-same-level > "b" 'outline-backward-same-level > "n" 'outline-next-visible-heading > "p" 'outline-previous-visible-heading > "u" 'outline-up-heading > "F" 'outline-move-subtree-down > "B" 'outline-move-subtree-up > "@" 'outline-mark-subtree But this means you can't type all these keys on heading lines? This is why I confugured it not to use self-inserting keys: (let ((map outline-mode-cycle-map) (cmds '(("M-" outline-next-visible-heading) ("M-" outline-previous-visible-heading) ("M-" outline-hide-subtree) ("M-" outline-show-subtree)))) (dolist (command cmds) (define-key map (kbd (nth 0 command)) `(menu-item "" ,(nth 1 command) :filter ,(lambda (cmd) (when (outline-on-heading-p)) cmd)))))) > Looking at the code, it seems that adding bindings to > `outline-mode-cycle-map` would achieve precisely that, but the name > of the keymap doesn't reflect that. Do you suggest different keymaps? And indeed, these two are quite different beasts each with own problems. So we need both outline-mode-cycle-map and outline-minor-mode-cycle-map. From unknown Sun Sep 21 03:01:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50679: 28.0.50; outline-minor-mode-cycle should be able to only cycle at the begining of a line Resent-From: Augusto Stoffel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Sep 2021 18:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50679 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov Cc: Philip Kaludercic , 50679@debbugs.gnu.org Received: via spool by 50679-submit@debbugs.gnu.org id=B50679.16322502525262 (code B ref 50679); Tue, 21 Sep 2021 18:51:01 +0000 Received: (at 50679) by debbugs.gnu.org; 21 Sep 2021 18:50:52 +0000 Received: from localhost ([127.0.0.1]:47993 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSkqy-0001Mo-8X for submit@debbugs.gnu.org; Tue, 21 Sep 2021 14:50:52 -0400 Received: from mail-wr1-f46.google.com ([209.85.221.46]:39514) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSkqw-0001MW-LY for 50679@debbugs.gnu.org; Tue, 21 Sep 2021 14:50:51 -0400 Received: by mail-wr1-f46.google.com with SMTP id u15so42127026wru.6 for <50679@debbugs.gnu.org>; Tue, 21 Sep 2021 11:50:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=RgwUyvEOSgWuY6DifVGjaitn0g5kwPLjczHaS/zRjxc=; b=pfzfisz1f/BCe7+81Y0Sb3b6l5lNAWGNchfnvdxVqhxTxXUjAwzu7ByYelDhJMHWmw 3uRwx1d0SpzvSlUjwOXU2MlSR61xrwwgoLcmfbj5LLPs0mg+PpepjPhhK7GVxWdu9eEo kkv56JSgUnF1Zb+wyi730eb6zO65puN+hZ2RrsXH8KbCiis1PVd6xUwebTmgeCkO2dxM 4dcNXz7KQ7BQM5cEdd0RKo72VrWrn+he85FzX4Pb8e4ic3kCJunQYs1fJtU0gL6i15W3 w9V5SRlAonosyXLqeB/y3NH7p9fPgSq8XMMI+rEbqzgbwtnJRxiwVQ1FpTLVF8vJsE0u RkwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=RgwUyvEOSgWuY6DifVGjaitn0g5kwPLjczHaS/zRjxc=; b=72e6A2cxg/yE6+XstduE7V5blzwBwAafmi7LFugsfRaFe7h8kGT8QuL7vQwwQovSQ6 mtTx78ZMP3Zi2oq4cHqZxIjpUu3KVeaoDUuNRadBhqu2cWw7gTgSv9liweNL/f2Tnasr TQJ+IuaSsT3fBymzgjVRhowQRV8uWoBdT5Seak+ypB0gmjV3l89fBW3U8MEIcWZ7CXKy SePkA/D6hOG87RUuw9H0kPG33E66h1OGLX0zE4yt/GMPuKCKeVYUknEJm6mgCdAUQPaf 7WiTYr5GUyu4LMWx4aMS4iNUEO4quH9WuJHxcCdQsf0nJpNHZ4FOm8JaWcCeuQ3XE6+I QWTg== X-Gm-Message-State: AOAM531doOJbibrrRVYLrFjQKc6fAqeXdkRKl5lBKkxuXvQkozqdD455 C5T3484QFvqVa5BDLaouUzWbbsj48Eo= X-Google-Smtp-Source: ABdhPJykP9T5TVwlfKFjmVsfKRGToPOAvN2lTIWLMHNf2ZLCqacqzoOlLoEW6j8yO6aUpFj+8HwlnA== X-Received: by 2002:adf:f1c4:: with SMTP id z4mr37076256wro.418.1632250243447; Tue, 21 Sep 2021 11:50:43 -0700 (PDT) Received: from ars3 ([2a02:8109:8ac0:56d0::2f72]) by smtp.gmail.com with ESMTPSA id 23sm3883729wme.27.2021.09.21.11.50.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Sep 2021 11:50:42 -0700 (PDT) From: Augusto Stoffel References: <87r1dkv8i2.fsf@posteo.net> <87mto8h5hk.fsf@mail.linkov.net> <87mto8uwnu.fsf@posteo.net> <87fstzn2zw.fsf@mail.linkov.net> <87y27rpi4q.fsf@mail.linkov.net> <87bl4nuuon.fsf@posteo.net> <87mto73xh5.fsf@gmail.com> <87tuidkdo2.fsf@mail.linkov.net> Date: Tue, 21 Sep 2021 20:50:40 +0200 In-Reply-To: <87tuidkdo2.fsf@mail.linkov.net> (Juri Linkov's message of "Tue, 21 Sep 2021 20:58:01 +0300") Message-ID: <87lf3p3gqn.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Tue, 21 Sep 2021 at 20:58, Juri Linkov wrote: >> FWIW, I think it would be nice to provide a simple way to define other >> =E2=80=9Cspeed keys=E2=80=9D in `outline-minor-mode [1], or even provide= some >> pre-configured ones [2]. >> >> [2]: I personally use these speed keys in outline-minor-mode, which are >> probably very similar to those from Org mode: >> >> "" 'outline-cycle >> "" 'outline-cycle-buffer >> "f" 'outline-forward-same-level >> "b" 'outline-backward-same-level >> "n" 'outline-next-visible-heading >> "p" 'outline-previous-visible-heading >> "u" 'outline-up-heading >> "F" 'outline-move-subtree-down >> "B" 'outline-move-subtree-up >> "@" 'outline-mark-subtree > > But this means you can't type all these keys on heading lines? > This is why I confugured it not to use self-inserting keys: > In my setup those keys only apply at BOL in a heading line. I never type anything there. TAB for reindenting might be a bit trickier. Apparently I never try to reindent a heading line when point is at BOL, because I never thought about a possible conflict, but I guess I would type SPC TAB in that case. > (let ((map outline-mode-cycle-map) > (cmds '(("M-" outline-next-visible-heading) > ("M-" outline-previous-visible-heading) > ("M-" outline-hide-subtree) > ("M-" outline-show-subtree)))) > (dolist (command cmds) > (define-key map (kbd (nth 0 command)) > `(menu-item > "" ,(nth 1 command) > :filter ,(lambda (cmd) > (when (outline-on-heading-p)) > cmd)))))) > > I can't find this block in outline.el, is this a suggestion for a possible default? >> Looking at the code, it seems that adding bindings to >> `outline-mode-cycle-map` would achieve precisely that, but the name >> of the keymap doesn't reflect that. > > Do you suggest different keymaps? And indeed, these two are > quite different beasts each with own problems. So we need both > outline-mode-cycle-map and outline-minor-mode-cycle-map. Okay, those keymaps are active in the entire heading line, right? I would prefer to only have a special behavior at the first character of a heading line, in exchange of allowing _any_ shortcut key with minimal interference. Org mode already does that with a simple customization, (setq org-use-speed-commands t), so I don't think it would be too surprising for most users. From unknown Sun Sep 21 03:01:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50679: 28.0.50; outline-minor-mode-cycle should be able to only cycle at the begining of a line Resent-From: Augusto Stoffel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Sep 2021 19:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50679 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Philip Kaludercic Cc: 50679@debbugs.gnu.org, Juri Linkov Received: via spool by 50679-submit@debbugs.gnu.org id=B50679.163225094213881 (code B ref 50679); Tue, 21 Sep 2021 19:03:02 +0000 Received: (at 50679) by debbugs.gnu.org; 21 Sep 2021 19:02:22 +0000 Received: from localhost ([127.0.0.1]:48011 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSl26-0003ba-11 for submit@debbugs.gnu.org; Tue, 21 Sep 2021 15:02:22 -0400 Received: from mail-wr1-f48.google.com ([209.85.221.48]:39912) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSl23-0003VT-JP for 50679@debbugs.gnu.org; Tue, 21 Sep 2021 15:02:20 -0400 Received: by mail-wr1-f48.google.com with SMTP id u15so42208444wru.6 for <50679@debbugs.gnu.org>; Tue, 21 Sep 2021 12:02:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=HBWuRhkBdPZXVbS5ZHzN9OEiarcm8ceDyWXgGPNjBw0=; b=Yhe+4s0LhHZPma/tOoxALYR7q1thUJlMZAgg8hvUjTidUArG76+LZM1NLv9yTWhXjf Z394LaCOreIj8znNR2PMp7Caqm5iOVhmK4rUmjWvuQRVZCdDPlBs2EAYEGCaE9Z3atHm 9qD7TvN8Vuj8o2W4hmsZyIbH56qWkOhGpY7I6weJ07gzz1JoVHf6TESm2qdPycMcash8 ErJn1Q5V4YNaiLHVmdsNGPBDvo0rLPGTqfwVUqojpgLuMeAEYxRRqkv0BWO1UfovE9X0 /W4RZY7q1/WN7yTaaJ/UJFA7c3kZWrhKm2d2SZnB9QVBZ1Fr3H1KAHHdRgooXlACjHlg FJ3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=HBWuRhkBdPZXVbS5ZHzN9OEiarcm8ceDyWXgGPNjBw0=; b=0j2nBGc26dmSHOKAJIXrvvx49gzu3zgREgApKNReo6CCMDUIKLaJlyAmYKL0ud72HS CV5zimNmJIYCwpDaOUoouPwgzbBCyDD2LhFVIOBoPTRXuwwi45g06YW1Zpvlep0RcOm/ FQsx/sW+4lR9MKnVvU2oM9R62DElOTl2voQ7/quC6jwqp4GYeCl5s1WJ0m+2U4fVpeU2 lQMM9p3zFI1EsHVK2u/k6h9tGHX8wfnuDHvxS1pDYGp/8ASzaEGkyUuOQAJa+pTVXj5Z y8CCiIesrD9Jal7P7ajZJj9qdrkW7AgKJqmDQED9UPOIahf54jtyIu94pWVJTu2jIx6A f1Sg== X-Gm-Message-State: AOAM530u00B7Q4GB899B0P+YkUlqu9ZE4BKc4oDTdG6XRQ+rVRpAqmLO KFqSj4LFJqhyy7zoBazKCCk= X-Google-Smtp-Source: ABdhPJzWEGIK1I657aJ0DgYMvFT0jOTVCCs1PmVKODCTobyPSVjN05X81NWOXbtsNakMTtdkY6JaHQ== X-Received: by 2002:adf:ef07:: with SMTP id e7mr37306360wro.56.1632250933256; Tue, 21 Sep 2021 12:02:13 -0700 (PDT) Received: from ars3 ([2a02:8109:8ac0:56d0::2f72]) by smtp.gmail.com with ESMTPSA id 25sm4332480wmo.9.2021.09.21.12.02.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Sep 2021 12:02:12 -0700 (PDT) From: Augusto Stoffel References: <87r1dkv8i2.fsf@posteo.net> <87mto8h5hk.fsf@mail.linkov.net> <87mto8uwnu.fsf@posteo.net> <87fstzn2zw.fsf@mail.linkov.net> <87y27rpi4q.fsf@mail.linkov.net> <87bl4nuuon.fsf@posteo.net> <87mto73xh5.fsf@gmail.com> <87k0jatbhl.fsf@posteo.net> <87pmt22lvr.fsf@gmail.com> <87a6k6ta23.fsf@posteo.net> Date: Tue, 21 Sep 2021 21:02:10 +0200 In-Reply-To: <87a6k6ta23.fsf@posteo.net> (Philip Kaludercic's message of "Tue, 21 Sep 2021 11:58:12 +0000") Message-ID: <87h7ed3g7h.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Tue, 21 Sep 2021 at 11:58, Philip Kaludercic wrote: > Yes, but Juri is right that there is a more general issue that tab is > never always appropriate. Just yesterday I ran into the edge-case of > trying to indent a line inwards, and instead of indenting it folded the > definition, because the line unintentionally began with outline-regexp. > Okay, this is not an issue for me, but if it happens to you, then it will happen to other people as well. >> So I think it's actually the _same_ functionality, and only the naming >> doesn't reflect that. To put it in a slightly different way, there >> would be no need for a `outline-mode-cycle-map' if something called >> `outline-speed-keys-map' (a keymap installed only at column 0 of >> heading lines) existed. > > How about both? If you just want to press tab anywhere, use cycle, and > otherwise use speed-keys? Or would that be overkill? Well, menu items are a bit obscure but not too hard to use, actually. So I would say that it only makes sense to attempt to provide some built-in speed key functionality if it's easier to use and customize than the existing alternative. From unknown Sun Sep 21 03:01:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50679: 28.0.50; outline-minor-mode-cycle should be able to only cycle at the begining of a line Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 Sep 2021 16:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50679 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Augusto Stoffel Cc: Philip Kaludercic , 50679@debbugs.gnu.org Received: via spool by 50679-submit@debbugs.gnu.org id=B50679.163232754428973 (code B ref 50679); Wed, 22 Sep 2021 16:20:02 +0000 Received: (at 50679) by debbugs.gnu.org; 22 Sep 2021 16:19:04 +0000 Received: from localhost ([127.0.0.1]:51504 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mT4xb-0007XC-Hl for submit@debbugs.gnu.org; Wed, 22 Sep 2021 12:19:03 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:50187) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mT4xX-0007W8-1Z for 50679@debbugs.gnu.org; Wed, 22 Sep 2021 12:18:59 -0400 Received: (Authenticated sender: juri@linkov.net) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 8D6C9200003; Wed, 22 Sep 2021 16:18:51 +0000 (UTC) From: Juri Linkov Organization: LINKOV.NET References: <87r1dkv8i2.fsf@posteo.net> <87mto8h5hk.fsf@mail.linkov.net> <87mto8uwnu.fsf@posteo.net> <87fstzn2zw.fsf@mail.linkov.net> <87y27rpi4q.fsf@mail.linkov.net> <87bl4nuuon.fsf@posteo.net> <87mto73xh5.fsf@gmail.com> <87tuidkdo2.fsf@mail.linkov.net> <87lf3p3gqn.fsf@gmail.com> Date: Wed, 22 Sep 2021 19:09:12 +0300 In-Reply-To: <87lf3p3gqn.fsf@gmail.com> (Augusto Stoffel's message of "Tue, 21 Sep 2021 20:50:40 +0200") Message-ID: <87czp0x2ej.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >>> "" 'outline-cycle >>> "" 'outline-cycle-buffer >>> "f" 'outline-forward-same-level >>> "b" 'outline-backward-same-level >>> "n" 'outline-next-visible-heading >>> "p" 'outline-previous-visible-heading >>> "u" 'outline-up-heading >>> "F" 'outline-move-subtree-down >>> "B" 'outline-move-subtree-up >>> "@" 'outline-mark-subtree >> >> But this means you can't type all these keys on heading lines? >> This is why I confugured it not to use self-inserting keys: > > In my setup those keys only apply at BOL in a heading line. I never > type anything there. > > TAB for reindenting might be a bit trickier. Apparently I never try to > reindent a heading line when point is at BOL, because I never thought > about a possible conflict, but I guess I would type SPC TAB in that > case. This is exactly what I do every time, i.e. first I type TAB to indent, but it hides the body, then I type again TAB to unhide the body to revert the mistake, then type SPC TAB to workaround this annoyance. >> (let ((map outline-mode-cycle-map) >> (cmds '(("M-" outline-next-visible-heading) >> ("M-" outline-previous-visible-heading) >> ("M-" outline-hide-subtree) >> ("M-" outline-show-subtree)))) >> (dolist (command cmds) >> (define-key map (kbd (nth 0 command)) >> `(menu-item >> "" ,(nth 1 command) >> :filter ,(lambda (cmd) >> (when (outline-on-heading-p)) >> cmd)))))) > > I can't find this block in outline.el, is this a suggestion for a > possible default? This is from my init file. I don't suggest to add it to outline.el, it only shows how it's possible to customize navigation keys. >>> Looking at the code, it seems that adding bindings to >>> `outline-mode-cycle-map` would achieve precisely that, but the name >>> of the keymap doesn't reflect that. >> >> Do you suggest different keymaps? And indeed, these two are >> quite different beasts each with own problems. So we need both >> outline-mode-cycle-map and outline-minor-mode-cycle-map. > > Okay, those keymaps are active in the entire heading line, right? > > I would prefer to only have a special behavior at the first character of > a heading line, Philip already proposed a predicate that can be set to 'bolp' to make the map active only on the first character. > in exchange of allowing _any_ shortcut key with minimal > interference. Org mode already does that with a simple customization, > (setq org-use-speed-commands t), so I don't think it would be too > surprising for most users. Adding more keys to this keymap has more problems. For example, in diff-mode TAB navigates to the next hunk, but with outline-minor-mode TAB on the first character in a diff-mode buffer cycles the outline, so another available key 'n' should be typed to navigate to the next hunk. We can't sacrifice this key for outline-next-visible-heading, because no more keys will remain for diff-hunk-next. From unknown Sun Sep 21 03:01:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50679: 28.0.50; outline-minor-mode-cycle should be able to only cycle at the begining of a line Resent-From: Augusto Stoffel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 Sep 2021 16:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50679 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov Cc: Philip Kaludercic , 50679@debbugs.gnu.org Received: via spool by 50679-submit@debbugs.gnu.org id=B50679.163232826630821 (code B ref 50679); Wed, 22 Sep 2021 16:32:02 +0000 Received: (at 50679) by debbugs.gnu.org; 22 Sep 2021 16:31:06 +0000 Received: from localhost ([127.0.0.1]:51544 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mT59G-000813-B8 for submit@debbugs.gnu.org; Wed, 22 Sep 2021 12:31:06 -0400 Received: from mail-wr1-f51.google.com ([209.85.221.51]:36454) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mT599-00080M-6e for 50679@debbugs.gnu.org; Wed, 22 Sep 2021 12:31:04 -0400 Received: by mail-wr1-f51.google.com with SMTP id g16so8669824wrb.3 for <50679@debbugs.gnu.org>; Wed, 22 Sep 2021 09:30:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=CPF674hw8Oqy2gdwMX88RgOdH5DpYIILaripTyml1ic=; b=Lw739jMXOgHsO3/hdjgsOjFZ9wYOs0wB/0zjlegemqTPt9I5chp+Y0Bxcnx6dmIj3w bQlhayA71XKifH4qF+4/GkSf8qkaPZ9ayBzITOQjEr0wCfMMgQtaiBaLN+cI6U0Ey+Yz pw5j6k76Fr9Cyh0KjYp0rvFs4tXebAkV6HIb5cNyfBhc3BTgio6awxARBmFgRVgZIhzS oEl150sl8eepuxWnB4zxnfilD9YaJRrlTamTLmflaxCVNcAhCs/HVdAjBWMlgNs8Z2H1 Ld5pwh+XKGg51HAsrrcBgxCOzwxpuzORRMRSgE6WH9MhR9hUtQScAozvQOq1uF3mSqV+ MEdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=CPF674hw8Oqy2gdwMX88RgOdH5DpYIILaripTyml1ic=; b=D//hjrJNjemC3bN312fft8nakf8witRnLJEhqfXfOy3jooF4wyx4aRAaOigp/Q/9QO p8W4HSGxs3iL7ylfLqHoDW3qwCN4N3agKJMhL0cDbQjBwwOehxbjK7ARfj54/M7UfmC1 AakOAbtfBbXcabfYgnElfvK+y0W3i7WaJL6Uca/t1RUevflZKTIsqvd6OGN5mn/rSuXL s1hkGp8U7wS7lGUv9UBe+WcuNh25F9GHFERsKnly0qVJBXUT+J6KLNPXIV6pliIlEXej Nj6qO7zTO2KQHTkXtDnDQgRaEjb2dqV0yffuyS4LhOO8QSrEIEx6VR+iOSEvUobJ0NLA ao7Q== X-Gm-Message-State: AOAM5333kXysjpFPmwEMLGgByBrnW7ggIpnvim8udPYaDdGDLjJpfn5s O1ykpx2b1kaesn966ypVxB/1ksbF2wU= X-Google-Smtp-Source: ABdhPJyH/xZQzah0HSHhq5cxVxjpuUWhIFSvsSVB/K0KO1XxSmSrAb0w8CbGNJuTWuiYm6wD+a+t2w== X-Received: by 2002:a05:6000:1546:: with SMTP id 6mr540841wry.305.1632328253174; Wed, 22 Sep 2021 09:30:53 -0700 (PDT) Received: from ars3 ([2a02:8109:8ac0:56d0::2f72]) by smtp.gmail.com with ESMTPSA id x21sm6519129wmc.14.2021.09.22.09.30.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Sep 2021 09:30:52 -0700 (PDT) From: Augusto Stoffel References: <87r1dkv8i2.fsf@posteo.net> <87mto8h5hk.fsf@mail.linkov.net> <87mto8uwnu.fsf@posteo.net> <87fstzn2zw.fsf@mail.linkov.net> <87y27rpi4q.fsf@mail.linkov.net> <87bl4nuuon.fsf@posteo.net> <87mto73xh5.fsf@gmail.com> <87tuidkdo2.fsf@mail.linkov.net> <87lf3p3gqn.fsf@gmail.com> <87czp0x2ej.fsf@mail.linkov.net> Date: Wed, 22 Sep 2021 18:30:51 +0200 In-Reply-To: <87czp0x2ej.fsf@mail.linkov.net> (Juri Linkov's message of "Wed, 22 Sep 2021 19:09:12 +0300") Message-ID: <87ilysind0.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Wed, 22 Sep 2021 at 19:09, Juri Linkov wrote: >> In my setup those keys only apply at BOL in a heading line. I never >> type anything there. >> >> TAB for reindenting might be a bit trickier. Apparently I never try to >> reindent a heading line when point is at BOL, because I never thought >> about a possible conflict, but I guess I would type SPC TAB in that >> case. > > This is exactly what I do every time, i.e. first I type TAB to indent, > but it hides the body, then I type again TAB to unhide the body > to revert the mistake, then type SPC TAB to workaround this annoyance. All right, I didn't think this would be a problem for others, but obviously it is. In this case (and also taking the diff-mode issue into account) I guess I'll take back my previous comments. >> in exchange of allowing _any_ shortcut key with minimal >> interference. Org mode already does that with a simple customization, >> (setq org-use-speed-commands t), so I don't think it would be too >> surprising for most users. > > Adding more keys to this keymap has more problems. For example, > in diff-mode TAB navigates to the next hunk, but with outline-minor-mode > TAB on the first character in a diff-mode buffer cycles the outline, > so another available key 'n' should be typed to navigate to the next hunk. > We can't sacrifice this key for outline-next-visible-heading, > because no more keys will remain for diff-hunk-next. From unknown Sun Sep 21 03:01:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50679: 28.0.50; outline-minor-mode-cycle should be able to only cycle at the begining of a line Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Sep 2021 16:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50679 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Philip Kaludercic Cc: 50679@debbugs.gnu.org Received: via spool by 50679-submit@debbugs.gnu.org id=B50679.163241390815632 (code B ref 50679); Thu, 23 Sep 2021 16:19:02 +0000 Received: (at 50679) by debbugs.gnu.org; 23 Sep 2021 16:18:28 +0000 Received: from localhost ([127.0.0.1]:55657 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTRQZ-000441-TO for submit@debbugs.gnu.org; Thu, 23 Sep 2021 12:18:28 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:48043) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTRQX-00043e-V1; Thu, 23 Sep 2021 12:18:26 -0400 Received: (Authenticated sender: juri@linkov.net) by relay10.mail.gandi.net (Postfix) with ESMTPSA id BDF60240008; Thu, 23 Sep 2021 16:18:18 +0000 (UTC) From: Juri Linkov Organization: LINKOV.NET References: <87r1dkv8i2.fsf@posteo.net> <87mto8h5hk.fsf@mail.linkov.net> <87mto8uwnu.fsf@posteo.net> <87fstzn2zw.fsf@mail.linkov.net> <87y27rpi4q.fsf@mail.linkov.net> <87bl4nuuon.fsf@posteo.net> Date: Thu, 23 Sep 2021 19:17:18 +0300 In-Reply-To: <87bl4nuuon.fsf@posteo.net> (Philip Kaludercic's message of "Mon, 20 Sep 2021 15:35:04 +0000") Message-ID: <87zgs3p8q9.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) tags 50679 fixed close 50679 28.0.50 thanks >> Then you can customize it to 'bolp'. > > I just tried it out, and it looks good. The only thing I wonder is if > this should apply to both outline-minor-mode and outline-mode? I separated maps outline-mode-map from outline-minor-mode-cycle-map, so it's applied only to outline-minor-mode-cycle-map. It seems there is no need to use it in outline-mode. From unknown Sun Sep 21 03:01:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50679: 28.0.50; outline-minor-mode-cycle should be able to only cycle at the begining of a line Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Sep 2021 16:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50679 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Augusto Stoffel Cc: Philip Kaludercic , 50679@debbugs.gnu.org Received: via spool by 50679-submit@debbugs.gnu.org id=B50679.163241391615662 (code B ref 50679); Thu, 23 Sep 2021 16:19:02 +0000 Received: (at 50679) by debbugs.gnu.org; 23 Sep 2021 16:18:36 +0000 Received: from localhost ([127.0.0.1]:55662 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTRQi-00044X-EW for submit@debbugs.gnu.org; Thu, 23 Sep 2021 12:18:36 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:40687) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTRQV-00043a-42 for 50679@debbugs.gnu.org; Thu, 23 Sep 2021 12:18:35 -0400 Received: (Authenticated sender: juri@linkov.net) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 8C30B4000E; Thu, 23 Sep 2021 16:18:14 +0000 (UTC) From: Juri Linkov Organization: LINKOV.NET References: <87r1dkv8i2.fsf@posteo.net> <87mto8h5hk.fsf@mail.linkov.net> <87mto8uwnu.fsf@posteo.net> <87fstzn2zw.fsf@mail.linkov.net> <87y27rpi4q.fsf@mail.linkov.net> <87bl4nuuon.fsf@posteo.net> <87mto73xh5.fsf@gmail.com> Date: Thu, 23 Sep 2021 19:15:34 +0300 In-Reply-To: <87mto73xh5.fsf@gmail.com> (Augusto Stoffel's message of "Mon, 20 Sep 2021 20:36:54 +0200") Message-ID: <87czozqndl.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > FWIW, I think it would be nice to provide a simple way to define other > “speed keys” in `outline-minor-mode [1], or even provide some > pre-configured ones [2]. > > Looking at the code, it seems that adding bindings to > `outline-mode-cycle-map` would achieve precisely that, but the name > of the keymap doesn't reflect that. You are right, the name of the keymap was wrong, so I renamed it. > [2]: I personally use these speed keys in outline-minor-mode, which are > probably very similar to those from Org mode: > > "" 'outline-cycle > "" 'outline-cycle-buffer > "f" 'outline-forward-same-level > "b" 'outline-backward-same-level > "n" 'outline-next-visible-heading > "p" 'outline-previous-visible-heading > "u" 'outline-up-heading > "F" 'outline-move-subtree-down > "B" 'outline-move-subtree-up > "@" 'outline-mark-subtree Now it's very easy to copy keys from outline-mode-prefix-map to outline-minor-mode-cycle-map with just: ``` (map-keymap (lambda (key binding) (outline-minor-mode-cycle--bind outline-minor-mode-cycle-map (vector key) binding)) outline-mode-prefix-map) ``` From unknown Sun Sep 21 03:01:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50679: 28.0.50; outline-minor-mode-cycle should be able to only cycle at the begining of a line Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Sep 2021 14:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50679 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Juri Linkov Cc: 50679@debbugs.gnu.org Received: via spool by 50679-submit@debbugs.gnu.org id=B50679.163266480611937 (code B ref 50679); Sun, 26 Sep 2021 14:01:02 +0000 Received: (at 50679) by debbugs.gnu.org; 26 Sep 2021 14:00:06 +0000 Received: from localhost ([127.0.0.1]:38449 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUUhK-00036S-45 for submit@debbugs.gnu.org; Sun, 26 Sep 2021 10:00:06 -0400 Received: from mout01.posteo.de ([185.67.36.65]:39391) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUUhH-00035Q-S7 for 50679@debbugs.gnu.org; Sun, 26 Sep 2021 10:00:04 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 56C8A240027 for <50679@debbugs.gnu.org>; Sun, 26 Sep 2021 15:59:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1632664797; bh=G945ktzq2OvN6TM/NMkVffT2tI9eL7L5jBFiICVWLTY=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=GZHE3uGIHntfaSkpqUCaOicOr4T9h5n1B18hzYjqFiUdKjIj++M62kQmmDJZLgZja IwlfUjqgByLP48Jz+zprUCWV41iGivsPb4dwVd0AL+WlhsIIAfrAtg6R2dC0mrgzOg OwJnuMS2FS/5Xpe36eQxRK+Ch48hbZXvGkc3JsM6CZ1hnnTWsCHZnl7lU5HiID6FyY l+CD3afk1/XrI1ml1dvGDvZ9FGjwKhqv2vRm8y9iYpQH0cwncnK0EEdUAS58Vc0GSJ XBb3PTpq1CZc1zj2D901cRf76pbgocIZz2HRP24SFgbYNdz2bIxsI4Ciez+2qjYBan ISMlADt4mBz3w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HHS7w2QV7z6tmL; Sun, 26 Sep 2021 15:59:56 +0200 (CEST) From: Philip Kaludercic References: <87r1dkv8i2.fsf@posteo.net> <87mto8h5hk.fsf@mail.linkov.net> <87mto8uwnu.fsf@posteo.net> <87fstzn2zw.fsf@mail.linkov.net> <87y27rpi4q.fsf@mail.linkov.net> <87bl4nuuon.fsf@posteo.net> <87zgs3p8q9.fsf@mail.linkov.net> Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB Date: Sun, 26 Sep 2021 13:59:55 +0000 In-Reply-To: <87zgs3p8q9.fsf@mail.linkov.net> (Juri Linkov's message of "Thu, 23 Sep 2021 19:17:18 +0300") Message-ID: <878rzjjv38.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Juri Linkov writes: > tags 50679 fixed > close 50679 28.0.50 > thanks > >>> Then you can customize it to 'bolp'. >> >> I just tried it out, and it looks good. The only thing I wonder is if >> this should apply to both outline-minor-mode and outline-mode? > > I separated maps outline-mode-map from outline-minor-mode-cycle-map, > so it's applied only to outline-minor-mode-cycle-map. It seems there is > no need to use it in outline-mode. I just noticed this now, but I am not sure how clever it is to bind outline-cycle-buffer via a menu-item. I don't think that there is as much of a conflict with backtab, as with regular tab, and having to find a heading before being able to cycling seems less efficient. -- Philip Kaludercic From unknown Sun Sep 21 03:01:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50679: 28.0.50; outline-minor-mode-cycle should be able to only cycle at the begining of a line Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Sep 2021 15:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50679 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Philip Kaludercic Cc: 50679@debbugs.gnu.org Received: via spool by 50679-submit@debbugs.gnu.org id=B50679.163275737214738 (code B ref 50679); Mon, 27 Sep 2021 15:43:02 +0000 Received: (at 50679) by debbugs.gnu.org; 27 Sep 2021 15:42:52 +0000 Received: from localhost ([127.0.0.1]:42432 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUsmK-0003pe-1E for submit@debbugs.gnu.org; Mon, 27 Sep 2021 11:42:52 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:42941) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUsmI-0003pN-Ik for 50679@debbugs.gnu.org; Mon, 27 Sep 2021 11:42:51 -0400 Received: (Authenticated sender: juri@linkov.net) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 3A5462000A; Mon, 27 Sep 2021 15:42:42 +0000 (UTC) From: Juri Linkov Organization: LINKOV.NET References: <87r1dkv8i2.fsf@posteo.net> <87mto8h5hk.fsf@mail.linkov.net> <87mto8uwnu.fsf@posteo.net> <87fstzn2zw.fsf@mail.linkov.net> <87y27rpi4q.fsf@mail.linkov.net> <87bl4nuuon.fsf@posteo.net> <87zgs3p8q9.fsf@mail.linkov.net> <878rzjjv38.fsf@posteo.net> Date: Mon, 27 Sep 2021 18:35:20 +0300 In-Reply-To: <878rzjjv38.fsf@posteo.net> (Philip Kaludercic's message of "Sun, 26 Sep 2021 13:59:55 +0000") Message-ID: <87ee9a2h5b.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >>>> Then you can customize it to 'bolp'. >>> >>> I just tried it out, and it looks good. The only thing I wonder is if >>> this should apply to both outline-minor-mode and outline-mode? >> >> I separated maps outline-mode-map from outline-minor-mode-cycle-map, >> so it's applied only to outline-minor-mode-cycle-map. It seems there is >> no need to use it in outline-mode. > > I just noticed this now, but I am not sure how clever it is to bind > outline-cycle-buffer via a menu-item. I don't think that there is as > much of a conflict with backtab, as with regular tab, and having to find > a heading before being able to cycling seems less efficient. I'm using S-TAB (backtab) all the time, e.g. to move to the previous hunk in diff-mode, so menu-item is a saver. After customizing the option that you proposed to the value "Not at the beginning of the line" now it's possible to use TAB to move the next diff hunk and S-TAB to move to the previous diff hunk while keeping point on the first column. And when point is on the second column then S-TAB hides all hunks, and TAB opens the current hunk with outline-minor-mode-cycle. From unknown Sun Sep 21 03:01:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50679: 28.0.50; outline-minor-mode-cycle should be able to only cycle at the begining of a line Resent-From: Augusto Stoffel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Sep 2021 16:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50679 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Juri Linkov Cc: Philip Kaludercic , 50679@debbugs.gnu.org Received: via spool by 50679-submit@debbugs.gnu.org id=B50679.163275938219722 (code B ref 50679); Mon, 27 Sep 2021 16:17:01 +0000 Received: (at 50679) by debbugs.gnu.org; 27 Sep 2021 16:16:22 +0000 Received: from localhost ([127.0.0.1]:42622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUtIk-000582-BS for submit@debbugs.gnu.org; Mon, 27 Sep 2021 12:16:22 -0400 Received: from mail-wm1-f46.google.com ([209.85.128.46]:38736) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUtIh-00057N-Kr for 50679@debbugs.gnu.org; Mon, 27 Sep 2021 12:16:21 -0400 Received: by mail-wm1-f46.google.com with SMTP id 205-20020a1c01d6000000b0030cd17ffcf8so1071414wmb.3 for <50679@debbugs.gnu.org>; Mon, 27 Sep 2021 09:16:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=QcmfLRdPQdipQE6F+YLUJ7gDs/2uwcSSKDuORyLSdrM=; b=nrZUMLRuwEN5h+WXy2COOvKxJnWzziLujlSJIhJRBjPu+AGLar4JPnY23Eeo27Bybn 3H+0dtF6jlDwxBkGEgZEVeDc1c7sdgTFyuPMv74qwBH7eQUk57BoYht4AXGt50gdfdnP fkhwtflfSl9+usHfDAK5J+RfrFuXw9HePr9POPX08Ov0xKK73Rpe+8lpNe4Sz0nqHsEP mLRkL3oVy2kU0WUVq+Dk1/uOZamHw9W1hu8jTKlstFxd5tFXQ/D1uQbJTb+qy6+ktPjs ROh9de1mJmCADVD4zsmAaVscxsllAtwu148HomGvNwJErDVU/UIN8LHGUGYbfDg7g1FN gCZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=QcmfLRdPQdipQE6F+YLUJ7gDs/2uwcSSKDuORyLSdrM=; b=Xyx5Gn6t/GzTT0v0kUTYJgejXjRQHJcLycJdYZ4g7+NCYpTR5iUdHNsnUqBq3GZKoO Nnw0sQpx5LlBvkv9cKfcmA21fJ3FDPzOHVRF3PCmX6xkA+7E89CAIKoMQIxnxrDXmmIy c4bqHrZ9lFE7MMozUc6TNPBYU4IfoM6Yl0ZN2tQQe+1aGDWiaPyCGP1bM7DWRai4/9zd mTfEFXH60EnEz3hWVzxZlD2GmCmZSxvsdrQ0WDpJhRb/pdgfqk3afX0FtLcpIldXCtid +S0v0TsRUCdZyjCdepCoiwT1uxRRbjuc+0abbWkgwxu5XQYWb6IaSMNsD3Bb4u13r277 zwZg== X-Gm-Message-State: AOAM530VRlm2ht/GahkDeO52KkeNFG5DFq/jtpzQj1bc/ofGNqEcDu0r qXPZMsm2dZ2+NlR4d0FP7kI8+u01MMM= X-Google-Smtp-Source: ABdhPJz50qpoBeq9gJWsmDG8pVIV+dJ4aoUy9f7oVd35XPxOWA2DFDdq/xfPjI1vE4ojk8jhJD+Xiw== X-Received: by 2002:a05:600c:17d0:: with SMTP id y16mr16860063wmo.41.1632759372489; Mon, 27 Sep 2021 09:16:12 -0700 (PDT) Received: from ars3 ([2a02:8109:8ac0:56d0::2f72]) by smtp.gmail.com with ESMTPSA id v18sm16706786wml.44.2021.09.27.09.16.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Sep 2021 09:16:11 -0700 (PDT) From: Augusto Stoffel References: <87r1dkv8i2.fsf@posteo.net> <87mto8h5hk.fsf@mail.linkov.net> <87mto8uwnu.fsf@posteo.net> <87fstzn2zw.fsf@mail.linkov.net> <87y27rpi4q.fsf@mail.linkov.net> <87bl4nuuon.fsf@posteo.net> <87zgs3p8q9.fsf@mail.linkov.net> <878rzjjv38.fsf@posteo.net> <87ee9a2h5b.fsf@mail.linkov.net> Date: Mon, 27 Sep 2021 18:16:10 +0200 In-Reply-To: <87ee9a2h5b.fsf@mail.linkov.net> (Juri Linkov's message of "Mon, 27 Sep 2021 18:35:20 +0300") Message-ID: <87bl4em1th.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Mon, 27 Sep 2021 at 18:35, Juri Linkov wrote: >>>>> Then you can customize it to 'bolp'. >>>> >>>> I just tried it out, and it looks good. The only thing I wonder is if >>>> this should apply to both outline-minor-mode and outline-mode? >>> >>> I separated maps outline-mode-map from outline-minor-mode-cycle-map, >>> so it's applied only to outline-minor-mode-cycle-map. It seems there is >>> no need to use it in outline-mode. >> >> I just noticed this now, but I am not sure how clever it is to bind >> outline-cycle-buffer via a menu-item. I don't think that there is as >> much of a conflict with backtab, as with regular tab, and having to find >> a heading before being able to cycling seems less efficient. The way I solve this problem is by calling `outline-back-to-heading' (which, strangely, is not an interactive command). After that, I have access to all =E2=80=9Cspeed keys=E2=80=9D. This works almost like a trans= ient keymap. Actually, I have a DWIM command that calls `outline-up-heading' if already at a heading and `outline-back-to-heading' otherwise. I'm not sure whether such a command would be deemed generally useful or just a bit too weird. > I'm using S-TAB (backtab) all the time, e.g. to move to the previous > hunk in diff-mode, so menu-item is a saver. After customizing > the option that you proposed to the value "Not at the beginning of the li= ne" > now it's possible to use TAB to move the next diff hunk and S-TAB to > move to the previous diff hunk while keeping point on the first column. > And when point is on the second column then S-TAB hides all hunks, > and TAB opens the current hunk with outline-minor-mode-cycle.