From unknown Wed Jun 18 00:24:22 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#41130 <41130@debbugs.gnu.org> To: bug#41130 <41130@debbugs.gnu.org> Subject: Status: outline-mode: Add new commands like org-cycle and org-global-cycle Reply-To: bug#41130 <41130@debbugs.gnu.org> Date: Wed, 18 Jun 2025 07:24:22 +0000 retitle 41130 outline-mode: Add new commands like org-cycle and org-global-= cycle reassign 41130 emacs submitter 41130 Stefan Kangas severity 41130 wishlist tag 41130 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Thu May 07 16:54:02 2020 Received: (at submit) by debbugs.gnu.org; 7 May 2020 20:54:02 +0000 Received: from localhost ([127.0.0.1]:44048 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jWnWs-0005We-L7 for submit@debbugs.gnu.org; Thu, 07 May 2020 16:54:02 -0400 Received: from lists.gnu.org ([209.51.188.17]:41338) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jWnWr-0005WJ-RF for submit@debbugs.gnu.org; Thu, 07 May 2020 16:54:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50538) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jWnWr-0006jV-Jl for bug-gnu-emacs@gnu.org; Thu, 07 May 2020 16:54:01 -0400 Received: from mail-yb1-xb33.google.com ([2607:f8b0:4864:20::b33]:45876) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jWnWq-00037y-UA for bug-gnu-emacs@gnu.org; Thu, 07 May 2020 16:54:01 -0400 Received: by mail-yb1-xb33.google.com with SMTP id r14so3642057ybm.12 for ; Thu, 07 May 2020 13:54:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:date:message-id:subject:to; bh=zvTkpGuLnl3wo4Qaw/VEl3Zp1YEMLx7b7KNQLwGvbts=; b=g5dHLIhaEt+qc+C9QgkxAEFShS4/aaYwSgKmK8vDtHFwpRs5xLWX42rmjXP4e6wEVa YO4fGlY5YckmC0vI+giDj/zo8i8HY4BrEjUAVjYXSuq5Ua7vDnB3FpL6fMtGRuDi9IMA WtBZNQQDcEW+XfPRKF8vXZpfvFobwL1aNbzabyQE/HkOoDIZCSD1uhNiAmfT2i9sZ+zF Kgh+dyKA7AQG6jWQpo6jBSZD0rvSKakDMF05/8IHppbqCuzG0fTp+4mYy2eWYg3T0ot3 CSGK+roOhcQsskag6iZ+pIFV7aqGxSbr6przXvag8HWfj3Bbk+pg4Oeo04AHr4gd5/D2 0hIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:date:message-id:subject:to; bh=zvTkpGuLnl3wo4Qaw/VEl3Zp1YEMLx7b7KNQLwGvbts=; b=dWrc4n0y4rqiJhyXZWiypTWjM3SooZBYToqE/ymEor+7CnIxTb/8nEgj6rvCV8xSHd JGq8soFtibrs9jH7zKbEoSuTcnoYo5oBhXPtxGtdfmSKaa9phrEP8rmkqs8ej/b4mct+ Sm8pAV3gLFF/rhB4Fows63KIsWtx+iJZMpNgHzcVPYZRuT31wptcfwf8kUaug7LE3+Zk uNqL/obNUUcaXv2ZxPpa6ryHcgJxWlnOB/og+5MrYTPVKVu67ixw1qkbSV+oLNh7Trgo J69MoTYyBjasPqBDkB5Glm/mlNxdl3zfvIFpNJcjm+VgT8Q4B06cnotIR2oRiXaJFwYw QbhQ== X-Gm-Message-State: AGi0PubMDAvIVleQr7mnvHFexayIlRX4vKI/QD2/SqUhFB2YPIziKmg+ CMLUE69bsE+i7L8Eg1m3lXcZQ7aOLsbyQXZKwD9BAg== X-Google-Smtp-Source: APiQypLyQETA7c2eloe1XhsfCo1yebDmpSbv8eDAXmJUaS2qElAXKXoC3lR3HAucKxKn7zUy8f9HRGr0326SnYN1ehI= X-Received: by 2002:a25:5c4:: with SMTP id 187mr26603393ybf.181.1588884839676; Thu, 07 May 2020 13:53:59 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 7 May 2020 16:53:59 -0400 From: Stefan Kangas MIME-Version: 1.0 Date: Thu, 7 May 2020 16:53:59 -0400 Message-ID: Subject: outline-mode: Add new commands like org-cycle and org=global-cycle To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::b33; envelope-from=stefankangas@gmail.com; helo=mail-yb1-xb33.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit 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 (--) Severity: wishlist Please consider adding two new commands to outline-mode similar to org-cycle and org=global-cycle. These are the suggested key bindings: (define-key outline-minor-mode-map (kbd "C-") 'outline-cycle) (define-key outline-minor-mode-map (kbd "S-") 'outline-global-cycle) They are already there in Org-mode and many users swear by them. (In Org-mode, org-cycle is bound to TAB instead of C-TAB, but I don't think that would work very well with outline-minor-mode.) Background: https://lists.gnu.org/archive/html/emacs-devel/2020-04/msg01887.html These keybindings were first suggested by Howard Melman in the above thread. Best regards, Stefan Kangas From debbugs-submit-bounces@debbugs.gnu.org Thu May 07 17:03:59 2020 Received: (at submit) by debbugs.gnu.org; 7 May 2020 21:03:59 +0000 Received: from localhost ([127.0.0.1]:44057 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jWngV-0005p6-5m for submit@debbugs.gnu.org; Thu, 07 May 2020 17:03:59 -0400 Received: from lists.gnu.org ([209.51.188.17]:48410) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jWngS-0005oy-OS for submit@debbugs.gnu.org; Thu, 07 May 2020 17:03:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53092) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jWngS-0002df-Ht for bug-gnu-emacs@gnu.org; Thu, 07 May 2020 17:03:56 -0400 Received: from mail-yb1-xb31.google.com ([2607:f8b0:4864:20::b31]:38117) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jWngR-0005dv-Me for bug-gnu-emacs@gnu.org; Thu, 07 May 2020 17:03:56 -0400 Received: by mail-yb1-xb31.google.com with SMTP id w19so217000ybs.5 for ; Thu, 07 May 2020 14:03:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:in-reply-to:references:mime-version:date:message-id:subject:to; bh=UGNZgDrtLZBLKUOa6iv+edXBKv+/6iGd3htjqOi6mF0=; b=C82KJM0LK7j3AIE994XF8SeN2cQOIP8eAn8d9PDokr+rZ0fiNWa2ngxctIB/5hUIRP IeK7Flz54F1ZSaPEuG7BguMuSakU6aOue/433OFnSBhs83n1f+qaTSQ0QcMlaq997sVx xNs9xjOujHXHqlaHGEqhczzlsSVP0gHpQ3JPRieJ42Iahwe701Qp6ULrqlNCbCzf/7mH WbjKyOymozrnD6XeeWLsFiuw0G8CsJUUJLEsxEBa0dIIJivbp+5x62PPquJoGpukaX3s W83K5Fu/BorUQ7FMK7QRmzCk8UayQyYtBwjBCZplAPXVMeVP+/gnXI9rrJK5/2tjP09K oscQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to; bh=UGNZgDrtLZBLKUOa6iv+edXBKv+/6iGd3htjqOi6mF0=; b=Q7YQWryKULIj2FItwoRIxSqVbYjYcgB5J9cEhqH5bMlD/fthVWM9IJaZ6af/4dl0jo CQIS5ZILqdspIepfuXCazPh1lnAgTZygiSk25Zmjc+ao4476/+kk30tYPdjlwhDvvZ1Y +MLs+Y7xAvuKNgeYwpSPxrqePse+xzPD3EpKh2rPZd3G/B/DIYeTrPGMlrgFUt5krGga 8JPRfEeduINWy6XTFZNbpBM8EfdlDJ3kBwKXWk2b98+Xk3OSJFolIitPtfEbZj4FUZGm IkrXEBNLbLylBHxXG0xBbB5V48MfYsjiDZqLmAzYBarOF7kxeeP8AJDVCvCSvR5Azf/1 Rqnw== X-Gm-Message-State: AGi0PubSBnfQmeCw5EhdinZRIYYpsO6EVSzmw4U8qjrwO55bCMm2TKFR iMtI3nLC4HMudy/VYwB46qRircDK8wXGozqmI721rw== X-Google-Smtp-Source: APiQypLClbwwjkIguouUt7SIz24zrrWKR1PQfx/fueza+NaQQ3zuxUmxxRQGyeQcsQUKYG1wQYhmYH3GZIJSs+gg4vc= X-Received: by 2002:a25:af86:: with SMTP id g6mr992189ybh.85.1588885434442; Thu, 07 May 2020 14:03:54 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 7 May 2020 17:03:54 -0400 From: Stefan Kangas In-Reply-To: References: MIME-Version: 1.0 Date: Thu, 7 May 2020 17:03:54 -0400 Message-ID: Subject: Re: outline-mode: Add new commands like org-cycle and org=global-cycle To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::b31; envelope-from=stefankangas@gmail.com; helo=mail-yb1-xb31.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit 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 (--) Stefan Kangas writes: > org-cycle and org=global-cycle. ^^^^^^^^^^^^^^^^ should be `org-global-cycle', of course. From debbugs-submit-bounces@debbugs.gnu.org Thu May 07 17:08:23 2020 Received: (at control) by debbugs.gnu.org; 7 May 2020 21:08:24 +0000 Received: from localhost ([127.0.0.1]:44061 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jWnkl-0005x3-Pk for submit@debbugs.gnu.org; Thu, 07 May 2020 17:08:23 -0400 Received: from mail-yb1-f178.google.com ([209.85.219.178]:36322) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jWnkk-0005wm-FS for control@debbugs.gnu.org; Thu, 07 May 2020 17:08:22 -0400 Received: by mail-yb1-f178.google.com with SMTP id a8so3679601ybs.3 for ; Thu, 07 May 2020 14:08:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:date:message-id:subject:to; bh=Jq0Sa+/KmbE1dk0diIJmZC7AdMQRlCbV8g/Zd1zV080=; b=rK4UgIQR+5ntXiBMgBzZ9z1PClXA+aYpyVT+OFsywQaPunGSvYtEV66P4JQ0o3QCDI 85BU7/ZIV4gQe3n18GJNpqx+Zt/PgoC2rfBnbMYwbbnZLWTL0toqKwREb1hBuxlQGHVO bS4sIXSRQIKqltnOvxWZbsuP8OXHGD+EsNwjYg42G7ywnIfosBQ7rwptuHEO089zw0tm 20lfKOLZDU+jtyWaw5kqieiyhzCfX+nX1BPn/c+dQr2xpKD7H3Jq9oGQgaC7nvjZSYVm DG4uqqPg0R4F5OhsGz3m9LFuxOxKAwvVX3GVnjg39EXKdBO2KH1M6DV8SqyNRcTwaMmz fcwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:date:message-id:subject:to; bh=Jq0Sa+/KmbE1dk0diIJmZC7AdMQRlCbV8g/Zd1zV080=; b=IlaCnpMJCkW/fwDXR5ReEDJIAmLn3m8MalmVpcK4767/IqgfIyR+72NI9tAmUkaFVh gQwzP6EqP8gBY8mU8nNJQaMQBsspe6niEnBmOYA4RJ24xE7qib00QpuQ0crhqXzWpat8 862f1twD8bxJna8b9Ey+UQoYUpjqVRBRR8FM1VKhtoIcGOvdvGk7vt+KcecISF+510CT skC8WUlqfj4hqd4sTkZd9f45eWepH876c41YQa2lhYQFENx/4wcjZY4w61easkrAU7my 9FhuCfmrRLmWqkJNRxYpfkr+pY7Nu01wRgBnBlphILakwIX8lZlymNK3h3CuGma/7hjD 0ymg== X-Gm-Message-State: AGi0PuZGBYEQ21w4EMpOoEWpj+9cB+MF1FSY25hyHgj/quur4e5Zfl/j SQcq7hIoKilVTBxj9CEIvwO5tyo+ewc2AdVRpPLTQA== X-Google-Smtp-Source: APiQypJQqxmnee6S+qXD49V5H6pQw4u0yNLodoXq38C4LnateM26L22bpsUJ7git7FmGm0cHYIf1S1dXR0trfZaOe4U= X-Received: by 2002:a25:4c04:: with SMTP id z4mr20153082yba.466.1588885696815; Thu, 07 May 2020 14:08:16 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 7 May 2020 17:08:16 -0400 From: Stefan Kangas MIME-Version: 1.0 Date: Thu, 7 May 2020 17:08:16 -0400 Message-ID: Subject: To: control@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: retitle 41130 outline-mode: Add new commands like org-cycle and org-global-cycle Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (stefankangas[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.219.178 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.219.178 listed in wl.mailspike.net] 2.0 BLANK_SUBJECT Subject is present but empty 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines X-Debbugs-Envelope-To: control 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 (+) retitle 41130 outline-mode: Add new commands like org-cycle and org-global-cycle From debbugs-submit-bounces@debbugs.gnu.org Tue May 12 18:59:55 2020 Received: (at 41130) by debbugs.gnu.org; 12 May 2020 22:59:55 +0000 Received: from localhost ([127.0.0.1]:56830 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jYdsQ-0004Yp-Vy for submit@debbugs.gnu.org; Tue, 12 May 2020 18:59:55 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:29453) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jYdsO-0004Y7-K6 for 41130@debbugs.gnu.org; Tue, 12 May 2020 18:59:53 -0400 X-Originating-IP: 91.129.104.245 Received: from mail.gandi.net (m91-129-104-245.cust.tele2.ee [91.129.104.245]) (Authenticated sender: juri@linkov.net) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id B08FC240003; Tue, 12 May 2020 22:59:45 +0000 (UTC) From: Juri Linkov To: Stefan Kangas Subject: Re: bug#41130: outline-mode: Add new commands like org-cycle and org=global-cycle Organization: LINKOV.NET References: Date: Wed, 13 May 2020 01:52:55 +0300 In-Reply-To: (Stefan Kangas's message of "Thu, 7 May 2020 16:53:59 -0400") Message-ID: <87lflwlrxk.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-Debbugs-Envelope-To: 41130 Cc: 41130@debbugs.gnu.org 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 (-) > (define-key outline-minor-mode-map (kbd "C-") 'outline-cycle) > (define-key outline-minor-mode-map (kbd "S-") 'outline-global-cycle) > > They are already there in Org-mode and many users swear by them. > (In Org-mode, org-cycle is bound to TAB instead of C-TAB, but I don't > think that would work very well with outline-minor-mode.) C-TAB switches tabs in tab-bar-mode. From debbugs-submit-bounces@debbugs.gnu.org Wed May 13 03:13:25 2020 Received: (at 41130) by debbugs.gnu.org; 13 May 2020 07:13:25 +0000 Received: from localhost ([127.0.0.1]:57235 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jYla0-0001Ha-Qp for submit@debbugs.gnu.org; Wed, 13 May 2020 03:13:25 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49242) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jYlZz-0001HL-JU for 41130@debbugs.gnu.org; Wed, 13 May 2020 03:13:23 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59253) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYlZu-0008Hl-D8; Wed, 13 May 2020 03:13:18 -0400 Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:35545) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1jYlZt-0007z2-5J; Wed, 13 May 2020 03:13:17 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailauth.nyi.internal (Postfix) with ESMTP id F330D27C0054; Wed, 13 May 2020 03:13:15 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Wed, 13 May 2020 03:13:15 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrleefgdduudehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefvrghsshhi lhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqnecuggftrfgrthhtvghrnheptd elieffkeeuffduueeffefhiedtjeeutdeuveegfffgtdejleekheegkeetkeevnecukfhp peelfedrvdefiedrudefkedrvddtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhphgvrhhsohhnrghl ihhthidqkeeijeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhnuhdrohhrghesfh grshhtmhgrihhlrdhfmh X-ME-Proxy: Received: from thinkpad-t440p (p5dec8a14.dip0.t-ipconnect.de [93.236.138.20]) by mail.messagingengine.com (Postfix) with ESMTPA id 377AB3066176; Wed, 13 May 2020 03:13:15 -0400 (EDT) From: Tassilo Horn To: Stefan Kangas Subject: Re: bug#41130: outline-mode: Add new commands like org-cycle and org=global-cycle References: Date: Wed, 13 May 2020 09:13:14 +0200 In-Reply-To: (Stefan Kangas's message of "Thu, 7 May 2020 16:53:59 -0400") Message-ID: <87wo5gxq7p.fsf@gnu.org> 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: -2.3 (--) X-Debbugs-Envelope-To: 41130 Cc: 41130@debbugs.gnu.org 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 (---) Stefan Kangas writes: > Severity: wishlist > > Please consider adding two new commands to outline-mode similar to > org-cycle and org=global-cycle. I'm also very much in favor of this. I think probably every user has his own incarnation of such a command. > These are the suggested key bindings: > > (define-key outline-minor-mode-map (kbd "C-") 'outline-cycle) > (define-key outline-minor-mode-map (kbd "S-") 'outline-global-cycle) Well, I think those shouldn't be commands in outline-minor-mode-map as they should only be active when point is on an outline heading, no? At least that's the case with org-mode where TAB acts quite differently depending on the context. So that's my personal incarnation: --8<---------------cut here---------------start------------->8--- (defmacro th/define-context-key (keymap key dispatch) "Define KEY in KEYMAP to execute according to DISPATCH. DISPATCH is a form that is evaluated and should return the command to be executed. If DISPATCH returns nil, then the command normally bound to KEY will be executed. Example: (th/define-context-key hs-minor-mode-map (kbd \"\") (cond ((not (hs-already-hidden-p)) 'hs-hide-block) ((hs-already-hidden-p) 'hs-show-block))) This will make show a hidden block. If the block is shown, then it'll be hidden." (declare (indent 2)) `(define-key ,keymap ,key `(menu-item "context-key" ignore :filter ,(lambda (&optional ignored) ,dispatch)))) (th/define-context-key outline-minor-mode-map (kbd "") (when (save-excursion (move-beginning-of-line 1) (looking-at-p outline-regexp)) 'outline-toggle-children)) --8<---------------cut here---------------end--------------->8--- Of course, outline-toggle-children is not exactly like org-cycle or org-global-cycle but it gets the job done. Bye, Tassilo PS: On a related note, I think there should be some standard facility for defining keys depending on the context. If Stefan hadn't shown me the menu-item-with-:filter trick some years ago, I would probably not found out myself. From debbugs-submit-bounces@debbugs.gnu.org Wed May 13 12:54:55 2020 Received: (at 41130) by debbugs.gnu.org; 13 May 2020 16:54:55 +0000 Received: from localhost ([127.0.0.1]:59228 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jYuel-00085q-7r for submit@debbugs.gnu.org; Wed, 13 May 2020 12:54:55 -0400 Received: from mail-wr1-f53.google.com ([209.85.221.53]:38530) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jYuej-00085e-1k for 41130@debbugs.gnu.org; Wed, 13 May 2020 12:54:53 -0400 Received: by mail-wr1-f53.google.com with SMTP id e1so297627wrt.5 for <41130@debbugs.gnu.org>; Wed, 13 May 2020 09:54:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version; bh=qAG7HYdq7O1YYr+zXne87gkZ1U9UyyVqrjiODQolFx0=; b=d726cAsd4ctdsxQLOWMreXNbdh4lznFGTJgdG3cZ0JvN5Owx8QjL1dlWUmfPkPPd2X 0RWYW/UDoJNZ3qfLydSpBv5+VSuDA2NPVqFcuEto6WPU2UoiAgpw7/bsFIPeLDDLzAQF 2kG036YaVWy6+Sn32cpD/LRd/NJgzv6RghmYYQxEIt41faBg2AxnndJGlw6+plUDrIp6 uo+iV+LAxF9HSSj2ihjuAU1O7X70wLQSSkCOiJ3DAAD9TtFPASet8ai33Nv21nA3aE5D rS0xSaWBNbg3FfHHKtx3bnfjYpUkbZ8gYx+yge5BsQJ5fxltY0+ojMrgB1SRc85XZXsx xPiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version; bh=qAG7HYdq7O1YYr+zXne87gkZ1U9UyyVqrjiODQolFx0=; b=VjaMuBhHcX4RFyBsn0iJ/XHMPDEVCWzOLtLTOQMbWI6l7dOsCYVz7un+Hv7ApSwvsG CdQlKI1pGzpZip4PldVKJYJj8TPnlIAyLtzfDEoZbw4ZNK8qt2Jd9UE23KwdZ/0cUfnV qh/tfiVlDE2oqVh2lrQH9CRllzqJ02F9jHwPyv1piPVsHYKEpqHzKxahwqukytMh2nSq uypakYCBZcOjZ97j3+VYvQpnU+3kKTGIZT/NX4sqX2FYGmI49CM/3fpkMUJveaxtnXWN sfonEblZpiMaA8zCG4rSG6BaATNmsHfzZtvqfH+SRFk3ZZPFRPBbZ7RTnkuUjh/tIHWU rvxw== X-Gm-Message-State: AOAM5319xdIvGg5dvATly2p++jLGbd/l1xdvGOgg5CPnHCDRGnk3kw8i 2DJbNzYta2CDe7ifxtVZm8LllONB0qY= X-Google-Smtp-Source: ABdhPJwdjXYXrlaREvimoqAFUPz1tDMJUJG1zFfidQRShj57OZwWIA/CURk3GazZOqS6uGclRp9d4g== X-Received: by 2002:adf:c651:: with SMTP id u17mr279103wrg.416.1589388886693; Wed, 13 May 2020 09:54:46 -0700 (PDT) Received: from rpluim-mac ([2a01:e34:ecfc:a860:a89b:280c:f9be:8a87]) by smtp.gmail.com with ESMTPSA id c193sm10400338wme.37.2020.05.13.09.54.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 May 2020 09:54:45 -0700 (PDT) From: Robert Pluim To: Tassilo Horn Subject: Re: bug#41130: outline-mode: Add new commands like org-cycle and org=global-cycle References: <87wo5gxq7p.fsf@gnu.org> Date: Wed, 13 May 2020 18:54:44 +0200 In-Reply-To: <87wo5gxq7p.fsf@gnu.org> (Tassilo Horn's message of "Wed, 13 May 2020 09:13:14 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41130 Cc: 41130@debbugs.gnu.org, Stefan Kangas 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, 13 May 2020 09:13:14 +0200, Tassilo Horn said: Tassilo> PS: On a related note, I think there should be some standard facility Tassilo> for defining keys depending on the context. If Stefan hadn't shown me Tassilo> the menu-item-with-:filter trick some years ago, I would probably not Tassilo> found out myself. You can set a 'keymap property on buffer text. Of course then you have to make sure that the property is kept up to date.... Robert From debbugs-submit-bounces@debbugs.gnu.org Wed May 13 14:51:43 2020 Received: (at 41130) by debbugs.gnu.org; 13 May 2020 18:51:43 +0000 Received: from localhost ([127.0.0.1]:59533 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jYwTm-0004n6-W3 for submit@debbugs.gnu.org; Wed, 13 May 2020 14:51:43 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38586) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jYwTl-0004mu-EH for 41130@debbugs.gnu.org; Wed, 13 May 2020 14:51:42 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:43517) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYwTg-0000vu-55; Wed, 13 May 2020 14:51:36 -0400 Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:40773) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1jYwTf-0002IN-SX; Wed, 13 May 2020 14:51:35 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailauth.nyi.internal (Postfix) with ESMTP id 5F44727C0054; Wed, 13 May 2020 14:51:35 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Wed, 13 May 2020 14:51:35 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrleeggdduvdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefvrghsshhi lhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqnecuggftrfgrthhtvghrnheptd elieffkeeuffduueeffefhiedtjeeutdeuveegfffgtdejleekheegkeetkeevnecukfhp peelfedrvdefiedrudefkedrvddtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhphgvrhhsohhnrghl ihhthidqkeeijeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhnuhdrohhrghesfh grshhtmhgrihhlrdhfmh X-ME-Proxy: Received: from thinkpad-t440p (p5dec8a14.dip0.t-ipconnect.de [93.236.138.20]) by mail.messagingengine.com (Postfix) with ESMTPA id E1C803066319; Wed, 13 May 2020 14:51:33 -0400 (EDT) From: Tassilo Horn To: Robert Pluim Subject: Re: bug#41130: outline-mode: Add new commands like org-cycle and org=global-cycle References: <87wo5gxq7p.fsf@gnu.org> Date: Wed, 13 May 2020 20:51:30 +0200 In-Reply-To: (Robert Pluim's message of "Wed, 13 May 2020 18:54:44 +0200") Message-ID: <87d077eki5.fsf@gnu.org> 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: -2.3 (--) X-Debbugs-Envelope-To: 41130 Cc: 41130@debbugs.gnu.org, Stefan Kangas 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 (---) Robert Pluim writes: >>>>>> On Wed, 13 May 2020 09:13:14 +0200, Tassilo Horn said: > > Tassilo> PS: On a related note, I think there should be some > Tassilo> standard facility for defining keys depending on the > Tassilo> context. If Stefan hadn't shown me the > Tassilo> menu-item-with-:filter trick some years ago, I would > Tassilo> probably not found out myself. > > You can set a 'keymap property on buffer text. Of course then you have > to make sure that the property is kept up to date.... Yes, that's not something which could be done easily for users. And it restricts dispatch to where point is on. FWIW, in my uses of th/define-context-key I also dispatch on the syntax at point or even last-command-event in order to do something else when hitting the key twice. Anyway, I don't want to hijack this bug report. Bye, Tassilo From debbugs-submit-bounces@debbugs.gnu.org Mon May 18 22:45:19 2020 Received: (at 41130) by debbugs.gnu.org; 19 May 2020 02:45:19 +0000 Received: from localhost ([127.0.0.1]:48732 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jasFr-0000bZ-Gq for submit@debbugs.gnu.org; Mon, 18 May 2020 22:45:19 -0400 Received: from mail-qk1-f179.google.com ([209.85.222.179]:39611) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jasFo-0000b2-IQ; Mon, 18 May 2020 22:45:16 -0400 Received: by mail-qk1-f179.google.com with SMTP id 142so766984qkl.6; Mon, 18 May 2020 19:45:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc :content-transfer-encoding; bh=yMP9pSpYCmjovbXMPU5h2jN+wT3Torh3x6JBeslYFcs=; b=KKLx/xo25ZH/QAg2RZzUq/dc6nw+WwU7UqKfSxEOJpiO4Gky7s3BFVBn99XZ5EYUey FrkHJaCau1PVeWQYbGX+XjWFv6cpOyE9p7jHJMPN5hoVyzFJMRfeoNKPpBfypIhghNuo UY+qnXgCPOaW3HxJFX9e34dcnjbNaxav0S8ANYS4cmuhWTelgd/oIM3fvQkqjoQ6JCxt 5YOUoSpCeW1mMR+Hg86BLGQjq4lfQ0VB+FHKqC5p8CbovHLlJaP+Dg2+WIqRXEE4Q/so hcXpDLcSP5Emie7BEOdl1ouGrg94vqV7dyNLi5dXmdaqW1AJk+9hAofkEfRaS52E0xoE eTCw== X-Gm-Message-State: AOAM533HvBoAwk7bhdqv8oucHLqq0SLrhC0wC+nJTsWM6HxZubmHaBJ1 A6KKiJQo1xeqgZ22NpCf9qZ1k/my+TvLxo0Vfxg= X-Google-Smtp-Source: ABdhPJznylKBxdpMaBRXhOKWmBtMfymHgk2ZgRZI+NBfq6DRk97rJRkS9teSs3Y+SwSkYbf3OfqJhYlcjKL5iISKsew= X-Received: by 2002:a25:9304:: with SMTP id f4mr19287903ybo.309.1589856310837; Mon, 18 May 2020 19:45:10 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 18 May 2020 19:45:10 -0700 From: Stefan Kangas In-Reply-To: <452A6049-893A-4E7E-8349-541D276FAD19@gmail.com> (Yuan Fu's message of "Mon, 11 May 2020 21:52:25 -0400") References: <452A6049-893A-4E7E-8349-541D276FAD19@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Date: Mon, 18 May 2020 19:45:10 -0700 Message-ID: Subject: Re: bug#41198: 27.0.60; [PATCH] heading cycling command for outline To: Yuan Fu Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 41130 Cc: 41130@debbugs.gnu.org, 41198@debbugs.gnu.org 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: -0.5 (/) forcemerge 41130 41198 thanks Yuan Fu writes: > Add two commands that cycles a heading (like that in Org mode) in outline= -mode: > > - outline-cycle: cycles between =E2=80=9Chide all=E2=80=9D, =E2=80=9Csub = headings=E2=80=9D and =E2=80=9Cshow all=E2=80=9D state. They are called =E2= =80=9CFOLDED=E2=80=9D, =E2=80=9CCHILDREN=E2=80=9D, =E2=80=9CSUBTREE=E2=80= =9D in Org mode. > - outline-cycle-buffer: cycles between =E2=80=9Conly top level headings= =E2=80=9D, =E2=80=9Call headings=E2=80=9D, =E2=80=9Cshow all=E2=80=9D state= s Thanks for working on this. I've tested your patch, and it seems to work as advertised. > Could this be useful? I think it could. I have previously sent the wishlist Bug#41130, which I have now merged with this bug. I have seen no objections to that proposal, so I hope that it is uncontroversial. In Bug#41130, I also suggest to add the same keybinding as in org-mode: TAB and S-TAB. Could you add such keybindings to outline-mode-map in your patch? I think we also need ChangeLog in the commit message, an entry in NEWS, and updates to the manual. > +(defun outline-cycle () > + "Cycle between =E2=80=9Chide all=E2=80=9D, =E2=80=9Cheadings only=E2= =80=9D and =E2=80=9Cshow all=E2=80=9D. > + > +=E2=80=9CHide all=E2=80=9D means hide all subheadings and their bodies. > +=E2=80=9CHeadings only=E2=80=9D means show sub headings but not their bo= dies. > +=E2=80=9CShow all=E2=80=9D means show all subheadings and their bodies." I can't remember seeing double quotes used like that before in doc strings. Correct me if I'm wrong, but wouldn't we normally use `single-quotes' for something like this? Best regards, Stefan Kangas From debbugs-submit-bounces@debbugs.gnu.org Mon May 18 23:00:46 2020 Received: (at 41130) by debbugs.gnu.org; 19 May 2020 03:00:46 +0000 Received: from localhost ([127.0.0.1]:48782 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jasUn-0001g8-QW for submit@debbugs.gnu.org; Mon, 18 May 2020 23:00:46 -0400 Received: from mail-qk1-f178.google.com ([209.85.222.178]:44691) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jasUm-0001ZB-1v for 41130@debbugs.gnu.org; Mon, 18 May 2020 23:00:44 -0400 Received: by mail-qk1-f178.google.com with SMTP id b6so13000432qkh.11 for <41130@debbugs.gnu.org>; Mon, 18 May 2020 20:00:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=CjoxFK2/Eri8NcOduHQYh+9Z5/9WYCwoCFLMtnZ6kTQ=; b=rZT4prMm+I/1kcwJHmwS3LpPZHRBAg8+H3sbM7ME4yHAqcQnd/db2I1PQjnzGBWWYr 2Wt6+CsHfvvJmM2Lu0Ff1tBu9oFG3xUNyMKXPB4adyGldJD4sOkiVqgtK/WTWBsc902o HpvNcvotuYOjZQsPHOc530JfsyMVXHP4XuTern74vOX62lV5NKjHD8itVbgJXQTwKidB bQm/kOBu0aC6egbMyAqh/v9r7pdhtoJhk6gowLNUwWXiY97UG8ykItjxKbyO2msHHCMj Se0kkvf/AZg1uFQmBuvlUGJH/X824aTYLdPnVVSw1AOvhIF7DOHQwLbgo9hSGQ/WO9Jn ypkQ== X-Gm-Message-State: AOAM531SP2LssVypIxW579OsZ9mXPNslZWMqaxGXVdrzRUWql4HQXUl+ gJVdjbF0EpkBqKhUK/diRYN4jXIWe4y/wlQksI0= X-Google-Smtp-Source: ABdhPJxGSYqBr4+zXHR8iCTkdLcjkIuFF02QSEyGdC2fNM17ZfnrFzspb0Bm+Pla+G00005/UVwcVKNT5sgl1iDpee0= X-Received: by 2002:a25:9709:: with SMTP id d9mr17976506ybo.85.1589857236926; Mon, 18 May 2020 20:00:36 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 18 May 2020 20:00:36 -0700 From: Stefan Kangas In-Reply-To: <87lflwlrxk.fsf@mail.linkov.net> (Juri Linkov's message of "Wed, 13 May 2020 01:52:55 +0300") References: <87lflwlrxk.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Date: Mon, 18 May 2020 20:00:36 -0700 Message-ID: Subject: Re: bug#41130: outline-mode: Add new commands like org-cycle and org-global-cycle To: Juri Linkov Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 41130 Cc: 41130@debbugs.gnu.org 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: -0.5 (/) Juri Linkov writes: >> (define-key outline-minor-mode-map (kbd "C-") 'outline-cycle) >> (define-key outline-minor-mode-map (kbd "S-") 'outline-global-cycle) >> >> They are already there in Org-mode and many users swear by them. >> (In Org-mode, org-cycle is bound to TAB instead of C-TAB, but I don't >> think that would work very well with outline-minor-mode.) > > C-TAB switches tabs in tab-bar-mode. Sorry, it seems I wrote this bug report in a very confusing way. Please let me try again. One part would be to add: (define-key outline-mode-map (kbd "") 'outline-cycle) (define-key outline-mode-map (kbd "S-") 'outline-global-cycle) I also think we should also consider: (define-key outline-minor-mode-map (kbd "C-") 'outline-cycle) (define-key outline-minor-mode-map (kbd "S-") 'outline-global-cycle) If there is a conflict with tab-bar-mode on C-TAB, maybe we could use M-TAB instead? Best regards, Stefan Kangas From debbugs-submit-bounces@debbugs.gnu.org Mon May 18 23:06:11 2020 Received: (at 41130) by debbugs.gnu.org; 19 May 2020 03:06:11 +0000 Received: from localhost ([127.0.0.1]:48786 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jasa3-0003F0-GT for submit@debbugs.gnu.org; Mon, 18 May 2020 23:06:11 -0400 Received: from mail-qk1-f177.google.com ([209.85.222.177]:34207) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jasZz-0003Ek-DH for 41130@debbugs.gnu.org; Mon, 18 May 2020 23:06:10 -0400 Received: by mail-qk1-f177.google.com with SMTP id 190so13082339qki.1 for <41130@debbugs.gnu.org>; Mon, 18 May 2020 20:06:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:in-reply-to:references:mime-version:date:message-id:subject:to :cc; bh=RlTbA55H5ESa9GYl2BSOxxnrpl05V0BM3uqfLXQHRAM=; b=VT32aIwxx66BmbYFpJjjYlfaXrBHU2G1/R6GiapIM89OlenWYP6h+LXDtuC6n8UAKW bJMYcLhQX0avqLQO24QM/RIYXHsZZjZcQMxGn3PwPaW7bu5Ko+ScuKGyGHVTRMKzCycL Rn7QiQWor02GPXIof3EUA2HIBdjVGFM8wiXUC028nm9hah/p0ILZolShW2hihjGQFXsS vWJ0eYVxaGsdq7qDcYISKDvSAPCPFlIMogD/Qxo0hUriztGdRpsvqSrXuj13CxbNXhbN daMERWYde+XLZ5dm/PUUzKYBvQQqqgKY4zXQj3vmeVorTGbVQOXTVJHZmcdORtSRujNk aChw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc; bh=RlTbA55H5ESa9GYl2BSOxxnrpl05V0BM3uqfLXQHRAM=; b=D59qpqx1jYlAsStOHHNEbzvdklAMq4s3Rlb77TNECx2mbK+f5hq9ezQ8QJvwbrClEU VTEoj5UZ3CXEjf62fIr5RgccemwDx90NhMe58WJollPRoM9QBVerf5XtWlPMoBzW/1d7 R0PfWQF0kDZjv1DHPN9whbLvfNBpFeWba/KGMiPw+c/loeafctw39rCZnV4v52Quv5ur HwKo83PIxMAR0pbh3YNGQ5E5W8uKuTHkQ6MBTMsnP2zZO6IOpOFkashDIwoBO0PY2iCq /Ne1yWATN3FBF2Sc+BiBeTEevSixhD20/S1jNEifuf8MtQ8SrlGXKQ9Ykp/oQVeSSA1u 4G0w== X-Gm-Message-State: AOAM531sfzLQHO2ZSiQGIoku6qeQK2V0kKul28Y61lJsEe9wu6zi/gqN pFCpD00+cDQ83bVMqxnlLLotQ69lrHbBlx1+Rd/rcw== X-Google-Smtp-Source: ABdhPJwRXthehUQxJTgAE7iDxcZ01r5Bkjcz2q4b5A0lGvP/kHnsWOf4apWjyO/G0MhE6AuJ6DQ/inNPPk4P0e0Huo0= X-Received: by 2002:a25:4c04:: with SMTP id z4mr30199106yba.466.1589857561857; Mon, 18 May 2020 20:06:01 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 18 May 2020 20:06:00 -0700 From: Stefan Kangas In-Reply-To: <87wo5gxq7p.fsf@gnu.org> References: <87wo5gxq7p.fsf@gnu.org> MIME-Version: 1.0 Date: Mon, 18 May 2020 20:06:00 -0700 Message-ID: Subject: Re: bug#41130: outline-mode: Add new commands like org-cycle and org=global-cycle To: Tassilo Horn Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41130 Cc: 41130@debbugs.gnu.org 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 (-) Tassilo Horn writes: > I'm also very much in favor of this. I think probably every user has > his own incarnation of such a command. I wish I was one of these users. ;-) > Well, I think those shouldn't be commands in outline-minor-mode-map as > they should only be active when point is on an outline heading, no? At > least that's the case with org-mode where TAB acts quite differently > depending on the context. This is a good point, yes. > --8<---------------cut here---------------start------------->8--- > (defmacro th/define-context-key (keymap key dispatch) > "Define KEY in KEYMAP to execute according to DISPATCH. > > DISPATCH is a form that is evaluated and should return the > command to be executed. > > If DISPATCH returns nil, then the command normally bound to KEY > will be executed. > > Example: > > (th/define-context-key hs-minor-mode-map > (kbd \"\") > (cond > ((not (hs-already-hidden-p)) > 'hs-hide-block) > ((hs-already-hidden-p) > 'hs-show-block))) > > This will make show a hidden block. If the block is > shown, then it'll be hidden." > (declare (indent 2)) > `(define-key ,keymap ,key > `(menu-item "context-key" ignore > :filter ,(lambda (&optional ignored) > ,dispatch)))) > > (th/define-context-key outline-minor-mode-map (kbd "") > (when (save-excursion > (move-beginning-of-line 1) > (looking-at-p outline-regexp)) > 'outline-toggle-children)) > --8<---------------cut here---------------end--------------->8--- Interesting. I suppose the only question I have is this: how do we turn this into something we could add to Emacs? There is also the question of C-TAB conflicting with tab-bar-mode. > PS: On a related note, I think there should be some standard facility > for defining keys depending on the context. If Stefan hadn't shown me > the menu-item-with-:filter trick some years ago, I would probably not > found out myself. Agreed. I had not seen that before, until now. Best regards, Stefan Kangas From debbugs-submit-bounces@debbugs.gnu.org Tue May 19 14:32:17 2020 Received: (at 41130) by debbugs.gnu.org; 19 May 2020 18:32:17 +0000 Received: from localhost ([127.0.0.1]:50953 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jb72C-00046j-6L for submit@debbugs.gnu.org; Tue, 19 May 2020 14:32:16 -0400 Received: from mail-qk1-f171.google.com ([209.85.222.171]:36438) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jb721-0003sA-EQ; Tue, 19 May 2020 14:32:06 -0400 Received: by mail-qk1-f171.google.com with SMTP id y22so623943qki.3; Tue, 19 May 2020 11:32:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=qrH1UbxjXXW4oks7QAHIe9LdluTx9zGRQEMZ+Cs0qQ8=; b=MJH3GhoaGfK/Md7WbwacZJZaIIafVObQHZqgEgYMU+ilgG0sGQIPuwEDdvSdoSo8pG lXpkzmmhJvrkpm69BOXik8AV0LpFFB5F4njszflRUdVSYRaNfkVwqxAb1V0dTeBh55jc kRVFrXR6JvwsjdodUJgUBjqKEQFbd0I/HtkyV66TlFBmPWX/hEKS/3CxOaC+QHk0iCtO ms+DPGdSObGNPK7t+QF1l6L8UT+JVWb4LmX6rouher9iKofS4MNZNEdiTiSSkEXC/EQ0 t8EpiKIB2/XQ0Eh9KNytWevLkBvATHcFNAYcKMbAAdac0qZU17UA0SaSuDoDWD28NteN 68JQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=qrH1UbxjXXW4oks7QAHIe9LdluTx9zGRQEMZ+Cs0qQ8=; b=aZSFCVNmMTB3e49bGMUgbzvjxiCbxngKkRdRqk3M0tVMN8vDJFrwntm0Rhw38TuA+l IHVL/xFoFqiBt0/GzZBK0S/U6ygqK5vt/8iUTxL9hUWqiX57cFl/9kNBNaVgdbZg0UdW 9YldSYFa8SorD2jpTQCqfaPanfSE4lGTHfIb4kdrMrYG3xlpq+w4YG284awAwADVXxh8 fVSpu+SjLHT+GTiKQLVuEfcwJz+PBzDBeb/briVgdnyqqFG1NF38vDC+hak4E53vtLCN Rd9Z8T+wOt6cMSJa6VSfyh2/DFtAxKE1ek7fU4kFgwIb0K3fh6DSB0UCTjMF9G9X81R5 zt9Q== X-Gm-Message-State: AOAM530igyPzb5kayQ/NrqCRB0CnmlVCS6TQ/yfue8PHIwEKuQ10azPv TgejcrzyFnhtvFZgsEB1bfB38JtlOMAJ0Q== X-Google-Smtp-Source: ABdhPJw+cp1YNXD727FPFhKiWoIL00W8yOmwWMmA/FDh2FlmVX5hDsBmBmMG/oc+BhfYH5kvos174w== X-Received: by 2002:a37:498a:: with SMTP id w132mr678106qka.221.1589913114608; Tue, 19 May 2020 11:31:54 -0700 (PDT) Received: from [192.168.1.5] (c-174-60-229-153.hsd1.pa.comcast.net. [174.60.229.153]) by smtp.gmail.com with ESMTPSA id w43sm430486qtw.68.2020.05.19.11.31.53 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 May 2020 11:31:54 -0700 (PDT) From: Yuan Fu Message-Id: Content-Type: multipart/mixed; boundary="Apple-Mail=_C326A5FC-00B3-4BF7-ACC6-56221F24B8BE" Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: bug#41198: 27.0.60; [PATCH] heading cycling command for outline Date: Tue, 19 May 2020 14:31:52 -0400 In-Reply-To: To: Stefan Kangas References: <452A6049-893A-4E7E-8349-541D276FAD19@gmail.com> X-Mailer: Apple Mail (2.3608.80.23.2.2) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41130 Cc: 41130@debbugs.gnu.org, 41198@debbugs.gnu.org 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 (-) --Apple-Mail=_C326A5FC-00B3-4BF7-ACC6-56221F24B8BE Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On May 18, 2020, at 10:45 PM, Stefan Kangas wrote: >=20 > forcemerge 41130 41198 > thanks >=20 > Yuan Fu writes: >=20 >> Add two commands that cycles a heading (like that in Org mode) in = outline-mode: >>=20 >> - outline-cycle: cycles between =E2=80=9Chide all=E2=80=9D, =E2=80=9Csu= b headings=E2=80=9D and =E2=80=9Cshow all=E2=80=9D state. They are = called =E2=80=9CFOLDED=E2=80=9D, =E2=80=9CCHILDREN=E2=80=9D, = =E2=80=9CSUBTREE=E2=80=9D in Org mode. >> - outline-cycle-buffer: cycles between =E2=80=9Conly top level = headings=E2=80=9D, =E2=80=9Call headings=E2=80=9D, =E2=80=9Cshow all=E2=80= =9D states >=20 > Thanks for working on this. I've tested your patch, and it seems to > work as advertised. Thanks. >=20 >> Could this be useful? >=20 > I think it could. I have previously sent the wishlist Bug#41130, = which > I have now merged with this bug. I have seen no objections to that > proposal, so I hope that it is uncontroversial. >=20 > In Bug#41130, I also suggest to add the same keybinding as in = org-mode: > TAB and S-TAB. Could you add such keybindings to outline-mode-map in > your patch? It seems that the outline-mode bindings all live under C-c. Maybe C-c = TAB and C-c S-TAB? Should I ask on emacs-devel for for suggestions? >=20 > I think we also need ChangeLog in the commit message, an entry in = NEWS, > and updates to the manual. I updated NEWS and the manual. For ChangeLog, I thought that=E2=80=99s = automatically generated from commit messages? >=20 >> +(defun outline-cycle () >> + "Cycle between =E2=80=9Chide all=E2=80=9D, =E2=80=9Cheadings = only=E2=80=9D and =E2=80=9Cshow all=E2=80=9D. >> + >> +=E2=80=9CHide all=E2=80=9D means hide all subheadings and their = bodies. >> +=E2=80=9CHeadings only=E2=80=9D means show sub headings but not = their bodies. >> +=E2=80=9CShow all=E2=80=9D means show all subheadings and their = bodies." >=20 > I can't remember seeing double quotes used like that before in doc > strings. Correct me if I'm wrong, but wouldn't we normally use > `single-quotes' for something like this? >=20 Done. Yuan --Apple-Mail=_C326A5FC-00B3-4BF7-ACC6-56221F24B8BE Content-Disposition: attachment; filename=outline.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="outline.patch" Content-Transfer-Encoding: quoted-printable diff=20--git=20a/doc/emacs/text.texi=20b/doc/emacs/text.texi=0Aindex=20= 281e24421c..e2f829b7c5=20100644=0A---=20a/doc/emacs/text.texi=0A+++=20= b/doc/emacs/text.texi=0A@@=20-1207,6=20+1207,15=20@@=20Outline=20= Visibility=0A=20it=20completely=20reveals=20all=20the=20@var{n}=20top=20= levels=20and=20the=20body=20lines=0A=20before=20the=20first=20heading.=0A= =20=0A+@findex=20outline-cycle=0A+@findex=20outline-cycle-buffer=0A+=20=20= Outline=20also=20provides=20two=20convenience=20commands=20to=20cycle=20= the=0A+visibility=20of=20each=20heading=20and=20the=20whole=20buffer.=20=20= @code{outline-cycle}=0A+cycles=20the=20current=20heading=20between=20= "hide=20all",=20"subheadings",=20and=0A+"show=20all"=20state.=20=20= @code{outline-cycle-buffer}=20cycles=20the=20whole=20buffer=0A+between=20= "only=20top-level=20headings",=20"all=20headings=20and=20subheadings",=20= and=0A+"show=20all"=20states.=0A+=0A=20@anchor{Outline=20Search}=0A=20= @findex=20reveal-mode=0A=20@vindex=20search-invisible=0Adiff=20--git=20= a/etc/NEWS=20b/etc/NEWS=0Aindex=20025d5c14a7..3ecec6d0e4=20100644=0A---=20= a/etc/NEWS=0A+++=20b/etc/NEWS=0A@@=20-288,6=20+288,14=20@@=20prefix=20on=20= the=20Subject=20line=20in=20various=20languages.=0A=20These=20new=20= navigation=20commands=20are=20bound=20to=20'n'=20and=20'p'=20in=0A=20= 'apropos-mode'.=0A=20=0A+**=20Outline=0A+=0A+***=20New=20commands=20to=20= cycle=20heading=20visibility.=0A+'outline-cycle'=20cycles=20the=20= current=20heading=20between=20"hide=20all",=0A+"subheadings",=20and=20= "show=20all"=20state.=20'outline-cycle-buffer'=20cycles=20the=0A+whole=20= buffer=20between=20"only=20top-level=20headings",=20"all=20headings=20= and=0A+subheadings",=20and=20"show=20all"=20states.=0A+=0A=20=0C=0A=20*=20= New=20Modes=20and=20Packages=20in=20Emacs=2028.1=0A=20=0Adiff=20--git=20= a/lisp/outline.el=20b/lisp/outline.el=0Aindex=2028ea8a86e6..8dd1b4483c=20= 100644=0A---=20a/lisp/outline.el=0A+++=20b/lisp/outline.el=0A@@=20= -1118,6=20+1118,77=20@@=20outline-headers-as-kill=0A=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20(insert=20"\n\n"))))))=0A=20=20= =20=20=20=20=20=20=20=20=20(kill-new=20(buffer-string)))))))=0A=20=0A= +(defun=20outline--cycle-state=20()=0A+=20=20"Return=20the=20cycle=20= state=20of=20current=20heading.=0A+Return=20either=20'hide-all,=20= 'headings-only,=20or=20'show-all."=0A+=20=20(save-excursion=0A+=20=20=20=20= (let=20(start=20end=20ov-list=20heading-end)=0A+=20=20=20=20=20=20= (outline-back-to-heading)=0A+=20=20=20=20=20=20(setq=20start=20(point))=0A= +=20=20=20=20=20=20(outline-end-of-heading)=0A+=20=20=20=20=20=20(setq=20= heading-end=20(point))=0A+=20=20=20=20=20=20(outline-end-of-subtree)=0A+=20= =20=20=20=20=20(setq=20end=20(point))=0A+=20=20=20=20=20=20(setq=20= ov-list=20(cl-remove-if-not=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20(lambda=20(o)=20(eq=20(overlay-get=20o=20= 'invisible)=20'outline))=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20(overlays-in=20start=20end)))=0A+=20=20=20=20=20=20= (cond=20((eq=20ov-list=20nil)=20'show-all)=0A+=20=20=20=20=20=20=20=20=20= =20=20=20;;=20(eq=20(length=20ov-list)=201)=20wouldn=E2=80=99t=20work:=20= what=20if=20there=20is=0A+=20=20=20=20=20=20=20=20=20=20=20=20;;=20one=20= folded=20subheading?=0A+=20=20=20=20=20=20=20=20=20=20=20=20((and=20(eq=20= (overlay-end=20(car=20ov-list))=20end)=0A+=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20(eq=20(overlay-start=20(car=20ov-list))=20= heading-end))=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20'hide-all)=0A+=20= =20=20=20=20=20=20=20=20=20=20=20(t=20'headings-only)))))=0A+=0A+(defun=20= outline-has-subheading-p=20()=0A+=20=20"Return=20t=20if=20this=20heading=20= has=20subheadings,=20nil=20otherwise."=0A+=20=20(save-excursion=0A+=20=20= =20=20(outline-back-to-heading)=0A+=20=20=20=20(<=20(save-excursion=20= (outline-next-heading)=20(point))=0A+=20=20=20=20=20=20=20= (save-excursion=20(outline-end-of-subtree)=20(point)))))=0A+=0A+(defun=20= outline-cycle=20()=0A+=20=20"Cycle=20between=20`hide=20all',=20`headings=20= only'=20and=20`show=20all'.=0A+=0A+`Hide=20all'=20means=20hide=20all=20= subheadings=20and=20their=20bodies.=0A+`Headings=20only'=20means=20show=20= sub=20headings=20but=20not=20their=20bodies.=0A+`Show=20all'=20means=20= show=20all=20subheadings=20and=20their=20bodies."=0A+=20=20(interactive)=0A= +=20=20(pcase=20(outline--cycle-state)=0A+=20=20=20=20('hide-all=20(if=20= (outline-has-subheading-p)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20(progn=20(outline-show-children)=0A+=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20(message=20"Only=20= headings"))=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (outline-show-subtree)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20(message=20"Show=20all")))=0A+=20=20=20=20('headings-only=20= (outline-show-subtree)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20(message=20"Show=20all"))=0A+=20=20=20=20('show-all=20= (outline-hide-subtree)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (message=20"Hide=20all"))))=0A+=0A+(defvar-local=20= outline--cycle-buffer-state=20'show-all=0A+=20=20"Internal=20variable=20= used=20for=20tracking=20buffer=20cycle=20state.")=0A+=0A+(defun=20= outline-cycle-buffer=20()=0A+=20=20"Cycle=20the=20whole=20buffer=20like=20= in=20`outline-cycle'."=0A+=20=20(interactive)=0A+=20=20(pcase=20= outline--cycle-buffer-state=0A+=20=20=20=20('show-all=20(save-excursion=0A= +=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20(let=20((start-point=20= (point)))=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (while=20(not=20(eq=20(point)=20start-point))=0A+=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20(outline-up-heading=201))=0A+=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (outline-hide-sublevels=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20(progn=20(outline-back-to-heading)=0A+=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20(funcall=20= 'outline-level)))))=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (setq=20outline--cycle-buffer-state=20'top-level)=0A+=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20(message=20"Top=20level=20headings"))=0A+=20=20=20= =20('top-level=20(outline-show-all)=0A+=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20(outline-hide-region-body=20(point-min)=20(point-max))=0A+=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20(setq=20= outline--cycle-buffer-state=20'all-heading)=0A+=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20(message=20"All=20headings"))=0A+=20=20=20=20= ('all-heading=20(outline-show-all)=0A+=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20(setq=20outline--cycle-buffer-state=20'show-all)=0A+=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20(message=20"Show=20= all"))))=0A+=0A=20(provide=20'outline)=0A=20(provide=20'noutline)=0A=20=0A= --Apple-Mail=_C326A5FC-00B3-4BF7-ACC6-56221F24B8BE-- From debbugs-submit-bounces@debbugs.gnu.org Tue May 19 18:25:26 2020 Received: (at 41130) by debbugs.gnu.org; 19 May 2020 22:25:26 +0000 Received: from localhost ([127.0.0.1]:51349 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbAfu-0003rW-HB for submit@debbugs.gnu.org; Tue, 19 May 2020 18:25:26 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:49795) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbAfr-0003qv-Fu for 41130@debbugs.gnu.org; Tue, 19 May 2020 18:25:23 -0400 X-Originating-IP: 91.129.97.200 Received: from mail.gandi.net (m91-129-97-200.cust.tele2.ee [91.129.97.200]) (Authenticated sender: juri@linkov.net) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 4732E240003; Tue, 19 May 2020 22:25:15 +0000 (UTC) From: Juri Linkov To: Stefan Kangas Subject: Re: bug#41130: outline-mode: Add new commands like org-cycle and org-global-cycle Organization: LINKOV.NET References: <87lflwlrxk.fsf@mail.linkov.net> Date: Wed, 20 May 2020 01:04:01 +0300 In-Reply-To: (Stefan Kangas's message of "Mon, 18 May 2020 20:00:36 -0700") Message-ID: <87h7wbbmzy.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-Debbugs-Envelope-To: 41130 Cc: 41130@debbugs.gnu.org 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 (-) >>> (define-key outline-minor-mode-map (kbd "C-") 'outline-cycle) >>> (define-key outline-minor-mode-map (kbd "S-") 'outline-global-cycle) >>> >>> They are already there in Org-mode and many users swear by them. >>> (In Org-mode, org-cycle is bound to TAB instead of C-TAB, but I don't >>> think that would work very well with outline-minor-mode.) >> >> C-TAB switches tabs in tab-bar-mode. > > Sorry, it seems I wrote this bug report in a very confusing way. > Please let me try again. > > One part would be to add: > > (define-key outline-mode-map (kbd "") 'outline-cycle) > (define-key outline-mode-map (kbd "S-") 'outline-global-cycle) > > I also think we should also consider: > > (define-key outline-minor-mode-map (kbd "C-") 'outline-cycle) > (define-key outline-minor-mode-map (kbd "S-") 'outline-global-cycle) > > If there is a conflict with tab-bar-mode on C-TAB, maybe we could use > M-TAB instead? M-TAB switches desktop windows in many window managers. From debbugs-submit-bounces@debbugs.gnu.org Tue May 19 18:36:10 2020 Received: (at 41130) by debbugs.gnu.org; 19 May 2020 22:36:10 +0000 Received: from localhost ([127.0.0.1]:51378 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbAqH-000492-Rp for submit@debbugs.gnu.org; Tue, 19 May 2020 18:36:10 -0400 Received: from mail-qk1-f177.google.com ([209.85.222.177]:38189) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbAqF-00048k-V6; Tue, 19 May 2020 18:36:08 -0400 Received: by mail-qk1-f177.google.com with SMTP id f189so1667879qkd.5; Tue, 19 May 2020 15:36:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc:content-transfer-encoding; bh=UpNnLmgn8vD7zUpU0fvb+3rpeFGNHmJoVsRF7gk4uZQ=; b=C1/Cx8TzFjoiPpcOcNVKkfCt41OvIyLt5vEIolw5WSfYtaSA/E9DbxZBqi04rgvgK1 J5zTqycC2hz1kBGrWYDYrm2rxDxCfuYhUFWuwCmxXZC4ewumTbczj9lLBQvd/VfeMavZ bqMOtgPMFWXOOUmwERXgIvsdvD+uawSDF3f6de6vZgUXGc/cFApBbUCNtnz9qKAB3FnX sqGegHMKVRO43kPsox2b/MGLnwEEE7JZBURkUR6q1bG8BoOJnanQZMy4BEuYgq9pbEbT bRyiMI8qK1jUC3CDaKJDac375ii80rcaBSs1RYQK+DuglWHW72KOc//G85XS6ZzbhN2V 6sow== X-Gm-Message-State: AOAM532Pev4aCo9nb7IlQBQkShY8Qw1YgT5kKM7YyerFFSRwPRyKI11l GbtWZ7VXJMHfgxbSpla/JJ8tdc4y6o2+Y2cqGDI= X-Google-Smtp-Source: ABdhPJxp+ymVu1l7rTF0w2AmHPOM3enjv+WWAnnv3mAlJ4J0cwu6MlVci5xNcv/dQgc+9vblM/X6xGvqqYn0inDWH1g= X-Received: by 2002:a25:9304:: with SMTP id f4mr2634766ybo.309.1589927762319; Tue, 19 May 2020 15:36:02 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 19 May 2020 15:36:01 -0700 From: Stefan Kangas In-Reply-To: References: <452A6049-893A-4E7E-8349-541D276FAD19@gmail.com> MIME-Version: 1.0 Date: Tue, 19 May 2020 15:36:01 -0700 Message-ID: Subject: Re: bug#41198: 27.0.60; [PATCH] heading cycling command for outline To: Yuan Fu Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 41130 Cc: 41130@debbugs.gnu.org, 41198@debbugs.gnu.org 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: -0.5 (/) Yuan Fu writes: >> In Bug#41130, I also suggest to add the same keybinding as in org-mode: >> TAB and S-TAB. Could you add such keybindings to outline-mode-map in >> your patch? > > It seems that the outline-mode bindings all live under C-c. Maybe C-c > TAB and C-c S-TAB? Should I ask on emacs-devel for for suggestions? I think it is better to use the same keys as org-mode, since one important motivation for this feature is precisely to align the outline-mode keybindings with org-mode. This aspect would be significantly diminished by using other keys, IMHO. My impression was that also there was consensus around (or at least no objections to) that idea the last time we discussed it. I would therefore propose to just add TAB and S-TAB to the patch, but allow a week or two before pushing to give others a chance to comment here. But, if you really want to, of course you could also ask on emacs-devel. Worst case, we get to have another round of bikeshedding. ;-) >> I think we also need ChangeLog in the commit message, an entry in NEWS, >> and updates to the manual. > > I updated NEWS and the manual. For ChangeLog, I thought that=E2=80=99s > automatically generated from commit messages? That is my understanding too. But I only saw a diff attached, not a patch with a commit message. That is what I tried to say, but I could've been more clear. (CONTRIBUTE suggests using `git format-patch -1' to email a patch, which includes the commit message.) > +@findex outline-cycle > +@findex outline-cycle-buffer > + Outline also provides two convenience commands to cycle the > +visibility of each heading and the whole buffer. @code{outline-cycle} > +cycles the current heading between "hide all", "subheadings", and > +"show all" state. @code{outline-cycle-buffer} cycles the whole buffer > +between "only top-level headings", "all headings and subheadings", and > +"show all" states. [...] > +*** New commands to cycle heading visibility. > +'outline-cycle' cycles the current heading between "hide all", > +"subheadings", and "show all" state. 'outline-cycle-buffer' cycles the > +whole buffer between "only top-level headings", "all headings and > +subheadings", and "show all" states. Looks good to me (but should refer to the above keybindings if they're added). Best regards, Stefan Kangas From debbugs-submit-bounces@debbugs.gnu.org Tue May 19 21:37:39 2020 Received: (at 41130) by debbugs.gnu.org; 20 May 2020 01:37:39 +0000 Received: from localhost ([127.0.0.1]:51645 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbDfu-0004Pp-TI for submit@debbugs.gnu.org; Tue, 19 May 2020 21:37:39 -0400 Received: from mail-qk1-f170.google.com ([209.85.222.170]:37626) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbDfq-0004PU-VZ; Tue, 19 May 2020 21:37:36 -0400 Received: by mail-qk1-f170.google.com with SMTP id m11so2085395qka.4; Tue, 19 May 2020 18:37:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=VpIr1QcZKldXX8v8VYkKPHWnRedJda5xRPXwJAK0sqs=; b=d+vqLdWDxy7xcP287Q+nS+1QuS51kLO0TShAzhNUBUGHKkJE7gt0aIdR0pvNbhsiyC Lf7V9kMk4N2ibW80Ywb8qRkshrvAzVJP5qLPOrOkYk6RxZ/XaWszzyls83gsyDh9pgKo IfL/woeVZqhBMdyVZYycbib2mlbMCI2JM0IgQdgrEPgYgcWQzzXDEoQRvi1mws44JzsI QqXOXaIumrGmHFcvCas/wZJxsRL+4DdsuWmo3rPzEYnXi78lG5GXyS+eBnlFFRuXA9KJ +ED20DulzEJ2vE57Tm3jDt9qToZUG328ybP30QNM3wRZumhPElx3hPvXkrhp9jhHlc9e Qyrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=VpIr1QcZKldXX8v8VYkKPHWnRedJda5xRPXwJAK0sqs=; b=mKXPpUdluVhjTlSzfYgkOlvvgYBwyqUlnsJaalO7YhWB0CoVXDHwFJJVIwlAwokScp 3718S22n4dnGPWLwMrKKKQlbflzPNV26bNXCgHnFZgviQUuA5WrFiaqQsAuUd/3mxlZ9 6vnanA5jFf7K1JJUxM23DY9De8toNyoPsbfcZUsJ0FBpR4H9ZZx8LygcwW1mIU6ahsmr OMjGdcrXYAehcCTXFTyp7rzB1BiY3vymYmbEak1WHDqx7wqlIZZqqKlqme/gZ/4S3hal i31nyqNSHrbO0/qWHaedG1bq9ESsfYJ2i6pVNp2eUDmCq8s9Tu7ktr0FRYBkZO/tQvT9 758Q== X-Gm-Message-State: AOAM532A6uFHDcSHOBVixcaRS0uJSLmofo1IHz6JSh4LXe5WCI00ifKd eoDUKgwOcxYR8KfP1vTEcPfTCpc49DUx2g== X-Google-Smtp-Source: ABdhPJwEbOfRR0+SBNNf7ESFlX51o43v2iVDdZM2LTDOBldNotmnD0w4bSIJtX9Epj/gYBKUZI3XgA== X-Received: by 2002:a37:7143:: with SMTP id m64mr2573475qkc.215.1589938649107; Tue, 19 May 2020 18:37:29 -0700 (PDT) Received: from [192.168.1.5] (c-174-60-229-153.hsd1.pa.comcast.net. [174.60.229.153]) by smtp.gmail.com with ESMTPSA id n31sm1486530qtc.36.2020.05.19.18.37.28 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 May 2020 18:37:28 -0700 (PDT) From: Yuan Fu Message-Id: <92D944EF-6BF9-4635-AC05-4B51B386D5C7@gmail.com> Content-Type: multipart/mixed; boundary="Apple-Mail=_27772D71-6B93-4500-B432-5A6FDB60B7C8" Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: bug#41198: 27.0.60; [PATCH] heading cycling command for outline Date: Tue, 19 May 2020 21:37:26 -0400 In-Reply-To: To: Stefan Kangas References: <452A6049-893A-4E7E-8349-541D276FAD19@gmail.com> X-Mailer: Apple Mail (2.3608.80.23.2.2) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41130 Cc: 41130@debbugs.gnu.org, 41198@debbugs.gnu.org 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 (-) --Apple-Mail=_27772D71-6B93-4500-B432-5A6FDB60B7C8 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On May 19, 2020, at 6:36 PM, Stefan Kangas wrote: >=20 > Yuan Fu writes: >=20 >>> In Bug#41130, I also suggest to add the same keybinding as in = org-mode: >>> TAB and S-TAB. Could you add such keybindings to outline-mode-map = in >>> your patch? >>=20 >> It seems that the outline-mode bindings all live under C-c. Maybe C-c >> TAB and C-c S-TAB? Should I ask on emacs-devel for for suggestions? >=20 > I think it is better to use the same keys as org-mode, since one > important motivation for this feature is precisely to align the > outline-mode keybindings with org-mode. This aspect would be > significantly diminished by using other keys, IMHO. >=20 > My impression was that also there was consensus around (or at least no > objections to) that idea the last time we discussed it. I would > therefore propose to just add TAB and S-TAB to the patch, but allow a > week or two before pushing to give others a chance to comment here. >=20 > But, if you really want to, of course you could also ask on = emacs-devel. > Worst case, we get to have another round of bikeshedding. ;-) I added TAB and S-TAB bindings. Though S-TAB appears to be on = my machine (Mac) for both terminal and GUI so I bound that instead. Is = that so for other machines? To reduce the possible allergy, I made the = TAB binding conditional=E2=80=94only invokes outline-cycle when point is = on a heading. A minor thing: if the motivation is to align with Org mode, should I = change the text message to align with Org mode? It prints =E2=80=9Cshow = all=E2=80=9D, =E2=80=9Chide all=E2=80=9D, etc (because they make sense), = but Org mode prints stuff like =E2=80=9CCHILDREN=E2=80=9D, = =E2=80=9CSUBTREE=E2=80=9D, etc. >=20 >>> I think we also need ChangeLog in the commit message, an entry in = NEWS, >>> and updates to the manual. >>=20 >> I updated NEWS and the manual. For ChangeLog, I thought that=E2=80=99s >> automatically generated from commit messages? >=20 > That is my understanding too. >=20 > But I only saw a diff attached, not a patch with a commit message. = That > is what I tried to say, but I could've been more clear. >=20 > (CONTRIBUTE suggests using `git format-patch -1' to email a patch, = which > includes the commit message.) Ah sorry, I switched to a new way to generate patches and didn=E2=80=99t = notice that the commit message is gone. It is included this time. >=20 >> +@findex outline-cycle >> +@findex outline-cycle-buffer >> + Outline also provides two convenience commands to cycle the >> +visibility of each heading and the whole buffer. = @code{outline-cycle} >> +cycles the current heading between "hide all", "subheadings", and >> +"show all" state. @code{outline-cycle-buffer} cycles the whole = buffer >> +between "only top-level headings", "all headings and subheadings", = and >> +"show all" states. > [...] >> +*** New commands to cycle heading visibility. >> +'outline-cycle' cycles the current heading between "hide all", >> +"subheadings", and "show all" state. 'outline-cycle-buffer' cycles = the >> +whole buffer between "only top-level headings", "all headings and >> +subheadings", and "show all" states. >=20 > Looks good to me (but should refer to the above keybindings if they're > added). Yuan --Apple-Mail=_27772D71-6B93-4500-B432-5A6FDB60B7C8 Content-Disposition: attachment; filename=outline.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="outline.patch" Content-Transfer-Encoding: quoted-printable =46rom=20243d6dec5c33c7add2fd12fe0da3e49a134cf0a9=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20Yuan=20Fu=20=0ADate:=20Sun,=20= 10=20May=202020=2017:10:32=20-0400=0ASubject:=20[PATCH]=20Add=20cycling=20= commands=20to=20outline=0A=0A*=20lisp/outline.el=20= (outline--cycle-state,=20outline-has-subheading-p,=0Aoutline-cycle,=20= outline-cycle-buffer):=20New=20functions.=0A(outline-mode-map):=20Add=20= key=20bindings=20for=20the=20two=20new=20commands.=0A= (outline--cycle-buffer-state):=20New=20variable.=0A*=20= doc/emacs/text.text=20(Outline=20Visibility):=20Add=20'outline-cycle'=20= and=0A'outline-cycle-buffer'.=0A*=20etc/NEWS=20(Outline):=20Record=20the=20= change.=0A---=0A=20doc/emacs/text.texi=20|=2010=20++++++=0A=20etc/NEWS=20= =20=20=20=20=20=20=20=20=20=20=20|=20=209=20++++++=0A=20lisp/outline.el=20= =20=20=20=20|=2077=20+++++++++++++++++++++++++++++++++++++++++++++=0A=20= 3=20files=20changed,=2096=20insertions(+)=0A=0Adiff=20--git=20= a/doc/emacs/text.texi=20b/doc/emacs/text.texi=0Aindex=20= 281e24421c..9c2822ce15=20100644=0A---=20a/doc/emacs/text.texi=0A+++=20= b/doc/emacs/text.texi=0A@@=20-1207,6=20+1207,16=20@@=20Outline=20= Visibility=0A=20it=20completely=20reveals=20all=20the=20@var{n}=20top=20= levels=20and=20the=20body=20lines=0A=20before=20the=20first=20heading.=0A= =20=0A+@findex=20outline-cycle=0A+@findex=20outline-cycle-buffer=0A+=20=20= Outline=20also=20provides=20two=20convenience=20commands=20to=20cycle=20= the=0A+visibility=20of=20each=20section=20and=20the=20whole=20buffer.=20=20= Typing=20@kbd{TAB}=20on=0A+a=20heading=20invokes=20@code{outline-cycle},=20= which=20cycles=20the=20current=0A+section=20between=20"hide=20all",=20= "subheadings",=20and=20"show=20all"=20state.=0A+Typing=20@kbd{S-TAB}=20= invokes=20@code{outline-cycle-buffer},=20which=20cycles=0A+the=20whole=20= buffer=20between=20"only=20top-level=20headings",=20"all=20headings=20= and=0A+subheadings",=20and=20"show=20all"=20states.=0A+=0A=20= @anchor{Outline=20Search}=0A=20@findex=20reveal-mode=0A=20@vindex=20= search-invisible=0Adiff=20--git=20a/etc/NEWS=20b/etc/NEWS=0Aindex=20= 025d5c14a7..72057af94d=20100644=0A---=20a/etc/NEWS=0A+++=20b/etc/NEWS=0A= @@=20-288,6=20+288,15=20@@=20prefix=20on=20the=20Subject=20line=20in=20= various=20languages.=0A=20These=20new=20navigation=20commands=20are=20= bound=20to=20'n'=20and=20'p'=20in=0A=20'apropos-mode'.=0A=20=0A+**=20= Outline=0A+=0A+***=20New=20commands=20to=20cycle=20heading=20visibility=0A= +=0A+Typing=20'TAB'=20on=20a=20heading=20cycles=20the=20current=20= section=20between=20"hide=0A+all",=20"subheadings",=20and=20"show=20all"=20= state.=20Typing=20'S-TAB'=20anywhere=20in=0A+the=20buffer=20cycles=20the=20= whole=20buffer=20between=20"only=20top-level=20headings",=0A+"all=20= headings=20and=20subheadings",=20and=20"show=20all"=20states.=0A+=0A=20=0C= =0A=20*=20New=20Modes=20and=20Packages=20in=20Emacs=2028.1=0A=20=0Adiff=20= --git=20a/lisp/outline.el=20b/lisp/outline.el=0Aindex=20= 28ea8a86e6..0d792dd28c=20100644=0A---=20a/lisp/outline.el=0A+++=20= b/lisp/outline.el=0A@@=20-179,6=20+179,12=20@@=20outline-mode-map=0A=20=20= =20(let=20((map=20(make-sparse-keymap)))=0A=20=20=20=20=20(define-key=20= map=20"\C-c"=20outline-mode-prefix-map)=0A=20=20=20=20=20(define-key=20= map=20[menu-bar]=20outline-mode-menu-bar-map)=0A+=20=20=20=20;;=20Only=20= takes=20effect=20if=20the=20point=20is=20on=20a=20heading.=0A+=20=20=20=20= (define-key=20map=20(kbd=20"TAB")=0A+=20=20=20=20=20=20`(menu-item=20""=20= outline-cycle=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= :filter=20,(lambda=20(cmd)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20(when=20(outline-on-heading-p)=20= cmd))))=0A+=20=20=20=20(define-key=20map=20(kbd=20"")=20= #'outline-cycle-buffer)=0A=20=20=20=20=20map))=0A=20=0A=20(defvar=20= outline-font-lock-keywords=0A@@=20-1118,6=20+1124,77=20@@=20= outline-headers-as-kill=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20(insert=20"\n\n"))))))=0A=20=20=20=20=20=20=20=20=20=20=20= (kill-new=20(buffer-string)))))))=0A=20=0A+(defun=20outline--cycle-state=20= ()=0A+=20=20"Return=20the=20cycle=20state=20of=20current=20heading.=0A= +Return=20either=20'hide-all,=20'headings-only,=20or=20'show-all."=0A+=20= =20(save-excursion=0A+=20=20=20=20(let=20(start=20end=20ov-list=20= heading-end)=0A+=20=20=20=20=20=20(outline-back-to-heading)=0A+=20=20=20=20= =20=20(setq=20start=20(point))=0A+=20=20=20=20=20=20= (outline-end-of-heading)=0A+=20=20=20=20=20=20(setq=20heading-end=20= (point))=0A+=20=20=20=20=20=20(outline-end-of-subtree)=0A+=20=20=20=20=20= =20(setq=20end=20(point))=0A+=20=20=20=20=20=20(setq=20ov-list=20= (cl-remove-if-not=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20(lambda=20(o)=20(eq=20(overlay-get=20o=20'invisible)=20= 'outline))=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20(overlays-in=20start=20end)))=0A+=20=20=20=20=20=20(cond=20((eq=20= ov-list=20nil)=20'show-all)=0A+=20=20=20=20=20=20=20=20=20=20=20=20;;=20= (eq=20(length=20ov-list)=201)=20wouldn=E2=80=99t=20work:=20what=20if=20= there=20is=0A+=20=20=20=20=20=20=20=20=20=20=20=20;;=20one=20folded=20= subheading?=0A+=20=20=20=20=20=20=20=20=20=20=20=20((and=20(eq=20= (overlay-end=20(car=20ov-list))=20end)=0A+=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20(eq=20(overlay-start=20(car=20ov-list))=20= heading-end))=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20'hide-all)=0A+=20= =20=20=20=20=20=20=20=20=20=20=20(t=20'headings-only)))))=0A+=0A+(defun=20= outline-has-subheading-p=20()=0A+=20=20"Return=20t=20if=20this=20heading=20= has=20subheadings,=20nil=20otherwise."=0A+=20=20(save-excursion=0A+=20=20= =20=20(outline-back-to-heading)=0A+=20=20=20=20(<=20(save-excursion=20= (outline-next-heading)=20(point))=0A+=20=20=20=20=20=20=20= (save-excursion=20(outline-end-of-subtree)=20(point)))))=0A+=0A+(defun=20= outline-cycle=20()=0A+=20=20"Cycle=20between=20`hide=20all',=20`headings=20= only'=20and=20`show=20all'.=0A+=0A+`Hide=20all'=20means=20hide=20all=20= subheadings=20and=20their=20bodies.=0A+`Headings=20only'=20means=20show=20= sub=20headings=20but=20not=20their=20bodies.=0A+`Show=20all'=20means=20= show=20all=20subheadings=20and=20their=20bodies."=0A+=20=20(interactive)=0A= +=20=20(pcase=20(outline--cycle-state)=0A+=20=20=20=20('hide-all=20(if=20= (outline-has-subheading-p)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20(progn=20(outline-show-children)=0A+=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20(message=20"Only=20= headings"))=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (outline-show-subtree)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20(message=20"Show=20all")))=0A+=20=20=20=20('headings-only=20= (outline-show-subtree)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20(message=20"Show=20all"))=0A+=20=20=20=20('show-all=20= (outline-hide-subtree)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (message=20"Hide=20all"))))=0A+=0A+(defvar-local=20= outline--cycle-buffer-state=20'show-all=0A+=20=20"Internal=20variable=20= used=20for=20tracking=20buffer=20cycle=20state.")=0A+=0A+(defun=20= outline-cycle-buffer=20()=0A+=20=20"Cycle=20the=20whole=20buffer=20like=20= in=20`outline-cycle'."=0A+=20=20(interactive)=0A+=20=20(pcase=20= outline--cycle-buffer-state=0A+=20=20=20=20('show-all=20(save-excursion=0A= +=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20(let=20((start-point=20= (point)))=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (while=20(not=20(eq=20(point)=20start-point))=0A+=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20(outline-up-heading=201))=0A+=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (outline-hide-sublevels=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20(progn=20(outline-back-to-heading)=0A+=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20(funcall=20= 'outline-level)))))=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (setq=20outline--cycle-buffer-state=20'top-level)=0A+=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20(message=20"Top=20level=20headings"))=0A+=20=20=20= =20('top-level=20(outline-show-all)=0A+=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20(outline-hide-region-body=20(point-min)=20(point-max))=0A+=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20(setq=20= outline--cycle-buffer-state=20'all-heading)=0A+=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20(message=20"All=20headings"))=0A+=20=20=20=20= ('all-heading=20(outline-show-all)=0A+=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20(setq=20outline--cycle-buffer-state=20'show-all)=0A+=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20(message=20"Show=20= all"))))=0A+=0A=20(provide=20'outline)=0A=20(provide=20'noutline)=0A=20=0A= --=20=0A2.26.1=0A=0A= --Apple-Mail=_27772D71-6B93-4500-B432-5A6FDB60B7C8 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii --Apple-Mail=_27772D71-6B93-4500-B432-5A6FDB60B7C8-- From debbugs-submit-bounces@debbugs.gnu.org Wed May 20 10:12:35 2020 Received: (at submit) by debbugs.gnu.org; 20 May 2020 14:12:35 +0000 Received: from localhost ([127.0.0.1]:53872 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbPSV-0002Ls-Hv for submit@debbugs.gnu.org; Wed, 20 May 2020 10:12:35 -0400 Received: from lists.gnu.org ([209.51.188.17]:53714) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbPSU-0002Lk-4I for submit@debbugs.gnu.org; Wed, 20 May 2020 10:12:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56112) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jbPST-0003FC-Tt for bug-gnu-emacs@gnu.org; Wed, 20 May 2020 10:12:33 -0400 Received: from ciao.gmane.io ([159.69.161.202]:47274) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jbPST-0003E0-5k for bug-gnu-emacs@gnu.org; Wed, 20 May 2020 10:12:33 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1jbPSQ-000KdV-3d for bug-gnu-emacs@gnu.org; Wed, 20 May 2020 16:12:30 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Howard Melman Subject: Re: bug#41130: bug#41198: 27.0.60; [PATCH] heading cycling command for outline Date: Wed, 20 May 2020 10:12:23 -0400 Message-ID: References: <452A6049-893A-4E7E-8349-541D276FAD19@gmail.com> <92D944EF-6BF9-4635-AC05-4B51B386D5C7@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (darwin) Cancel-Lock: sha1:05Hv94cfZU3v1o0yhe26e3MFuF8= Received-SPF: pass client-ip=159.69.161.202; envelope-from=geb-bug-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/20 10:12:30 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: 3 X-Spam_score: 0.3 X-Spam_bar: / X-Spam_report: (0.3 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NML_ADSP_CUSTOM_MED=0.9, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: submit 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: -0.9 (/) Yuan Fu writes: >> On May 19, 2020, at 6:36 PM, Stefan Kangas wrote: >> >> Yuan Fu writes: >> >>>> In Bug#41130, I also suggest to add the same keybinding as in org-mode: >>>> TAB and S-TAB. Could you add such keybindings to outline-mode-map in >>>> your patch? >>> >>> It seems that the outline-mode bindings all live under C-c. Maybe C-c >>> TAB and C-c S-TAB? Should I ask on emacs-devel for for suggestions? >> >> I think it is better to use the same keys as org-mode, since one >> important motivation for this feature is precisely to align the >> outline-mode keybindings with org-mode. This aspect would be >> significantly diminished by using other keys, IMHO. >> >> My impression was that also there was consensus around (or at least no >> objections to) that idea the last time we discussed it. I would >> therefore propose to just add TAB and S-TAB to the patch, but allow a >> week or two before pushing to give others a chance to comment here. My original motivation was just to use org's cycling concept to avoid having to remember all of outlines various commands and bindings. So regardless of where these commands end up, I think just having them is a big win. Of course if they exist, aligning them with org bindings would be very nice. The idea was to use this for code folding in programming modes. S-TAB doesn't typically have a binding so it's safe to use and aligns with org-mode. TAB is more problematic as it's typically bound to indenting commands. I don't think context awareness would solve the issue as you could want to indent or cycle when point is on a "heading". But if the other bindings (I think from bug#41198) for M-right and M-left were included they could substitute for indenting. So in a programming mode with outline-minor-mode enabled: - S-TAB can be used anywhere for global cycling - TAB on a heading is used for cycling - TAB not on a heading is used to indent - M-right and M-left anywhere can be used to indent/unindent I think this aligns with org-mode ('m not an org mode user). If someone is bothered by having to use M-arrows for indentation in this case, the answer is to not use outline-minor-mode in a programming mode or rebind outline-cycle. > A minor thing: if the motivation is to align with Org mode, should I > change the text message to align with Org mode? It prints “show all”, > “hide all”, etc (because they make sense), but Org mode prints stuff > like “CHILDREN”, “SUBTREE”, etc. IMHO consistency with outline terms is more important here. It would be helpful if outline and org agreed on terms. If they don't, then perhaps this could use both with org terms in parenthesis. -- Howard From debbugs-submit-bounces@debbugs.gnu.org Wed May 20 17:34:15 2020 Received: (at 41130) by debbugs.gnu.org; 20 May 2020 21:34:15 +0000 Received: from localhost ([127.0.0.1]:54503 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbWLu-0005fO-Rt for submit@debbugs.gnu.org; Wed, 20 May 2020 17:34:15 -0400 Received: from mail-yb1-f171.google.com ([209.85.219.171]:47081) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbWLs-0005fC-PN for 41130@debbugs.gnu.org; Wed, 20 May 2020 17:34:13 -0400 Received: by mail-yb1-f171.google.com with SMTP id s37so1732612ybe.13 for <41130@debbugs.gnu.org>; Wed, 20 May 2020 14:34:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:in-reply-to:references:mime-version:date:message-id:subject:to :content-transfer-encoding; bh=jusEjB3N9YhfAiB9QE3QngrrPPoVdQB1G+kH/MZHqVc=; b=Ly7fxC9Bpstt9/RLbjUt2uKu/4PFn1AdrloiZNfQF0ArDqnQcXtT63I8LzDu/cmlu7 UWRbzmnJCEVQ17aysAIaIhl+8GyVyP/EjMnGP4tu97K+I3vP2oSa+KTflZVDfyczCDTK CgLFOH8JdIOAgVj5l1b5kQ+5jMaW0yY5m3JNbVl834FJSN4nx86Csco5XGoVF8YAFi0j zcomDfR6oSXxvBPLWAjyDs+VVhFrgLIYWW1gu1Too7vu01dR4Qflm7hqC+YihOwYHCPe mHoS2Z/thDduCJ++UhO1rt/fpO3bXyKSpx7+vwsQ0OPriBRB99fwTZFDTyGt6BkdQeWI cV3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:content-transfer-encoding; bh=jusEjB3N9YhfAiB9QE3QngrrPPoVdQB1G+kH/MZHqVc=; b=tWZkBxJgIXy2fssR3dodp0dbQd/sbCqm6nwNNm0rHgAUyB6mFxxl0NZB2QaYyL0jXI x1BMw9za2jr0vdwYpRcTAkOL4mH9fJWaLHhOndddWAEjoMr8y1JDKzSKShoObnM8wADL WrqCvYzZDyxvOXcSwGOMac2bXTNWAIOPMgb/8+OtAUJInr7iHxQCP+vz3G7645awZN8l vAZpYX8jCCpOfYhuUQ+Pfq9V4Yk3BCN7Ho4XFAyELKP+YsMw6S3PaoBEFxDnf51GoQV8 y4LzeQ6UafdHxQWcZn05TBYQ3WaC6qr9KVn6+jh315YqkzNd5Wlre3ADMNzaxoQSFM5k l0UA== X-Gm-Message-State: AOAM530VlcQjy0PBDHrNmgWu4fldZq8K2L4/tqrDXcnIcNaj7a7mXfjV XQo3tTz0CkAcRjSrqYhJ/N1DiFOQLwL+mAYGiZg= X-Google-Smtp-Source: ABdhPJy6v7HjJ8/7xKbmcGCeyJ7HCcsSuMuL1FcsBuF6jZVNhOenRa8x2B1YK8xG39W/T1ycDZNiH+3dTd19aFIPt+E= X-Received: by 2002:a25:5f52:: with SMTP id h18mr10128955ybm.231.1590010447163; Wed, 20 May 2020 14:34:07 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 20 May 2020 14:34:06 -0700 From: Stefan Kangas In-Reply-To: References: <452A6049-893A-4E7E-8349-541D276FAD19@gmail.com> <92D944EF-6BF9-4635-AC05-4B51B386D5C7@gmail.com> MIME-Version: 1.0 Date: Wed, 20 May 2020 14:34:06 -0700 Message-ID: Subject: Re: bug#41130: bug#41198: 27.0.60; [PATCH] heading cycling command for outline To: Howard Melman , 41130@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41130 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 (-) Howard Melman writes: > So in a programming mode with outline-minor-mode enabled: > - S-TAB can be used anywhere for global cycling > - TAB on a heading is used for cycling > - TAB not on a heading is used to indent > - M-right and M-left anywhere can be used to indent/unindent Thanks. I think what you say makes sense for outline-minor-mode. We should take care to distinguish that case from outline-mode, however. >> A minor thing: if the motivation is to align with Org mode, should I >> change the text message to align with Org mode? It prints =E2=80=9Cshow = all=E2=80=9D, >> =E2=80=9Chide all=E2=80=9D, etc (because they make sense), but Org mode = prints stuff >> like =E2=80=9CCHILDREN=E2=80=9D, =E2=80=9CSUBTREE=E2=80=9D, etc. > > IMHO consistency with outline terms is more important > here. It would be helpful if outline and org agreed on > terms. If they don't, then perhaps this could use both with > org terms in parenthesis. I think outline-mode should also be internally consistent with itself. So I would suggest to stick to whatever terminology outline-mode uses elsewhere also for these commands. Maybe this suggests that the terminology in org-mode and outline-mode could be aligned also on this point? But that seems to be a different issue than the one at hand. Best regards, Stefan Kangas From debbugs-submit-bounces@debbugs.gnu.org Sun May 24 03:27:11 2020 Received: (at 41130) by debbugs.gnu.org; 24 May 2020 07:27:11 +0000 Received: from localhost ([127.0.0.1]:36376 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jcl29-0003WL-LI for submit@debbugs.gnu.org; Sun, 24 May 2020 03:27:11 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36818) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jcl28-0003W8-70 for 41130@debbugs.gnu.org; Sun, 24 May 2020 03:26:56 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:57380) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcl22-0000OY-V5; Sun, 24 May 2020 03:26:50 -0400 Received: from [2a01:e35:2fe1:f780:f51f:c177:3b23:439e] (port=36660 helo=guerry) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1jcl1y-0005bu-AJ; Sun, 24 May 2020 03:26:49 -0400 Received: by guerry (Postfix, from userid 1000) id 3CB761A604DE; Sun, 24 May 2020 09:26:45 +0200 (CEST) From: Bastien To: Stefan Kangas Subject: Re: bug#41130: outline-mode: Add new commands like org-cycle and org=global-cycle Organization: GNU References: Date: Sun, 24 May 2020 09:26:45 +0200 In-Reply-To: (Stefan Kangas's message of "Thu, 7 May 2020 16:53:59 -0400") Message-ID: <87k111hjyi.fsf@gnu.org> 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: -2.3 (--) X-Debbugs-Envelope-To: 41130 Cc: 41130@debbugs.gnu.org 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 (-) Stefan Kangas writes: > (define-key outline-minor-mode-map (kbd "C-") 'outline-cycle) ^^^^^^^ Why not just , when point is on an outline entry? -- Bastien From debbugs-submit-bounces@debbugs.gnu.org Sun May 24 03:29:57 2020 Received: (at 41130) by debbugs.gnu.org; 24 May 2020 07:29:57 +0000 Received: from localhost ([127.0.0.1]:36384 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jcl52-0003b4-SN for submit@debbugs.gnu.org; Sun, 24 May 2020 03:29:57 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37248) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jcl4v-0003am-NI for 41130@debbugs.gnu.org; Sun, 24 May 2020 03:29:56 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:57419) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcl4p-0000oQ-W8; Sun, 24 May 2020 03:29:44 -0400 Received: from [2a01:e35:2fe1:f780:f51f:c177:3b23:439e] (port=36664 helo=guerry) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1jcl4o-0001rQ-FZ; Sun, 24 May 2020 03:29:43 -0400 Received: by guerry (Postfix, from userid 1000) id 87AEA1A604DE; Sun, 24 May 2020 09:29:41 +0200 (CEST) From: Bastien To: Juri Linkov Subject: Re: bug#41130: outline-mode: Add new commands like org-cycle and org-global-cycle Organization: GNU References: <87lflwlrxk.fsf@mail.linkov.net> <87h7wbbmzy.fsf@mail.linkov.net> Date: Sun, 24 May 2020 09:29:41 +0200 In-Reply-To: <87h7wbbmzy.fsf@mail.linkov.net> (Juri Linkov's message of "Wed, 20 May 2020 01:04:01 +0300") Message-ID: <87y2phg596.fsf@gnu.org> 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: -2.3 (--) X-Debbugs-Envelope-To: 41130 Cc: 41130@debbugs.gnu.org, Stefan Kangas 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: >> If there is a conflict with tab-bar-mode on C-TAB, maybe we could use >> M-TAB instead? > > M-TAB switches desktop windows in many window managers. Indeed. I suggest using C-M-tab. `org-force-cycle-archived' is not so used IMHO. -- Bastien From debbugs-submit-bounces@debbugs.gnu.org Sun May 24 10:36:01 2020 Received: (at 41130) by debbugs.gnu.org; 24 May 2020 14:36:01 +0000 Received: from localhost ([127.0.0.1]:38435 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jcrjG-00083l-MO for submit@debbugs.gnu.org; Sun, 24 May 2020 10:36:01 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36914) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jcrjB-00083F-9V for 41130@debbugs.gnu.org; Sun, 24 May 2020 10:35:50 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:32809) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcrj4-0008Kd-G1; Sun, 24 May 2020 10:35:42 -0400 Received: from [176.228.60.248] (port=4819 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jcrj2-0002d8-Ia; Sun, 24 May 2020 10:35:41 -0400 Date: Sun, 24 May 2020 17:35:50 +0300 Message-Id: <83eer9xuwp.fsf@gnu.org> From: Eli Zaretskii To: Bastien In-Reply-To: <87y2phg596.fsf@gnu.org> (message from Bastien on Sun, 24 May 2020 09:29:41 +0200) Subject: Re: bug#41130: outline-mode: Add new commands like org-cycle and org-global-cycle References: <87lflwlrxk.fsf@mail.linkov.net> <87h7wbbmzy.fsf@mail.linkov.net> <87y2phg596.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 41130 Cc: 41130@debbugs.gnu.org, stefan@marxist.se, juri@linkov.net 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 (---) > From: Bastien > Date: Sun, 24 May 2020 09:29:41 +0200 > Cc: Stefan Kangas , 41130@debbugs.gnu.org > > Juri Linkov writes: > > >> If there is a conflict with tab-bar-mode on C-TAB, maybe we could use > >> M-TAB instead? > > > > M-TAB switches desktop windows in many window managers. > > Indeed. I suggest using C-M-tab. C-M-TAB is not available with some window managers. From debbugs-submit-bounces@debbugs.gnu.org Sun May 24 10:49:47 2020 Received: (at 41130) by debbugs.gnu.org; 24 May 2020 14:49:47 +0000 Received: from localhost ([127.0.0.1]:38462 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jcrwh-0008OD-K5 for submit@debbugs.gnu.org; Sun, 24 May 2020 10:49:47 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:33951) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jcrwg-0008O1-O7 for 41130@debbugs.gnu.org; Sun, 24 May 2020 10:49:46 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 8EDB35C00D3; Sun, 24 May 2020 10:49:41 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Sun, 24 May 2020 10:49:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=warpmail.net; h= from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-type; s=fm3; bh=wUeh53rHx4rBP04D1E8nzPolbi aY3K+pe2osyPrlEEc=; b=djvAPMsWV9iHEYbFGcRmaejsP0edzQJfjCPPpW+sa2 fhtidhfDRJ29cwd47t9gxZJPxDDGaPO1EbjHYlkzeNg0RI9zuO2oa27E50Ad9Wa4 cxaj8P6LlS/BW5Cvb/X6jZppbMbtUIU6TL9Z2Gf8rKg/NjSdfQepEoPW8cPCXOQ8 J+g1tasLfhHprSM6E8BeK4Ux8lKsE+Rw/vXto2yIwqNnrWvie0rW4rDLU30SN++M mx8jY/rYtwnZ2ldLas2Mb8rvxFsguY+CWGGjGkWUMLVR/L6D3ZHfTL8A9XN9eJ49 WV2+ivSaYgQgrBbzLRtvKbQKO9KaSXKQnjqq3abc5gLA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=wUeh53 rHx4rBP04D1E8nzPolbiaY3K+pe2osyPrlEEc=; b=TfYUR/6mqaB24AV/vjrS1C CyivfBeZnbodjVfdBBIKLxM7RNGEKXwdFpDLts00DyLW8DQataOmm1B21jbAOuPr r24X/1wLA0vXX2nkc9zIioLTOoplwcYN+Jku8JDc1gv2tlkPUEzQ+psfv/7VnsO6 ieZEYeGOClmLAmvzZtUozVSmIMDSSwtmg240NOTacPJYNcftvG2ZTkZKOWKGZjS8 VIGHmZ2JCg4MosIxW/35T4siSALgQUjytKxjnIyIiyYpddKp4BDowrWJV9cTiUu/ i9Ja8Bmz2OXxeLAlUNSq/BSBaVO+uDphMfJg4lVqR8Zmnavik0TuN+7O+n4UKrYw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedruddukedgkedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpedfrfhhihhl ihhpucfmrddfuceophhhihhlihhpseifrghrphhmrghilhdrnhgvtheqnecuggftrfgrth htvghrnhepudekueevlefgfeeigefhgeelteevieehhfetjefgieduheegvdfhffejhfff leffnecukfhppeejledrvdduledrudelledrgeejnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepphhhihhlihhpseifrghrphhmrghilhdrnhgv th X-ME-Proxy: Received: from localhost (p4fdbc72f.dip0.t-ipconnect.de [79.219.199.47]) by mail.messagingengine.com (Postfix) with ESMTPA id C62F03280059; Sun, 24 May 2020 10:49:40 -0400 (EDT) From: "Philip K." To: Bastien Subject: Re: bug#41130: outline-mode: Add new commands like org-cycle and org=global-cycle References: <87k111hjyi.fsf@gnu.org> Date: Sun, 24 May 2020 16:49:34 +0200 In-Reply-To: <87k111hjyi.fsf@gnu.org> (Bastien's message of "Sun, 24 May 2020 09:26:45 +0200") Message-ID: <87wo51pev5.fsf@warpmail.net> 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.7 (/) X-Debbugs-Envelope-To: 41130 Cc: 41130@debbugs.gnu.org, Stefan Kangas 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 (-) Bastien writes: > Stefan Kangas writes: > >> (define-key outline-minor-mode-map (kbd "C-") 'outline-cycle) > ^^^^^^^ > Why not just , when point is on an outline entry? I've tried something like this once, but it becomes quite annoying in lisp modes, because "(" becomes a outline entry, making it tricky to indent some code with TAB from anywhere on the line. -- Philip K. From debbugs-submit-bounces@debbugs.gnu.org Sun May 24 12:27:02 2020 Received: (at 41130) by debbugs.gnu.org; 24 May 2020 16:27:02 +0000 Received: from localhost ([127.0.0.1]:38509 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jctSn-0002Ae-QI for submit@debbugs.gnu.org; Sun, 24 May 2020 12:27:02 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44968) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jctSm-0002AA-QQ for 41130@debbugs.gnu.org; Sun, 24 May 2020 12:27:01 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34197) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jctSh-0003DZ-2S; Sun, 24 May 2020 12:26:55 -0400 Received: from lns-bzn-32-82-254-31-120.adsl.proxad.net ([82.254.31.120]:58676 helo=guerry) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1jctSe-00038n-TP; Sun, 24 May 2020 12:26:53 -0400 Received: by guerry (Postfix, from userid 1000) id 03CB91A605CD; Sun, 24 May 2020 18:26:50 +0200 (CEST) From: Bastien To: Eli Zaretskii Subject: Re: bug#41130: outline-mode: Add new commands like org-cycle and org-global-cycle Organization: GNU References: <87lflwlrxk.fsf@mail.linkov.net> <87h7wbbmzy.fsf@mail.linkov.net> <87y2phg596.fsf@gnu.org> <83eer9xuwp.fsf@gnu.org> Date: Sun, 24 May 2020 18:26:50 +0200 In-Reply-To: <83eer9xuwp.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 24 May 2020 17:35:50 +0300") Message-ID: <87k111jo39.fsf@gnu.org> 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: -2.3 (--) X-Debbugs-Envelope-To: 41130 Cc: 41130@debbugs.gnu.org, stefan@marxist.se, juri@linkov.net 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 (---) Eli Zaretskii writes: > C-M-TAB is not available with some window managers. Yes, right. Would C-S-TAB be a better candidate then? -- Bastien From debbugs-submit-bounces@debbugs.gnu.org Sun May 24 12:30:28 2020 Received: (at 41130) by debbugs.gnu.org; 24 May 2020 16:30:28 +0000 Received: from localhost ([127.0.0.1]:38518 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jctW7-0002HF-Mn for submit@debbugs.gnu.org; Sun, 24 May 2020 12:30:27 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45256) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jctW5-0002Gy-Ho for 41130@debbugs.gnu.org; Sun, 24 May 2020 12:30:25 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34232) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jctW0-0003hY-6d; Sun, 24 May 2020 12:30:20 -0400 Received: from lns-bzn-32-82-254-31-120.adsl.proxad.net ([82.254.31.120]:58682 helo=guerry) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1jctVz-00082Y-Fc; Sun, 24 May 2020 12:30:19 -0400 Received: by guerry (Postfix, from userid 1000) id 375911A605CD; Sun, 24 May 2020 18:30:18 +0200 (CEST) From: Bastien To: "Philip K." Subject: Re: bug#41130: outline-mode: Add new commands like org-cycle and org=global-cycle Organization: GNU References: <87k111hjyi.fsf@gnu.org> <87wo51pev5.fsf@warpmail.net> Date: Sun, 24 May 2020 18:30:18 +0200 Message-ID: <87sgfpi9d1.fsf@bzg.fr> 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: -2.3 (--) X-Debbugs-Envelope-To: 41130 Cc: 41130@debbugs.gnu.org, Stefan Kangas 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 (---) Hi Philip, "Philip K." writes: > Bastien writes: > >> Stefan Kangas writes: >> >>> (define-key outline-minor-mode-map (kbd "C-") 'outline-cycle) >> ^^^^^^^ >> Why not just , when point is on an outline entry? > > I've tried something like this once, but it becomes quite annoying in > lisp modes, because "(" becomes a outline entry, making it tricky to > indent some code with TAB from anywhere on the line. Er, yes, you're right. Then I'd suggest this: S-TAB for outline-cycle C-S-TAB for outline-global-cycle IMO it is more common to want to cycle an entry than the whole buffer. -- Bastien From debbugs-submit-bounces@debbugs.gnu.org Sun May 24 12:39:33 2020 Received: (at 41130) by debbugs.gnu.org; 24 May 2020 16:39:33 +0000 Received: from localhost ([127.0.0.1]:38530 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jctev-0002UF-3g for submit@debbugs.gnu.org; Sun, 24 May 2020 12:39:33 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46008) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jctet-0002U2-AF for 41130@debbugs.gnu.org; Sun, 24 May 2020 12:39:31 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34366) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jctem-0005hR-Ol; Sun, 24 May 2020 12:39:24 -0400 Received: from [176.228.60.248] (port=4547 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jctel-00066r-OF; Sun, 24 May 2020 12:39:24 -0400 Date: Sun, 24 May 2020 19:39:34 +0300 Message-Id: <83sgfpwam1.fsf@gnu.org> From: Eli Zaretskii To: Bastien In-Reply-To: <87k111jo39.fsf@gnu.org> (message from Bastien on Sun, 24 May 2020 18:26:50 +0200) Subject: Re: bug#41130: outline-mode: Add new commands like org-cycle and org-global-cycle References: <87lflwlrxk.fsf@mail.linkov.net> <87h7wbbmzy.fsf@mail.linkov.net> <87y2phg596.fsf@gnu.org> <83eer9xuwp.fsf@gnu.org> <87k111jo39.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 41130 Cc: 41130@debbugs.gnu.org, stefan@marxist.se, juri@linkov.net 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 (---) > From: Bastien > Cc: stefan@marxist.se, 41130@debbugs.gnu.org, juri@linkov.net > Date: Sun, 24 May 2020 18:26:50 +0200 > > Eli Zaretskii writes: > > > C-M-TAB is not available with some window managers. > > Yes, right. Would C-S-TAB be a better candidate then? Maybe. It's free here. I'll let people who know about its use to chime in. From debbugs-submit-bounces@debbugs.gnu.org Sun May 24 13:09:26 2020 Received: (at 41130) by debbugs.gnu.org; 24 May 2020 17:09:26 +0000 Received: from localhost ([127.0.0.1]:38574 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jcu7q-0003DD-6q for submit@debbugs.gnu.org; Sun, 24 May 2020 13:09:26 -0400 Received: from mail-wr1-f41.google.com ([209.85.221.41]:42844) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jcu7o-0003D0-HR for 41130@debbugs.gnu.org; Sun, 24 May 2020 13:09:24 -0400 Received: by mail-wr1-f41.google.com with SMTP id s8so15038738wrt.9 for <41130@debbugs.gnu.org>; Sun, 24 May 2020 10:09:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=t485A4qgRBoAD2pKqKQl7OL+I/k6PJ0620+KbSFiceM=; b=dWT5nIYBpYhA01VJV8bU8sdWqafKHBHotICJG3yTlZgZX/kh1NcWH/5MtMdFS2aG7x QqUZViNN/gPQ89dmCax1oD30NVRm+5gWoFV+6JhTLxE1/JfI+/Mi9EhBswzEerFWoE5S ILxfWIU8k32BpwFpIkiSlRCulUW11CTtCjcIN7KGXbsDmcU9j52Xw9cevCUXhxlH1ouu GiW+Ap7bfre5hGu0h5PdzAjo6/vPNOv0d0yriz3kP0XzSON7esRpQQKUAcKOMKL4pxSM iOuRpiyC+jmNtaxCO+IgcVBIPGY4hPdNhLg+X8j27CJPQDwIsVGNK4WNhWTMRTEzprfF XsGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=t485A4qgRBoAD2pKqKQl7OL+I/k6PJ0620+KbSFiceM=; b=C53Zv4TTXjvRrjf9bMdtMrhJvpENG47x3DASkorINYEEMdTyAvJROjAdvM+rZvnpzT hnD5nk63R0qAI/MaVe7es4xAYsyST0f3SR0uxqHK46ScZsS8z4VxVIVg16DRqSeeV9zm rQce0WjIjEYLNpJfMLFASH0n92YesFxrsUtltJkEwA+LE+BARylgQ87hi6Utykw3HYsM 2w3XRKmkeoSxbPPDENO4I91f9GqQB9Ac1b5XY6fgnyvh0dnDfOQlM/NgS80g7iV7qu9p XUjBRlXOLBUxXezn9EIUJh0qvOoJ+Q8VteE7ZD1ufIOekylJ9GkjNpV6B1dE9NGlYYJN 8+vQ== X-Gm-Message-State: AOAM530WPmLj/owf31I7Bh705g+ME00nJOemwjaulvb/iiKNXLk/L08k 6UIfxqQaKWOHoZVY5IVfvUM= X-Google-Smtp-Source: ABdhPJy/EVe/o1VwZB9EJL5MkRAAx5dwkEiD5+VdcAXz4WGG2YM14QQkFAATIwBx9u2R1A67TVhObw== X-Received: by 2002:adf:ffc2:: with SMTP id x2mr11467768wrs.273.1590340158599; Sun, 24 May 2020 10:09:18 -0700 (PDT) Received: from [192.168.0.3] ([66.205.73.129]) by smtp.googlemail.com with ESMTPSA id m23sm15710939wmg.45.2020.05.24.10.09.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 24 May 2020 10:09:18 -0700 (PDT) Subject: Re: bug#41130: outline-mode: Add new commands like org-cycle and org-global-cycle To: Eli Zaretskii , Bastien References: <87lflwlrxk.fsf@mail.linkov.net> <87h7wbbmzy.fsf@mail.linkov.net> <87y2phg596.fsf@gnu.org> <83eer9xuwp.fsf@gnu.org> <87k111jo39.fsf@gnu.org> <83sgfpwam1.fsf@gnu.org> From: Dmitry Gutov Message-ID: <8b18fbdc-8edf-a6ce-06f1-877ec606844c@yandex.ru> Date: Sun, 24 May 2020 20:09:16 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <83sgfpwam1.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 41130 Cc: 41130@debbugs.gnu.org, stefan@marxist.se, juri@linkov.net 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: -0.5 (/) On 24.05.2020 19:39, Eli Zaretskii wrote: >> Yes, right. Would C-S-TAB be a better candidate then? > Maybe. It's free here. I'll let people who know about its use to > chime in. C-S-TAB invoked tab-previous in tab-bar-mode. Like in many other programs. From debbugs-submit-bounces@debbugs.gnu.org Mon May 25 04:50:53 2020 Received: (at 41130) by debbugs.gnu.org; 25 May 2020 08:50:53 +0000 Received: from localhost ([127.0.0.1]:39757 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jd8ov-0005X1-8v for submit@debbugs.gnu.org; Mon, 25 May 2020 04:50:53 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35178) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jd8ou-0005Wp-3s for 41130@debbugs.gnu.org; Mon, 25 May 2020 04:50:52 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46067) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jd8oo-0007BH-Is; Mon, 25 May 2020 04:50:46 -0400 Received: from lns-bzn-32-82-254-31-120.adsl.proxad.net ([82.254.31.120]:46566 helo=guerry) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1jd8on-0008M9-Tq; Mon, 25 May 2020 04:50:46 -0400 Received: by guerry (Postfix, from userid 1000) id D5ACE1A605CD; Mon, 25 May 2020 10:50:44 +0200 (CEST) From: Bastien To: Dmitry Gutov Subject: Re: bug#41130: outline-mode: Add new commands like org-cycle and org-global-cycle Organization: GNU References: <87lflwlrxk.fsf@mail.linkov.net> <87h7wbbmzy.fsf@mail.linkov.net> <87y2phg596.fsf@gnu.org> <83eer9xuwp.fsf@gnu.org> <87k111jo39.fsf@gnu.org> <83sgfpwam1.fsf@gnu.org> <8b18fbdc-8edf-a6ce-06f1-877ec606844c@yandex.ru> Date: Mon, 25 May 2020 10:50:44 +0200 In-Reply-To: <8b18fbdc-8edf-a6ce-06f1-877ec606844c@yandex.ru> (Dmitry Gutov's message of "Sun, 24 May 2020 20:09:16 +0300") Message-ID: <87ftbo75zv.fsf@gnu.org> 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: -2.3 (--) X-Debbugs-Envelope-To: 41130 Cc: 41130@debbugs.gnu.org, Eli Zaretskii , stefan@marxist.se, juri@linkov.net 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 (---) Dmitry Gutov writes: > On 24.05.2020 19:39, Eli Zaretskii wrote: >>> Yes, right. Would C-S-TAB be a better candidate then? >> Maybe. It's free here. I'll let people who know about its use to >> chime in. > > C-S-TAB invoked tab-previous in tab-bar-mode. Like in many other > programs. Yes, of course, you are right. I'm leaning toward binding C-c C-TAB for `org-force-cycle-archived' which, again, I don't expect to be that much used by Org users. -- Bastien From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 23 18:27:12 2020 Received: (at 41130) by debbugs.gnu.org; 23 Jun 2020 22:27:12 +0000 Received: from localhost ([127.0.0.1]:37350 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jnrNo-0008MO-AW for submit@debbugs.gnu.org; Tue, 23 Jun 2020 18:27:12 -0400 Received: from mail-wr1-f48.google.com ([209.85.221.48]:39263) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jnrNl-0008Lz-WE for 41130@debbugs.gnu.org; Tue, 23 Jun 2020 18:27:11 -0400 Received: by mail-wr1-f48.google.com with SMTP id q5so218813wru.6 for <41130@debbugs.gnu.org>; Tue, 23 Jun 2020 15:27:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=KWwhVWXRCSJLfUnYEyUPLIYEH6vV2pcZxqFr1BF4e6M=; b=gQBO8f3SgRAKXvuW5WDgMj/PHKP7meVnyf1jJHL7/nUAqhGCJ7y2TkEL6EAJsaTtNo Ihqw+IA3FjNxL/Fwjr8OXitbVZ5Ywn0TjrO+j31yaa/U7fFOcJBmMQzWr/etRCWab4u5 qqf4EnZ9jl56uzenHe3XX/E9NBqtJVIhGWN0dnDmf6IF/K8T28PNXFVZ4IR3wswOic6K qn1EI50OhKM8JnLKfj5ViIO0RLJZR8kYIPX8LqYa6cotFVA8Zeyip0vO03KU9G1joSuK /f1o3CZ91HysUmsWBjuuAGTEQe+orGzf4Skvjz+BxtUsyn6TCFbDGoSfZcM5PU1it6p8 abcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=KWwhVWXRCSJLfUnYEyUPLIYEH6vV2pcZxqFr1BF4e6M=; b=j2P8TnZtfKmK9mLm9CXqXbMFg62KFBd4wIfDwN74dWDys+n8su8PsX3BrIS9NsVApr FfGa2yh0aGiwfzYVIw1/G4oEf961EMA1Dcg9K108Yyk8uc6ZWVUkD48rhRBPo5VhMU7P 97/EV6RjhFn3BRjror8/BfqL1y/M3o1JVek3ry9C7z8FBswYQjjYTsCDrsDqxAk8g5CX XW7LZctP29M5ZMoUP61in0OM4mt1G+LVEGLbYnknwMHq02G91yhkloKjNWoHTekgdply nNu+NhY+JRRE/TWHb33exCv2R1/IYgj5ooOv/lchI8h03KfW7lCgxSz7XufstgKBapHl 2GhQ== X-Gm-Message-State: AOAM533KD1JtBw94WURQqiIUuhLfonuzP3zBc6H0WxUGsUuqf7tdZyUw ZtK8ypTdiCyIaf2xaML/UpGA6Q== X-Google-Smtp-Source: ABdhPJx9ca8pDEFnCGhCvJ4ElsURoWjqq4rXep5SrwfKK6s/WuDrOA/jLPWl3vjdRLn16REadf5Jig== X-Received: by 2002:adf:b198:: with SMTP id q24mr27408668wra.368.1592951224066; Tue, 23 Jun 2020 15:27:04 -0700 (PDT) Received: from localhost ([2a02:8084:20e2:c380:92bd:1bfd:38fc:fae2]) by smtp.gmail.com with ESMTPSA id f13sm5395268wmb.33.2020.06.23.15.27.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jun 2020 15:27:03 -0700 (PDT) From: "Basil L. Contovounesios" To: Bastien Subject: Re: bug#41130: outline-mode: Add new commands like org-cycle and org-global-cycle References: <87lflwlrxk.fsf@mail.linkov.net> <87h7wbbmzy.fsf@mail.linkov.net> <87y2phg596.fsf@gnu.org> <83eer9xuwp.fsf@gnu.org> <87k111jo39.fsf@gnu.org> <83sgfpwam1.fsf@gnu.org> <8b18fbdc-8edf-a6ce-06f1-877ec606844c@yandex.ru> <87ftbo75zv.fsf@gnu.org> Date: Tue, 23 Jun 2020 23:27:01 +0100 In-Reply-To: <87ftbo75zv.fsf@gnu.org> (Bastien's message of "Mon, 25 May 2020 10:50:44 +0200") Message-ID: <87eeq5o1u2.fsf@tcd.ie> 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-Debbugs-Envelope-To: 41130 Cc: 41130@debbugs.gnu.org, juri@linkov.net, stefan@marxist.se, Dmitry Gutov 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 (-) Bastien writes: > Dmitry Gutov writes: > >> On 24.05.2020 19:39, Eli Zaretskii wrote: >>>> Yes, right. Would C-S-TAB be a better candidate then? >>> Maybe. It's free here. I'll let people who know about its use to >>> chime in. >> >> C-S-TAB invoked tab-previous in tab-bar-mode. Like in many other >> programs. > > Yes, of course, you are right. > > I'm leaning toward binding C-c C-TAB for `org-force-cycle-archived' > which, again, I don't expect to be that much used by Org users. Isn't TAB often the same thing as C-i, at least in text terminals? It would be nice to have something that works in such environments as well, unlike some exotic Org bindings. -- Basil From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 17 18:30:17 2020 Received: (at 41130) by debbugs.gnu.org; 17 Aug 2020 22:30:18 +0000 Received: from localhost ([127.0.0.1]:33366 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7ndx-0004Tv-NR for submit@debbugs.gnu.org; Mon, 17 Aug 2020 18:30:17 -0400 Received: from mail-qt1-f182.google.com ([209.85.160.182]:38091) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7nds-0004TK-7L for 41130@debbugs.gnu.org; Mon, 17 Aug 2020 18:30:16 -0400 Received: by mail-qt1-f182.google.com with SMTP id e5so13724379qth.5 for <41130@debbugs.gnu.org>; Mon, 17 Aug 2020 15:30:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=uRHTv48fo1HMu5E5gaTp1rorW5ZAesSCaSuMjaShvhM=; b=u2sbEfKQQQP07Ilgei0fH8dQjOlhszFkbE1CJupia9GiIp8fTI/xEvCQXD1pSrioZi NMu+pSBoj8csPIjYAnOtFDusZxDBKKsGvgh+PoP92KBXl8RKD9yVDjuBoqydJYHb+qx7 Duxkoew25y98Q3e/iZ/RtARv9qy4gr4XVB+fcbE6C6nj2KNu7T3Oxeo0njRa6RoJUuXP Of6YpCrt3gCWAJQ8d+EygDQuZePqygh/O3srIgdn3cqWnKKonI5yuh+C91YGUVYrOweC gae5zRhxptBKD+w/yNLpuTNWpSsCZYaQbv4BhkDIL6wcNt3ktQBBmxeDN+Ryjqt635j9 HEUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=uRHTv48fo1HMu5E5gaTp1rorW5ZAesSCaSuMjaShvhM=; b=qA1hLM5a580tLgY4C6jDWFaEXLVT5xGjH+v03ptJ6wginlSP0L3UV7cgbSbRIbIkMJ sonxa9lYmaxPoMhU2VQsz+I2ZkrOdiI/gkK2EMIgc4n492llJC1xox3wMnEMiqY5TRFb s8p8jAtg9A1T3rxhQs8MvG5p4Qq4RSo9j/uF1SpgKodciMCZjeRqpQ+GeMWfb0lLKdCK 7RJJ0Fv+UGj1vk+oTQufvuMaxXrUt2iF3CIpY6r9dRl/+LGbVhJNHPhXHh1tso0bGJaB Of7KpGxOM1yPeUqRjC/TuVlq6zEypg2hFQDpNOdj9XM3c2JBNb/sQa/ao4QqaCXzjx2W GYIQ== X-Gm-Message-State: AOAM530szjC0XWcsEYUDe+zmx0R/TfQEVdCvFH0coFV3Z7014Qi1O05x 7ARNTrVmSp2heaRPZ9X0ElLrZ5X2pSIZlA== X-Google-Smtp-Source: ABdhPJzb5tQTcob4IwF80b5Jeaj5vwHd49QEJrWMkFj3Q4pvlJEwzw0SwqFYFdBiw7vdRyZT5K1EyA== X-Received: by 2002:ac8:67da:: with SMTP id r26mr15416778qtp.332.1597703406273; Mon, 17 Aug 2020 15:30:06 -0700 (PDT) Received: from lumet-ethernet.home (pool-108-26-232-211.bstnma.fios.verizon.net. [108.26.232.211]) by smtp.gmail.com with ESMTPSA id o17sm20509803qtr.13.2020.08.17.15.30.05 for <41130@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Aug 2020 15:30:05 -0700 (PDT) From: Howard Melman Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\)) Subject: Re: bug#41130: outline-mode: Add new commands like org-cycle and org-global-cycle Message-Id: Date: Mon, 17 Aug 2020 18:30:04 -0400 To: 41130@debbugs.gnu.org X-Mailer: Apple Mail (2.3608.120.23.2.1) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41130 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 (-) Has the previously mentioned patch been applied yet? I'm looking in = master here and don't see it: http://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/outline.el I just upgraded to Emacs 27.1 and found that the new org-mode included = no longer supports my hack of calling org-global-cycle from non-org-mode = buffers which use outline-minor-mode. As such I'm interested in getting = this working and would love if it could be included in Emacs 27.2. Howard From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 18 00:30:38 2020 Received: (at 41130) by debbugs.gnu.org; 18 Aug 2020 04:30:38 +0000 Received: from localhost ([127.0.0.1]:33734 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7tGg-0002wA-Fo for submit@debbugs.gnu.org; Tue, 18 Aug 2020 00:30:38 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42424) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7tGe-0002vw-SB for 41130@debbugs.gnu.org; Tue, 18 Aug 2020 00:30:37 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45252) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k7tGZ-0007t2-KD; Tue, 18 Aug 2020 00:30:31 -0400 Received: from [176.228.60.248] (port=2087 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1k7tGW-00060v-Ng; Tue, 18 Aug 2020 00:30:30 -0400 Date: Tue, 18 Aug 2020 07:30:16 +0300 Message-Id: <83wo1wfuef.fsf@gnu.org> From: Eli Zaretskii To: Howard Melman In-Reply-To: (message from Howard Melman on Mon, 17 Aug 2020 18:30:04 -0400) Subject: Re: bug#41130: outline-mode: Add new commands like org-cycle and org-global-cycle References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 41130 Cc: 41130@debbugs.gnu.org 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 (---) > From: Howard Melman > Date: Mon, 17 Aug 2020 18:30:04 -0400 > > Has the previously mentioned patch been applied yet? I'm looking in master here and don't see it: > http://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/outline.el > > I just upgraded to Emacs 27.1 and found that the new org-mode included no longer supports my hack of calling org-global-cycle from non-org-mode buffers which use outline-minor-mode. As such I'm interested in getting this working and would love if it could be included in Emacs 27.2. This is a new feature, so it's inappropriate for 27.2, which will be a bug-fix release. Sorry. From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 06 04:23:00 2020 Received: (at 41130) by debbugs.gnu.org; 6 Sep 2020 08:23:00 +0000 Received: from localhost ([127.0.0.1]:44745 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEpwy-0002JE-Fu for submit@debbugs.gnu.org; Sun, 06 Sep 2020 04:23:00 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41586) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEpwx-0002J1-60 for 41130@debbugs.gnu.org; Sun, 06 Sep 2020 04:22:59 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:48317) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEpwr-0006Bm-30; Sun, 06 Sep 2020 04:22:53 -0400 Received: from lns-bzn-32-82-254-31-120.adsl.proxad.net ([82.254.31.120]:56676 helo=guerry) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1kEpwq-00034U-Ar; Sun, 06 Sep 2020 04:22:52 -0400 Received: by guerry (Postfix, from userid 1000) id 6604A1A60D69; Sun, 6 Sep 2020 10:22:49 +0200 (CEST) From: Bastien To: "Basil L. Contovounesios" Subject: Re: bug#41130: outline-mode: Add new commands like org-cycle and org-global-cycle Organization: GNU References: <87lflwlrxk.fsf@mail.linkov.net> <87h7wbbmzy.fsf@mail.linkov.net> <87y2phg596.fsf@gnu.org> <83eer9xuwp.fsf@gnu.org> <87k111jo39.fsf@gnu.org> <83sgfpwam1.fsf@gnu.org> <8b18fbdc-8edf-a6ce-06f1-877ec606844c@yandex.ru> <87ftbo75zv.fsf@gnu.org> <87eeq5o1u2.fsf@tcd.ie> Date: Sun, 06 Sep 2020 10:22:49 +0200 In-Reply-To: <87eeq5o1u2.fsf@tcd.ie> (Basil L. Contovounesios's message of "Tue, 23 Jun 2020 23:27:01 +0100") Message-ID: <87y2lnxqjq.fsf@gnu.org> 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: -2.3 (--) X-Debbugs-Envelope-To: 41130 Cc: 41130@debbugs.gnu.org, juri@linkov.net, stefan@marxist.se, Dmitry Gutov 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 (---) Hi Basil, "Basil L. Contovounesios" writes: > Isn't TAB often the same thing as C-i, at least in text terminals? It > would be nice to have something that works in such environments as well, > unlike some exotic Org bindings. Yes, I agree. Patch welcome! -- Bastien From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 12 23:16:25 2020 Received: (at 41130) by debbugs.gnu.org; 13 Oct 2020 03:16:25 +0000 Received: from localhost ([127.0.0.1]:44715 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kSAnZ-0003xO-6j for submit@debbugs.gnu.org; Mon, 12 Oct 2020 23:16:25 -0400 Received: from quimby.gnus.org ([95.216.78.240]:41412) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kSAnX-0003rI-21; Mon, 12 Oct 2020 23:16:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=AKmYWxbuvGPLdJ7oLCjQ7LT+SrGhIBaIgfChnUFHWxk=; b=WuViK8qQrr+VjA27dLcyl4F6Dl G54sxg1TBsl46G2YM4WyAo4gF4zJ/kzZR8sEHvIRACfOQGRN2Lkjmd9LAjbr39CrUpKg7Lumz1Y/+ gsxuwiLvFKx2JBi5hD9zypXhFzo37WyTSRV3RUle+6orhBkFGiQ2Hih3icFopJdR2G8s=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kSAnN-0001TQ-O1; Tue, 13 Oct 2020 05:16:16 +0200 From: Lars Ingebrigtsen To: Yuan Fu Subject: Re: bug#41130: bug#41198: 27.0.60; [PATCH] heading cycling command for outline References: <452A6049-893A-4E7E-8349-541D276FAD19@gmail.com> <92D944EF-6BF9-4635-AC05-4B51B386D5C7@gmail.com> X-Now-Playing: Brokeback's _Looks At The Bird_: =?utf-8?Q?=22Lup=C3=A9=22?= Date: Tue, 13 Oct 2020 05:16:12 +0200 In-Reply-To: <92D944EF-6BF9-4635-AC05-4B51B386D5C7@gmail.com> (Yuan Fu's message of "Tue, 19 May 2020 21:37:26 -0400") Message-ID: <878sca7r43.fsf@gnus.org> 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-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Yuan Fu writes: > Ah sorry, I switched to a new way to generate patches and didn’t > notice that the commit message is gone. It is included this time. Skimming this thread, it seemed that everybody was in agreement that this was a good change, but the patch was never applied, so I did that now. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41130 Cc: 41130@debbugs.gnu.org, Stefan Kangas , 41198@debbugs.gnu.org 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 (-) Yuan Fu writes: > Ah sorry, I switched to a new way to generate patches and didn=E2=80=99t > notice that the commit message is gone. It is included this time. Skimming this thread, it seemed that everybody was in agreement that this was a good change, but the patch was never applied, so I did that now. Some discussion then followed about what key(s) would be the best ones here, and I didn't see any consensus, so I left the patch as is. Feel free to change the keys as you want, but I'm closing this bug report. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 12 23:16:29 2020 Received: (at control) by debbugs.gnu.org; 13 Oct 2020 03:16:30 +0000 Received: from localhost ([127.0.0.1]:44718 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kSAnd-00041A-Ht for submit@debbugs.gnu.org; Mon, 12 Oct 2020 23:16:29 -0400 Received: from quimby.gnus.org ([95.216.78.240]:41426) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kSAnc-0003va-Ge for control@debbugs.gnu.org; Mon, 12 Oct 2020 23:16:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=n1RCLlrWbcYNuNxZJL5p9BsG96ggivdZzs3naZHxbTc=; b=p5HpiqiFeSAMAWQZyPl+xMGcNV 9DmICSfXP302OV54pY5Lra+zUC2fn8G/yBok3nsnyVQr87voLD/q2rydIDV9OwA/q+X8DNcEMNJVZ O5RHWjhONwuf2snd9yT+WZtONQ0p+y+tbIdj+eV8w34GkZr/NhAGj/RF0RW9D7anDBxU=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kSAnU-0001TZ-QE for control@debbugs.gnu.org; Tue, 13 Oct 2020 05:16:23 +0200 Date: Tue, 13 Oct 2020 05:16:19 +0200 Message-Id: <877dru7r3w.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #41130 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 41130 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control 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 (-) close 41130 28.1 quit From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 13 09:16:13 2020 Received: (at 41130) by debbugs.gnu.org; 13 Oct 2020 13:16:13 +0000 Received: from localhost ([127.0.0.1]:45618 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kSKA1-0003LZ-5T for submit@debbugs.gnu.org; Tue, 13 Oct 2020 09:16:13 -0400 Received: from mail-qk1-f194.google.com ([209.85.222.194]:38819) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kSK9w-0003L3-0X; Tue, 13 Oct 2020 09:16:11 -0400 Received: by mail-qk1-f194.google.com with SMTP id f21so7901970qko.5; Tue, 13 Oct 2020 06:16:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=oyMYqyHYuvHNvFFycXFmuJl3kTI9Txf28zoQ23U+QXo=; b=fBEpbiBv+I06d+634DG197W+nnEpsLlrHEU2uyYeXm8WGNN3xbQ+eQDyXxPdyjj/Oo KHGF4C76FOP4sbKXMhsXTu0B+2hjM0GglJTscGWi4sXp0q4fjmoz5ODzBRnyoGzIvwlm yyqEfPEJk2FXGL2C6+2ItUa372kNqq3/wNVw3vlFSqJM4tmcUp7d/rn3xEskJy84kAJU kEVmqMiykUi8j+eShiB+wKgCuPBZH6L8frikVwz17aQ5jOtwgBcjbZLd725zX99RTwFK Gj2jSX/S7jzT0eIQKOepphif/7wLSllP0ARhfAwXjzQ1w++Ibier21WeUz7izhPOeKBt nGfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=oyMYqyHYuvHNvFFycXFmuJl3kTI9Txf28zoQ23U+QXo=; b=fAhGkFKppO//frtO9G6CJO7i9jxdSdl7C9H5aVCgeXxOhARObwasE5S48cQRal4ZyQ eZHk8ej+kjUT5skRm0dhaa0lOIalF4OR8BImraEwGEgQy9wKQf2uXJqz8QObm3xvXQAj DHWDDsDfKDhjsOoayq/zbHEwj/8q6AfrD9NpzxZINVkTZeZ5kEkaH7LVMvhKDSTKL8Uz AyNkiotIlgfhLd6CCGcLi1vTo6amJ0wsuENuHq/IrYLnLu5zWijpwgA7M9+D2Rb/q7ZC iqwOaLc8H1hmpmIAyxFwbDCmvwQWobN10eFtQ3aiTxNDgAxhXd+9b0SZp2U77pkm1LnX A1MA== X-Gm-Message-State: AOAM533qInqFwg1yhhU7rYnWjEiazm6YcwvenOVoe2cKpUJqNxH9EK8a MHm0Ttj2kpiYFan2jy1v/zPRCljVNZNr2gnx X-Google-Smtp-Source: ABdhPJy97k9lR1NSa83Bo+tFmfOp5xm9BmIemgEJM+1dN6RQnQaTJj4LMnLYojhGQYC96a7jwqplFg== X-Received: by 2002:ae9:f444:: with SMTP id z4mr14285319qkl.338.1602594962386; Tue, 13 Oct 2020 06:16:02 -0700 (PDT) Received: from ?IPv6:2601:98a:4200:9210:5973:2924:6be9:17b6? ([2601:98a:4200:9210:5973:2924:6be9:17b6]) by smtp.gmail.com with ESMTPSA id g2sm14609401qts.8.2020.10.13.06.16.01 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Oct 2020 06:16:01 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: bug#41130: bug#41198: 27.0.60; [PATCH] heading cycling command for outline From: Yuan Fu In-Reply-To: <878sca7r43.fsf@gnus.org> Date: Tue, 13 Oct 2020 09:16:00 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <21B2418C-26FB-4CDD-8396-BC30D1F8193A@gmail.com> References: <452A6049-893A-4E7E-8349-541D276FAD19@gmail.com> <92D944EF-6BF9-4635-AC05-4B51B386D5C7@gmail.com> <878sca7r43.fsf@gnus.org> To: Lars Ingebrigtsen X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41130 Cc: 41130@debbugs.gnu.org, Stefan Kangas , 41198@debbugs.gnu.org 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 Oct 12, 2020, at 11:16 PM, Lars Ingebrigtsen = wrote: >=20 > Yuan Fu writes: >=20 >> Ah sorry, I switched to a new way to generate patches and didn=E2=80=99= t >> notice that the commit message is gone. It is included this time. >=20 > Skimming this thread, it seemed that everybody was in agreement that > this was a good change, but the patch was never applied, so I did that > now. >=20 > Some discussion then followed about what key(s) would be the best ones > here, and I didn't see any consensus, so I left the patch as is. Feel > free to change the keys as you want, but I'm closing this bug report. >=20 > --=20 > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no Thanks Lars :-)= From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 14 15:50:32 2020 Received: (at 41130) by debbugs.gnu.org; 14 Oct 2020 19:50:33 +0000 Received: from localhost ([127.0.0.1]:53051 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kSmnA-0004W1-MQ for submit@debbugs.gnu.org; Wed, 14 Oct 2020 15:50:32 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:47379) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kSmn9-0004Vl-Ib; Wed, 14 Oct 2020 15:50:32 -0400 X-Originating-IP: 91.129.102.160 Received: from mail.gandi.net (m91-129-102-160.cust.tele2.ee [91.129.102.160]) (Authenticated sender: juri@linkov.net) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 4938F60005; Wed, 14 Oct 2020 19:50:22 +0000 (UTC) From: Juri Linkov To: Lars Ingebrigtsen Subject: Re: bug#41130: bug#41198: 27.0.60; [PATCH] heading cycling command for outline References: <452A6049-893A-4E7E-8349-541D276FAD19@gmail.com> <92D944EF-6BF9-4635-AC05-4B51B386D5C7@gmail.com> <878sca7r43.fsf@gnus.org> Date: Wed, 14 Oct 2020 22:24:10 +0300 In-Reply-To: <878sca7r43.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 13 Oct 2020 05:16:12 +0200") Message-ID: <87mu0ozntx.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-Debbugs-Envelope-To: 41130 Cc: Stefan Kangas , Yuan Fu , 41130@debbugs.gnu.org, 41198@debbugs.gnu.org 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 (-) > Skimming this thread, it seemed that everybody was in agreement that > this was a good change, but the patch was never applied, so I did that > now. Now finally org keys are available in etc/NEWS, nice! But typing S-TAB at the beginning of etc/NEWS signals the error: Debugger entered--Lisp error: (error "Before first heading") signal(error ("Before first heading")) This is not how org-mode works - S-TAB doesn't fail before first heading in org-mode. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 15 03:02:40 2020 Received: (at 41130) by debbugs.gnu.org; 15 Oct 2020 07:02:40 +0000 Received: from localhost ([127.0.0.1]:53966 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kSxHb-0004Hb-O5 for submit@debbugs.gnu.org; Thu, 15 Oct 2020 03:02:39 -0400 Received: from quimby.gnus.org ([95.216.78.240]:38976) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kSxHZ-0004HI-Ir; Thu, 15 Oct 2020 03:02:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=8pTd0pNLJRj13OdTzPFBb4kRw8p5i4QD6J8GEk0NBAc=; b=ZNP76IpvU6A9jJGpCKqmlpmDDi NQIpuATBp5egfu/gAfAiMJbjHyWphN17lw3NW5Z9hq6gMLrh+nAwwY3dtzYUwISRVgLgd/O0OECeq WJaH45QM2wNOSCGodaEYu7LU/v8D3imKv5Hq/FC1Ndw8VTxHAn5w2yM2vfUdXCrHLAQY=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kSxHP-0000QV-FH; Thu, 15 Oct 2020 09:02:30 +0200 From: Lars Ingebrigtsen To: Juri Linkov Subject: Re: bug#41130: bug#41198: 27.0.60; [PATCH] heading cycling command for outline References: <452A6049-893A-4E7E-8349-541D276FAD19@gmail.com> <92D944EF-6BF9-4635-AC05-4B51B386D5C7@gmail.com> <878sca7r43.fsf@gnus.org> <87mu0ozntx.fsf@mail.linkov.net> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEU3MzBXU1C2tbP/ //95ocZ/AAAAAWJLR0QDEQxM8gAAAAd0SU1FB+QKDwYsGH0CdIkAAAFgSURBVCjPLdA9buQwDAXg J0DcWgbILXKEPYUEWE0qCSCbnCCZU6WYGWR8yjzZW8jQJ4o/MqSUil6/XsftgVRU0OrbcdxeSE7U Yc/j8YC5SKsjy/G8Q5TYS/57PF/oQbhCj9sdfYoNN4x/x31FrDBS/xyfZyQYQfr4giSzWRfePyGi WlCI/oOcVSsqMb6h2X0/USu2MkZOINJA3+bkJoMTIs/WgKzIialdvGaWU95NYhwMA4WYZtsoTK6Z zdQC4wSwq3odwkYM+Bg91f8o3KdqxJpiziLg1KgJqU02t8ZaCa3XLDmCEHTCLhjEKqsvFEIu7BeG OBHszGvbhf1EhHMfwv/VI/ra87vQL4xQokXMk4oUrfHULTZH3VrriccyCWszEtMSSzsniEYMTu0Z vG9rBEXMqemEC0JXvq3qBBslzySfPtvqwdWtY8xtjeJcgWJs4n4Ozmo7c6de8M7TaetRv+wpcBEf kEYOAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIwLTEwLTE1VDA2OjQ0OjI0KzAwOjAwO7lkqgAAACV0 RVh0ZGF0ZTptb2RpZnkAMjAyMC0xMC0xNVQwNjo0NDoyNCswMDowMErk3BYAAAAASUVORK5CYII= X-Now-Playing: Hookworms's _Hookworms_: "I Have Some Business Out West" Date: Thu, 15 Oct 2020 09:02:25 +0200 In-Reply-To: <87mu0ozntx.fsf@mail.linkov.net> (Juri Linkov's message of "Wed, 14 Oct 2020 22:24:10 +0300") Message-ID: <87d01kynsu.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov writes: >> Skimming this thread, it seemed that everybody was in agreement that >> this was a good change, but the patch was never applied, so I did that >> now. > > Now finally org keys are available in etc/ [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41130 Cc: Stefan Kangas , Yuan Fu , 41130@debbugs.gnu.org, 41198@debbugs.gnu.org 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 (-) Juri Linkov writes: >> Skimming this thread, it seemed that everybody was in agreement that >> this was a good change, but the patch was never applied, so I did that >> now. > > Now finally org keys are available in etc/NEWS, nice! > But typing S-TAB at the beginning of etc/NEWS signals the error: > > Debugger entered--Lisp error: (error "Before first heading") > signal(error ("Before first heading")) > > This is not how org-mode works - S-TAB doesn't fail before first heading > in org-mode. How does it work in org-mode? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 15 03:52:19 2020 Received: (at 41130) by debbugs.gnu.org; 15 Oct 2020 07:52:19 +0000 Received: from localhost ([127.0.0.1]:54097 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kSy3e-0007gV-Tq for submit@debbugs.gnu.org; Thu, 15 Oct 2020 03:52:19 -0400 Received: from mail-wm1-f44.google.com ([209.85.128.44]:50223) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kSy3c-0007gA-UF; Thu, 15 Oct 2020 03:52:17 -0400 Received: by mail-wm1-f44.google.com with SMTP id 13so2130488wmf.0; Thu, 15 Oct 2020 00:52:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version; bh=4SY6TNbIoX2xfhyLIaRgUEibwXbbzjAShIMXd0qxQ98=; b=el/vwji9dOKOCUMiF7QYpNbwYPk06EOyBIyJM4AL+RgCpAu5mD4XIZu52FYKESWaEa hQkQeIJBMgfLk4ciCtWuCrTfX75jq7hnr8KAw40uJkuQbuymSrg37mFs+Z+cuhRiin1C 6A5vvKMcI2Og7FlNXnoTHWJS//Q3HKpqurnvXig2cAtFG0QxkyANB9h/3rliJXTVz1VT MpSr8f4Z6Av8fj8MaBov73Oqjqqvp5YCbY1s2/QQYgQJRdFdcw2l6YDWfoCO+XDmB1km 7BNmRi/KkepZTbC9BEE10xaApLheASJJLwUGQJN1WDGEcDIKjVg6lSkah6VRR3MdTbG3 v+UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version; bh=4SY6TNbIoX2xfhyLIaRgUEibwXbbzjAShIMXd0qxQ98=; b=O8PWJE6u3hTeHQCNAe6bkFMb9N+vSmGALAbbsXpeLeNHQcj9p4At8S2hcIcd3bH6xC J09sKEf1dKYQFK4YAtG1P8mxGh1/QLiBF2JizvcoIu2MRoYWHQy4HJC0ueIYdaagRm7M 5RfH00ORPgQLeIbepwZpxZKpihdDiWKyibYQ2OhvbKLnXi53+XTs8ncvEaTCi9OHxsYr d+oO/Gbbbx/AieD9brtRbIepMKGkJVoBOYsEG06xH7W6+gTNcz1BkwCY1li1BlMQue3g fwn/VMvj/qzSfFlUH59GBVbvt2Uuo9UVVMrD2/mj1Tob/Ql+83w1gVQf9aaTelmw1Ewv SPNg== X-Gm-Message-State: AOAM5303xxpdKufYBaTv9SZWwnRb92YAzt54S5m13vMemRcgzIu2835K 2f5K9udOq5i/B4g1gRjvD8hD1oDvSjY= X-Google-Smtp-Source: ABdhPJwsXpAaF7wT+ZXAy//5QuhMiqlnSQ4VnGnaqirAwP26Dz41YAqoejDdO+RBrsQo7y/KLQQs1w== X-Received: by 2002:a1c:dd0b:: with SMTP id u11mr2577171wmg.186.1602748330372; Thu, 15 Oct 2020 00:52:10 -0700 (PDT) Received: from rpluim-mac ([2a01:e34:ecfc:a860:c79:b00d:5409:83f9]) by smtp.gmail.com with ESMTPSA id a82sm3228893wmc.44.2020.10.15.00.52.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Oct 2020 00:52:09 -0700 (PDT) From: Robert Pluim To: Lars Ingebrigtsen Subject: Re: bug#41130: bug#41198: 27.0.60; [PATCH] heading cycling command for outline References: <452A6049-893A-4E7E-8349-541D276FAD19@gmail.com> <92D944EF-6BF9-4635-AC05-4B51B386D5C7@gmail.com> <878sca7r43.fsf@gnus.org> <87mu0ozntx.fsf@mail.linkov.net> <87d01kynsu.fsf@gnus.org> Date: Thu, 15 Oct 2020 09:52:08 +0200 In-Reply-To: <87d01kynsu.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 15 Oct 2020 09:02:25 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41130 Cc: Stefan Kangas , Yuan Fu , 41130@debbugs.gnu.org, 41198@debbugs.gnu.org, Juri Linkov 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 Thu, 15 Oct 2020 09:02:25 +0200, Lars Ingebrigtsen said: Lars> Juri Linkov writes: >>> Skimming this thread, it seemed that everybody was in agreement that >>> this was a good change, but the patch was never applied, so I did that >>> now. >> >> Now finally org keys are available in etc/NEWS, nice! >> But typing S-TAB at the beginning of etc/NEWS signals the error: >> >> Debugger entered--Lisp error: (error "Before first heading") >> signal(error ("Before first heading")) >> >> This is not how org-mode works - S-TAB doesn't fail before first heading >> in org-mode. Lars> How does it work in org-mode? The same as anywhere else: it cycles the visibility of the headings downbuffer. Robert -- From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 15 19:33:49 2020 Received: (at 41130) by debbugs.gnu.org; 15 Oct 2020 23:33:49 +0000 Received: from localhost ([127.0.0.1]:56928 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTCkm-0002Vy-Mo for submit@debbugs.gnu.org; Thu, 15 Oct 2020 19:33:48 -0400 Received: from mail-il1-f171.google.com ([209.85.166.171]:41025) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTCkk-0002Vi-Ba; Thu, 15 Oct 2020 19:33:47 -0400 Received: by mail-il1-f171.google.com with SMTP id w17so507796ilg.8; Thu, 15 Oct 2020 16:33:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=tMJICo2vs/e7hfABHB3WTBtajSZhlrorPgLCsQJx9PE=; b=jn3Oa9CFqphNWEDJm6URkUpUkywxRUi0GpZsAdwxDK4tbn+XOruz0KSsEMwxhFN049 LrcnWVFFZiDPAFBnBWU8EV4YUMvt8zCWF9+4pC7zX8E+7dcjzFqGMyQ/6a5x4hlEgkkg 1d1y7v93pDQz+8RbH5+B5iJuqUGN0QSRA+HEvnfSC/loHntLO7TZLmsfamnDcUWSJUla dWCvwy9zQ/vz+zslXQiQr+ADFmopVrcyjjmgA8IR3yJ3uN7YmQscjTaxud73wBTjUiNo a1RqNy1af681r4S5LIFdzMZN9bqRezPSN12IR9sbyE74YZwp/pnCMUrhtJt0Hlx9Kz94 hlWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=tMJICo2vs/e7hfABHB3WTBtajSZhlrorPgLCsQJx9PE=; b=NnouDm/JiWRiSPScECrZtOXaBhq4d+j/tpFUKahIMsVcvG76004OVf7B5yaJJuy9JG fotlxnrtm6P4TQp3WeYWlgH7ZscP9Kfq+rkIPuwwkWwV0S/yAWajAdJ3UlesA1kRC0tM dlUIhVo1IzjvNBtdtTF7+OTQVWHQxSKucWMqjErSYxrbT8iXXENNPLBc5bfhEGgGujke YyyswfbDm+X/8TVomc6XQrjGDwMlzOtSn/yJL+J1N7U+inZSAIJRalSrLkXXs+rxKAjx U+ziLpwCoutRaPct1nUaI69gA8NX6RiArMl0uUbFMfAbjO3Rzp26qfVsvLiDK+IC0VPB EK9Q== X-Gm-Message-State: AOAM5314JFAfyYiGQIMCF2ohCOTeUdDetPpuVNRJo9qVGc7HI/3PpQpY 2R8cbURT2wOPX9wfwdLw4QExBtzh3LQ7i2aq X-Google-Smtp-Source: ABdhPJzYQzdLdmNqO60zO+5eSjbLS9CX/HGLjyeg66fGqoca4jhwk29NPrrOdrCmOr2vWdMAZ8kUPg== X-Received: by 2002:a05:6e02:e4f:: with SMTP id l15mr707834ilk.142.1602804820699; Thu, 15 Oct 2020 16:33:40 -0700 (PDT) Received: from ?IPv6:2601:98a:4200:9210:8954:af62:96c7:c6? ([2601:98a:4200:9210:8954:af62:96c7:c6]) by smtp.gmail.com with ESMTPSA id r15sm468540ilj.43.2020.10.15.16.33.39 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Oct 2020 16:33:40 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: bug#41130: bug#41198: 27.0.60; [PATCH] heading cycling command for outline From: Yuan Fu In-Reply-To: <87mu0ozntx.fsf@mail.linkov.net> Date: Thu, 15 Oct 2020 19:33:39 -0400 Content-Transfer-Encoding: 7bit Message-Id: References: <452A6049-893A-4E7E-8349-541D276FAD19@gmail.com> <92D944EF-6BF9-4635-AC05-4B51B386D5C7@gmail.com> <878sca7r43.fsf@gnus.org> <87mu0ozntx.fsf@mail.linkov.net> To: Juri Linkov X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41130 Cc: Stefan Kangas , Lars Ingebrigtsen , 41130@debbugs.gnu.org, 41198@debbugs.gnu.org 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 Oct 14, 2020, at 3:24 PM, Juri Linkov wrote: > >> Skimming this thread, it seemed that everybody was in agreement that >> this was a good change, but the patch was never applied, so I did that >> now. > > Now finally org keys are available in etc/NEWS, nice! > But typing S-TAB at the beginning of etc/NEWS signals the error: > > Debugger entered--Lisp error: (error "Before first heading") > signal(error ("Before first heading")) > > This is not how org-mode works - S-TAB doesn't fail before first heading > in org-mode. Do you suggest to change it to a user-error? Or just be silent? Yuan From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 15 23:12:11 2020 Received: (at 41130) by debbugs.gnu.org; 16 Oct 2020 03:12:11 +0000 Received: from localhost ([127.0.0.1]:57138 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTGA6-0007iK-OI for submit@debbugs.gnu.org; Thu, 15 Oct 2020 23:12:10 -0400 Received: from mail-il1-f169.google.com ([209.85.166.169]:40782) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTGA5-0007i5-Gf; Thu, 15 Oct 2020 23:12:09 -0400 Received: by mail-il1-f169.google.com with SMTP id y16so1067409ila.7; Thu, 15 Oct 2020 20:12:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=BXSWIjhGvkand8H1R0Ox+YnU1FPUC38M64hcQ/VDATw=; b=gDb/avBK+R/wmLtXlCEykzjTePtX3pIakMUOnMQO5ztkFpE5t1Lj4Enj8Sc5kfb/G0 Ia5UP/yvzdyYHUk2/V/eqV+1fP4fkRQgKC2Q7l1cFiHFdiqbTo3JKLq+yla24FA62h1k tzGZs/kr5KBz9RCVrjambA6nmaaTSi9TE5OuQ2ozvQN7TAvIbKiRiue23KcgLV6sNYCX gVR1mE6weL8JuVBseyMlV6X/M5Xfi8RYe3teFLYxKz8B5qiu2jLCOuMzU891STIK9Xho iU5JjkYYx+salgknfdB+U1ZHB9BO21FZIxk0LsZqwydUVkEtI17013vpSAIa3jXOsNN8 DTwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=BXSWIjhGvkand8H1R0Ox+YnU1FPUC38M64hcQ/VDATw=; b=r6OT5uuP30gY9XTAOGWQy+ZFUJ5ApXMsoOJbR/yBZKhClKb8SIzTh3w81YFreDscOJ IbRVyI5xVmpBQ7BOslTn8VkTXYClgEJQukFB7y7KqMdeUaPiV2lJs1YKPFT17cGQOQbB +8epFC9vhmGtl0qN95pINgl8fVWZ+dhNKxM/ioHZXp6ed3HwIIVmr3pjTaLwxJvj/z7X mQGjchQVeHZ/CJBWmtyaFoBvqAU+D5KQYALSpm+SkB2r0Q2yzarbkQ7eDEt9ElJxWhOA Rxa8wGgctT80LlN0h4jl6whxTW8cNuzitaJNT5OuVYqDDql1pQ9mNza5djCSd7crAfw2 EBdw== X-Gm-Message-State: AOAM533DTvDRlkwtoZZhavgwyktiQ7nnU9jKQeis0SjXnr6RKDy7fnM1 RkI3B9kyMq2rM//qp7U17Sw= X-Google-Smtp-Source: ABdhPJyhrPwTvrBEGP8+A6zJwui9zF+A+7xRIrRsRU8WyFXqMkyAcjMCWfSzSE0uIKl87JhbVZW6rg== X-Received: by 2002:a05:6e02:582:: with SMTP id c2mr1209144ils.69.1602817923763; Thu, 15 Oct 2020 20:12:03 -0700 (PDT) Received: from ?IPv6:2601:98a:4200:9210:8954:af62:96c7:c6? ([2601:98a:4200:9210:8954:af62:96c7:c6]) by smtp.gmail.com with ESMTPSA id t26sm973580ioi.11.2020.10.15.20.12.02 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Oct 2020 20:12:02 -0700 (PDT) From: Yuan Fu Message-Id: <94C08AB6-E780-45E1-918A-B47FBFA72782@gmail.com> Content-Type: multipart/mixed; boundary="Apple-Mail=_D79B5D4E-194F-4D8E-B3E5-A927D5A4BB03" Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: bug#41130: bug#41198: 27.0.60; [PATCH] heading cycling command for outline Date: Thu, 15 Oct 2020 23:12:01 -0400 In-Reply-To: To: Juri Linkov References: <452A6049-893A-4E7E-8349-541D276FAD19@gmail.com> <92D944EF-6BF9-4635-AC05-4B51B386D5C7@gmail.com> <878sca7r43.fsf@gnus.org> <87mu0ozntx.fsf@mail.linkov.net> X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41130 Cc: Stefan Kangas , Lars Ingebrigtsen , 41130@debbugs.gnu.org, 41198@debbugs.gnu.org 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 (-) --Apple-Mail=_D79B5D4E-194F-4D8E-B3E5-A927D5A4BB03 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Oct 15, 2020, at 7:33 PM, Yuan Fu wrote: >=20 >=20 >=20 >> On Oct 14, 2020, at 3:24 PM, Juri Linkov wrote: >>=20 >>> Skimming this thread, it seemed that everybody was in agreement that >>> this was a good change, but the patch was never applied, so I did = that >>> now. >>=20 >> Now finally org keys are available in etc/NEWS, nice! >> But typing S-TAB at the beginning of etc/NEWS signals the error: >>=20 >> Debugger entered--Lisp error: (error "Before first heading") >> signal(error ("Before first heading")) >>=20 >> This is not how org-mode works - S-TAB doesn't fail before first = heading >> in org-mode. >=20 > Do you suggest to change it to a user-error? Or just be silent? >=20 This patch should suppresses errors in both commands. Let me use it for = a while and see if it works ok. Yuan --Apple-Mail=_D79B5D4E-194F-4D8E-B3E5-A927D5A4BB03 Content-Disposition: attachment; filename=outline-fix.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="outline-fix.patch" Content-Transfer-Encoding: quoted-printable =46rom=20ef70c39d52a3aa53e95beb64f877da78daffb0f4=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20Yuan=20Fu=20=0ADate:=20Thu,=20= 15=20Oct=202020=2022:20:20=20-0400=0ASubject:=20[PATCH]=20Suppress=20= "Before=20first=20headings"=20error=20in=20outline-cycle=0A=0A*=20= lisp/outline.el=20(outline-cycle,=20outline-cycle-buffer):=20Suppress=20= error.=0A---=0A=20lisp/outline.el=20|=2041=20= ++++++++++++++++++++++-------------------=0A=201=20file=20changed,=2022=20= insertions(+),=2019=20deletions(-)=0A=0Adiff=20--git=20a/lisp/outline.el=20= b/lisp/outline.el=0Aindex=20a4ce9afb44..5e22850292=20100644=0A---=20= a/lisp/outline.el=0A+++=20b/lisp/outline.el=0A@@=20-1167,19=20+1167,22=20= @@=20outline-cycle=0A=20`Headings=20only'=20means=20show=20sub=20= headings=20but=20not=20their=20bodies.=0A=20`Show=20all'=20means=20show=20= all=20subheadings=20and=20their=20bodies."=0A=20=20=20(interactive)=0A-=20= =20(pcase=20(outline--cycle-state)=0A-=20=20=20=20('hide-all=0A-=20=20=20= =20=20(if=20(outline-has-subheading-p)=0A-=20=20=20=20=20=20=20=20=20= (progn=20(outline-show-children)=0A-=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20(message=20"Only=20headings"))=0A-=20=20=20=20=20=20=20= (outline-show-subtree)=0A-=20=20=20=20=20=20=20(message=20"Show=20= all")))=0A-=20=20=20=20('headings-only=0A-=20=20=20=20=20= (outline-show-subtree)=0A-=20=20=20=20=20(message=20"Show=20all"))=0A-=20= =20=20=20('show-all=0A-=20=20=20=20=20(outline-hide-subtree)=0A-=20=20=20= =20=20(message=20"Hide=20all"))))=0A+=20=20(condition-case=20nil=0A+=20=20= =20=20=20=20(pcase=20(outline--cycle-state)=0A+=20=20=20=20=20=20=20=20= ('hide-all=0A+=20=20=20=20=20=20=20=20=20(if=20= (outline-has-subheading-p)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20= (progn=20(outline-show-children)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20(message=20"Only=20headings"))=0A+=20=20=20=20=20=20= =20=20=20=20=20(outline-show-subtree)=0A+=20=20=20=20=20=20=20=20=20=20=20= (message=20"Show=20all")))=0A+=20=20=20=20=20=20=20=20('headings-only=0A= +=20=20=20=20=20=20=20=20=20(outline-show-subtree)=0A+=20=20=20=20=20=20=20= =20=20(message=20"Show=20all"))=0A+=20=20=20=20=20=20=20=20('show-all=0A= +=20=20=20=20=20=20=20=20=20(outline-hide-subtree)=0A+=20=20=20=20=20=20=20= =20=20(message=20"Hide=20all")))=0A+=20=20=20=20;;=20If=20error:=20= "Before=20first=20heading"=20occurs,=20ignore=20it.=0A+=20=20=20=20= (error=20nil)))=0A=20=0A=20(defvar-local=20outline--cycle-buffer-state=20= 'show-all=0A=20=20=20"Internal=20variable=20used=20for=20tracking=20= buffer=20cycle=20state.")=0A@@=20-1190,12=20+1193,12=20@@=20= outline-cycle-buffer=0A=20=20=20(pcase=20outline--cycle-buffer-state=0A=20= =20=20=20=20('show-all=0A=20=20=20=20=20=20(save-excursion=0A-=20=20=20=20= =20=20=20(let=20((start-point=20(point)))=0A-=20=20=20=20=20=20=20=20=20= (while=20(not=20(eq=20(point)=20start-point))=0A-=20=20=20=20=20=20=20=20= =20=20=20(outline-up-heading=201))=0A-=20=20=20=20=20=20=20=20=20= (outline-hide-sublevels=0A-=20=20=20=20=20=20=20=20=20=20(progn=20= (outline-back-to-heading)=0A-=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20(funcall=20'outline-level)))))=0A+=20=20=20=20=20=20=20= (outline-hide-sublevels=0A+=20=20=20=20=20=20=20=20;;=20If=20error:=20= "Before=20first=20heading"=20occurs,=20ignore=20it.=0A+=20=20=20=20=20=20= =20=20(or=20(ignore-errors=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (outline-back-to-heading)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (outline-level))=0A+=20=20=20=20=20=20=20=20=20=20=20=201)))=0A=20=20=20=20= =20=20(setq=20outline--cycle-buffer-state=20'top-level)=0A=20=20=20=20=20= =20(message=20"Top=20level=20headings"))=0A=20=20=20=20=20('top-level=0A= --=20=0A2.27.0=0A=0A= --Apple-Mail=_D79B5D4E-194F-4D8E-B3E5-A927D5A4BB03-- From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 16 00:59:52 2020 Received: (at 41130) by debbugs.gnu.org; 16 Oct 2020 04:59:52 +0000 Received: from localhost ([127.0.0.1]:57222 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTHqJ-0003zf-S1 for submit@debbugs.gnu.org; Fri, 16 Oct 2020 00:59:52 -0400 Received: from quimby.gnus.org ([95.216.78.240]:50638) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTHqH-0003zK-SG; Fri, 16 Oct 2020 00:59:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=z+diLF8trcB8br5dhRHKHiIsujxOpUzRvhl0q5lhX6I=; b=WTLLqUy7gelCqiL++JOljWNP/k oqS7hS89qqh3WbzelwksBZn8ydSMnfV4xHJ7c798hCgtkXUjqFfQ/ZylOxV7WjPfuW4EQrFoaHL/W 5e60m2MFu8kgjFUGi//yCIAB1irZBb/g+3wKsFzCEsjnsg7Fdze8qO0e51P7V9E+Djts=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kTHq7-000758-SW; Fri, 16 Oct 2020 06:59:42 +0200 From: Lars Ingebrigtsen To: Yuan Fu Subject: Re: bug#41130: bug#41198: 27.0.60; [PATCH] heading cycling command for outline References: <452A6049-893A-4E7E-8349-541D276FAD19@gmail.com> <92D944EF-6BF9-4635-AC05-4B51B386D5C7@gmail.com> <878sca7r43.fsf@gnus.org> <87mu0ozntx.fsf@mail.linkov.net> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEXW0sqJgHMmJST/ //8NscnUAAAAAWJLR0QDEQxM8gAAAAd0SU1FB+QKEAQ0B3nvcoIAAAF6SURBVCjPRZHBTuMwEIZ/ R3FEc2KlBlGfYSX6FO4KOKeotrQ5bxHkKbrSqmezUnPgFFCK8DwlM25TRoqcb/7MzB8PkKIGlnKe 8VO4WyiBKRznXfpA33lXm72FYs4kX9Ie98QKq8oQxYYsqgVQEQ2eIis1ZjsiCopqKOtdyRDROujK oSX6oP2zRT7Ni6YjCZk51cZWrwm4da6htVRJtAEPkahPhuh+VazX7S4p1PBgFyfy7iie89ELVE1c s9dsk7PJztPqt8VEVO081UWwf6SiuvH0fxGykGDX0IC6tAK+M/QJXKYh5b+frCBPSrFaUmDzh/s7 38x7NcLSGnZiD7BA2fU4hkX5FnCKi74ea9jjW/2tKP6F1Qh5i+sfp7Kn/CrbHZvjBk+/tiPM+8/i /QTD0Axjx/nLYGI1wvbF8KquE5htKCnoR5lpTfeXV2RbcRPMx63nu56JspmTbmSTcj9o48QftoVn FWk2Qsxia457VJSyCZSUUpSd7r8ADi2IHHCSwcQAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjAtMTAt MTZUMDQ6NTI6MDcrMDA6MDDNcNd0AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIwLTEwLTE2VDA0OjUy OjA3KzAwOjAwvC1vyAAAAABJRU5ErkJggg== X-Now-Playing: Liaisons Dangereuses's _Liaisons Dangereuses_: "Los =?utf-8?Q?ni=C3=B1os?= del parque" Date: Fri, 16 Oct 2020 06:59:37 +0200 In-Reply-To: (Yuan Fu's message of "Thu, 15 Oct 2020 19:33:39 -0400") Message-ID: <87362eu5om.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Yuan Fu writes: > Do you suggest to change it to a user-error? Or just be silent? Robert suggested: Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41130 Cc: Stefan Kangas , 41130@debbugs.gnu.org, 41198@debbugs.gnu.org, Juri Linkov 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 (-) Yuan Fu writes: > Do you suggest to change it to a user-error? Or just be silent? Robert suggested: > Lars> How does it work in org-mode? > > The same as anywhere else: it cycles the visibility of the headings > downbuffer. I guess that makes sense? I don't use outlining, though, so I don't really know whether that would be surprising behaviour in outline mode, though. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 16 04:25:20 2020 Received: (at 41130) by debbugs.gnu.org; 16 Oct 2020 08:25:20 +0000 Received: from localhost ([127.0.0.1]:57573 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTL39-0005T7-O1 for submit@debbugs.gnu.org; Fri, 16 Oct 2020 04:25:20 -0400 Received: from mail-wr1-f49.google.com ([209.85.221.49]:33007) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTL37-0005Sk-Jm; Fri, 16 Oct 2020 04:25:18 -0400 Received: by mail-wr1-f49.google.com with SMTP id b8so1768814wrn.0; Fri, 16 Oct 2020 01:25:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=W12xjwsycl2WmjGLoFIu+VNTvaPTIaz1hQNS2Ry/xFs=; b=hxD3cNnZ+UsGVhkKSRIvIcIAhfPRsGU7jT5e+d9JVrm0KOAGbdXoZ/w9gLKeJQ7dgH 7iphR9l8gy5LB7gfRzzHaKprYQ+zCKCpPoK6a7Q8MxYxiXtbj3E+e6AEA96N97DcpWm+ W3W1/lLJPdZ6HvGC6YmD4AVCrZuRNIh2/bCQNxWtgsb9E5P9iPMk1C7RhCRjfJBn75dh q5ZlmN2JcvP4Si66n+BrM0s2ZR5fr3Qwheut9CY9mVU3DboKNWQwgO0IADHx51bkSdvn sdNYLCroLoWPT8tJVHbYqzoWWbbnJsDtoWuh9qNoOuiy1M6RLDaChOw/wGS/GCndLCxk NeMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=W12xjwsycl2WmjGLoFIu+VNTvaPTIaz1hQNS2Ry/xFs=; b=DCIfWtG8bgwVCmMNXqQjWekHHwEYdOXEfbXk9qjfCszvlEBFuc0UqK14fCyW0n3Z96 3IoKABFCzEjrsvRIQDMmzYqwBnXCzOPEJJ0QNI0qLFGeS2/S05R9c7RV1lYqyFPK674g Pl2WgYX7IBviF2cCQs4b5w/ccPKknKnN0ozuX6deSriLnbTaJqyiy30HToUvxAZPr+eq YS5kgGsuZb2YR6N6gsM4RFeTj8wGN0RBWUJgrPgclzhActXe865phC4I5YGrzYDXqNp2 9KEkFFuJwvR1vizY6HP9rnDhkv9DnNZsVVaIRvwvh238O/TOmR2tSxi3WfDu4oRUc6al MizQ== X-Gm-Message-State: AOAM533Fk0Vt4lz7+BKEDZSEWEwpMkQOuaSUFWWHepmuVZwz/pl+ii7Q F0uKs7lMQokeDsijOmoVRlY= X-Google-Smtp-Source: ABdhPJzs8yBG7rjT/UzelD2ga6e4GFeJfxSBTI1t3iPykBLV1fOcT9ywOmnJOL9Ihhhj9PIOuFjg7Q== X-Received: by 2002:adf:a31c:: with SMTP id c28mr2687839wrb.351.1602836711683; Fri, 16 Oct 2020 01:25:11 -0700 (PDT) Received: from rpluim-mac ([2a01:e34:ecfc:a860:9474:cfb2:b9a9:23d4]) by smtp.gmail.com with ESMTPSA id d30sm2536926wrc.19.2020.10.16.01.25.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Oct 2020 01:25:10 -0700 (PDT) From: Robert Pluim To: Lars Ingebrigtsen Subject: Re: bug#41198: bug#41130: bug#41198: 27.0.60; [PATCH] heading cycling command for outline References: <452A6049-893A-4E7E-8349-541D276FAD19@gmail.com> <92D944EF-6BF9-4635-AC05-4B51B386D5C7@gmail.com> <878sca7r43.fsf@gnus.org> <87mu0ozntx.fsf@mail.linkov.net> <87362eu5om.fsf@gnus.org> Date: Fri, 16 Oct 2020 10:25:09 +0200 In-Reply-To: <87362eu5om.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 16 Oct 2020 06:59:37 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41130 Cc: Stefan Kangas , Yuan Fu , 41130@debbugs.gnu.org, 41198@debbugs.gnu.org, Juri Linkov 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 Fri, 16 Oct 2020 06:59:37 +0200, Lars Ingebrigtsen said: Lars> Yuan Fu writes: >> Do you suggest to change it to a user-error? Or just be silent? Lars> Robert suggested: Lars> How does it work in org-mode? >>=20 >> The same as anywhere else: it cycles the visibility of the headings >> downbuffer. Lars> I guess that makes sense? I don't use outlining, though, so I do= n't Lars> really know whether that would be surprising behaviour in outline= mode, Lars> though. I don=CA=BCt think I=CA=BCd find it surprising. Of course we could fix this= by just adding "* " to the first line of NEWS :-) Robert --=20 From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 16 04:26:08 2020 Received: (at 41130) by debbugs.gnu.org; 16 Oct 2020 08:26:09 +0000 Received: from localhost ([127.0.0.1]:57585 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTL3w-0005VN-M7 for submit@debbugs.gnu.org; Fri, 16 Oct 2020 04:26:08 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:46819) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTL3u-0005UH-Go; Fri, 16 Oct 2020 04:26:07 -0400 X-Originating-IP: 91.129.102.160 Received: from mail.gandi.net (m91-129-102-160.cust.tele2.ee [91.129.102.160]) (Authenticated sender: juri@linkov.net) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id A5C6820014; Fri, 16 Oct 2020 08:25:57 +0000 (UTC) From: Juri Linkov To: Yuan Fu Subject: Re: bug#41130: bug#41198: 27.0.60; [PATCH] heading cycling command for outline Organization: LINKOV.NET References: <452A6049-893A-4E7E-8349-541D276FAD19@gmail.com> <92D944EF-6BF9-4635-AC05-4B51B386D5C7@gmail.com> <878sca7r43.fsf@gnus.org> <87mu0ozntx.fsf@mail.linkov.net> Date: Fri, 16 Oct 2020 11:20:41 +0300 In-Reply-To: (Yuan Fu's message of "Thu, 15 Oct 2020 19:33:39 -0400") Message-ID: <87v9fatwdi.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.0 (/) X-Debbugs-Envelope-To: 41130 Cc: Stefan Kangas , Lars Ingebrigtsen , 41130@debbugs.gnu.org, 41198@debbugs.gnu.org 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 (-) >> Now finally org keys are available in etc/NEWS, nice! >> But typing S-TAB at the beginning of etc/NEWS signals the error: >> >> Debugger entered--Lisp error: (error "Before first heading") >> signal(error ("Before first heading")) >> >> This is not how org-mode works - S-TAB doesn't fail before first heading >> in org-mode. > > Do you suggest to change it to a user-error? Or just be silent? To imitate org-mode, maybe outline-mode could temporarily (i.e. by using save-excursion) navigate to the first heading before running the rest of outline-cycle-buffer when it's before first heading? Thank you for this nice feature! From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 16 15:27:44 2020 Received: (at 41130) by debbugs.gnu.org; 16 Oct 2020 19:27:44 +0000 Received: from localhost ([127.0.0.1]:60917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTVOB-0004R9-Ou for submit@debbugs.gnu.org; Fri, 16 Oct 2020 15:27:43 -0400 Received: from mail-io1-f52.google.com ([209.85.166.52]:35935) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTVO9-0004Qs-2U; Fri, 16 Oct 2020 15:27:41 -0400 Received: by mail-io1-f52.google.com with SMTP id u19so5322144ion.3; Fri, 16 Oct 2020 12:27:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=sA+Ao8mphQxR1XBB4OSQEeuLe13BJroFZ6mpGxyhae4=; b=tbRImZzEn9EuY8GZS5elKWXr6rkuH6r07wJmKYgzHTvEzCDwZrOrNDW1XuwpzkN+1+ BxC/i2lkg5GnprOb7RQr8FnrvuUTyRfZMmp6GuQkp0FIJ07Q0w6hTf9R2GqAV8e7qxki plM0CsB4ArioM+c6TnmqT3VJL/2agXq/0Ll+7YPJqB9Mbk1efpbr05nk4cSXqy3SA4Bp mnFKmj50nPwNbTaQjev0XEhsRDu2Ua0H8PqreCcSBVVLFDzP8CA93JoHF+H91Mh2qYT0 huKgu4o3C6WYmGkV4E5iuvqiSN9BWHACaZlXCuhQzWCfToT9XsBYqxbJqCPM19m6M8aR +0Ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=sA+Ao8mphQxR1XBB4OSQEeuLe13BJroFZ6mpGxyhae4=; b=bdf5O+QyAsz1voI+qzyU3uJUZwRw0nz4FEZO47p2qYpUk//4B19mX2EY1ZLbx/xYbO ymBLueoXh3lfnyZeyiW+Hu07mslOz1u/fvv+5mDA2yfeeHutrVr0VVm9+jyDr/dnXCDV kc7/cAw6QHLhW34Ea8fIST9XPyT0qFa0/Bw/6ksg/lrbIuD3OZmDnnf9Th01Q325Vv0e pNKNEEerkwxMmk3G3bxnng7GZ7xBDPvafH3JbOzW92BqPbrjG8LQX6FIrvevv+z3UIqd rNrtvla+pEheNW4pPF8xM/lAxNz+UiOq6qBVwA47ozaXS4y56WNhDcpdt2fjZVGgYpx4 fDyA== X-Gm-Message-State: AOAM530eK7MJRbAnlFyvQOUg2KBN2XGfkoHC6TH0jnXPGnNpUo4nXsR4 VjQDZXjNfY8xnRqHcAFfs7gGGPaF9WfipU8x X-Google-Smtp-Source: ABdhPJxX6pg404HK6AtH9mbIVUqsMAVN3436a/1cOiY6WslN0I0Jy6dsRmVBfykap5CHIcu9GslqMA== X-Received: by 2002:a5e:9b11:: with SMTP id j17mr3642317iok.176.1602876455371; Fri, 16 Oct 2020 12:27:35 -0700 (PDT) Received: from ?IPv6:2601:98a:4200:9210:8954:af62:96c7:c6? ([2601:98a:4200:9210:8954:af62:96c7:c6]) by smtp.gmail.com with ESMTPSA id i82sm3099301ill.84.2020.10.16.12.27.34 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Oct 2020 12:27:34 -0700 (PDT) From: Yuan Fu Message-Id: Content-Type: multipart/mixed; boundary="Apple-Mail=_D7EAA66F-B37A-47D0-B7F1-26BF874AD209" Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: bug#41130: bug#41198: 27.0.60; [PATCH] heading cycling command for outline Date: Fri, 16 Oct 2020 15:27:33 -0400 In-Reply-To: <87v9fatwdi.fsf@mail.linkov.net> To: Juri Linkov References: <452A6049-893A-4E7E-8349-541D276FAD19@gmail.com> <92D944EF-6BF9-4635-AC05-4B51B386D5C7@gmail.com> <878sca7r43.fsf@gnus.org> <87mu0ozntx.fsf@mail.linkov.net> <87v9fatwdi.fsf@mail.linkov.net> X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41130 Cc: Stefan Kangas , Lars Ingebrigtsen , 41130@debbugs.gnu.org, 41198@debbugs.gnu.org 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 (-) --Apple-Mail=_D7EAA66F-B37A-47D0-B7F1-26BF874AD209 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Oct 16, 2020, at 4:20 AM, Juri Linkov wrote: >=20 >>> Now finally org keys are available in etc/NEWS, nice! >>> But typing S-TAB at the beginning of etc/NEWS signals the error: >>>=20 >>> Debugger entered--Lisp error: (error "Before first heading") >>> signal(error ("Before first heading")) >>>=20 >>> This is not how org-mode works - S-TAB doesn't fail before first = heading >>> in org-mode. >>=20 >> Do you suggest to change it to a user-error? Or just be silent? >=20 > To imitate org-mode, maybe outline-mode could temporarily (i.e. by > using save-excursion) navigate to the first heading before running > the rest of outline-cycle-buffer when it's before first heading? This patch should make outline behaves like org: S-TAB always cycle the = whole buffer, regardless where is the point. TAB cycles a heading, and = does nothing if point is before the first heading. Yuan --Apple-Mail=_D7EAA66F-B37A-47D0-B7F1-26BF874AD209 Content-Disposition: attachment; filename=outline-fix.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="outline-fix.patch" Content-Transfer-Encoding: quoted-printable =46rom=20147b547355380d134f423b44c988ff18074a4ded=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20Yuan=20Fu=20=0ADate:=20Thu,=20= 15=20Oct=202020=2022:20:20=20-0400=0ASubject:=20[PATCH]=20Suppress=20= "Before=20first=20headings"=20error=20in=20outline-cycle=0A=0A*=20= lisp/outline.el=20(outline-cycle):=20Suppress=20error.=0A= (outline-cycle-buffer):=20Simply=20pass=201=20to=20= 'outline-hide-sublevels'.=0A---=0A=20lisp/outline.el=20|=2037=20= +++++++++++++++++--------------------=0A=201=20file=20changed,=2017=20= insertions(+),=2020=20deletions(-)=0A=0Adiff=20--git=20a/lisp/outline.el=20= b/lisp/outline.el=0Aindex=20a4ce9afb44..05c884fb95=20100644=0A---=20= a/lisp/outline.el=0A+++=20b/lisp/outline.el=0A@@=20-1167,19=20+1167,22=20= @@=20outline-cycle=0A=20`Headings=20only'=20means=20show=20sub=20= headings=20but=20not=20their=20bodies.=0A=20`Show=20all'=20means=20show=20= all=20subheadings=20and=20their=20bodies."=0A=20=20=20(interactive)=0A-=20= =20(pcase=20(outline--cycle-state)=0A-=20=20=20=20('hide-all=0A-=20=20=20= =20=20(if=20(outline-has-subheading-p)=0A-=20=20=20=20=20=20=20=20=20= (progn=20(outline-show-children)=0A-=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20(message=20"Only=20headings"))=0A-=20=20=20=20=20=20=20= (outline-show-subtree)=0A-=20=20=20=20=20=20=20(message=20"Show=20= all")))=0A-=20=20=20=20('headings-only=0A-=20=20=20=20=20= (outline-show-subtree)=0A-=20=20=20=20=20(message=20"Show=20all"))=0A-=20= =20=20=20('show-all=0A-=20=20=20=20=20(outline-hide-subtree)=0A-=20=20=20= =20=20(message=20"Hide=20all"))))=0A+=20=20(condition-case=20nil=0A+=20=20= =20=20=20=20(pcase=20(outline--cycle-state)=0A+=20=20=20=20=20=20=20=20= ('hide-all=0A+=20=20=20=20=20=20=20=20=20(if=20= (outline-has-subheading-p)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20= (progn=20(outline-show-children)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20(message=20"Only=20headings"))=0A+=20=20=20=20=20=20= =20=20=20=20=20(outline-show-subtree)=0A+=20=20=20=20=20=20=20=20=20=20=20= (message=20"Show=20all")))=0A+=20=20=20=20=20=20=20=20('headings-only=0A= +=20=20=20=20=20=20=20=20=20(outline-show-subtree)=0A+=20=20=20=20=20=20=20= =20=20(message=20"Show=20all"))=0A+=20=20=20=20=20=20=20=20('show-all=0A= +=20=20=20=20=20=20=20=20=20(outline-hide-subtree)=0A+=20=20=20=20=20=20=20= =20=20(message=20"Hide=20all")))=0A+=20=20=20=20;;=20If=20error:=20= "Before=20first=20heading"=20occurs,=20ignore=20it.=0A+=20=20=20=20= (error=20nil)))=0A=20=0A=20(defvar-local=20outline--cycle-buffer-state=20= 'show-all=0A=20=20=20"Internal=20variable=20used=20for=20tracking=20= buffer=20cycle=20state.")=0A@@=20-1189,13=20+1192,7=20@@=20= outline-cycle-buffer=0A=20=20=20(interactive)=0A=20=20=20(pcase=20= outline--cycle-buffer-state=0A=20=20=20=20=20('show-all=0A-=20=20=20=20=20= (save-excursion=0A-=20=20=20=20=20=20=20(let=20((start-point=20(point)))=0A= -=20=20=20=20=20=20=20=20=20(while=20(not=20(eq=20(point)=20= start-point))=0A-=20=20=20=20=20=20=20=20=20=20=20(outline-up-heading=20= 1))=0A-=20=20=20=20=20=20=20=20=20(outline-hide-sublevels=0A-=20=20=20=20= =20=20=20=20=20=20(progn=20(outline-back-to-heading)=0A-=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20(funcall=20'outline-level)))))=0A+=20=20= =20=20=20(outline-hide-sublevels=201)=0A=20=20=20=20=20=20(setq=20= outline--cycle-buffer-state=20'top-level)=0A=20=20=20=20=20=20(message=20= "Top=20level=20headings"))=0A=20=20=20=20=20('top-level=0A--=20=0A2.27.0=0A= =0A= --Apple-Mail=_D7EAA66F-B37A-47D0-B7F1-26BF874AD209-- From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 17 02:37:00 2020 Received: (at 41130) by debbugs.gnu.org; 17 Oct 2020 06:37:00 +0000 Received: from localhost ([127.0.0.1]:33097 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTfps-0003t2-Hw for submit@debbugs.gnu.org; Sat, 17 Oct 2020 02:37:00 -0400 Received: from quimby.gnus.org ([95.216.78.240]:36020) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTfpq-0003sj-LD; Sat, 17 Oct 2020 02:36:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=0J/HyxX8smqgkM3kFAKR84eh1QELEG2YOjTvM6YVcUg=; b=JCqhAELu84l2GuAUTIyOxyjngA 5GVe7tFHHZ5x1OPAN6NxBcxf+zD+Egb6HKYNLuf7fOH+0iwuK71oP5DZqJhszuFec54jaNe3LNcqD SVBQhAYhimBcVzhPp5/ef0Lb6kTLtGASkAboq5va0ZxYTLoy/s50372lfqBrTXSn1oGM=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kTfpg-000051-NT; Sat, 17 Oct 2020 08:36:51 +0200 From: Lars Ingebrigtsen To: Yuan Fu Subject: Re: bug#41130: bug#41198: 27.0.60; [PATCH] heading cycling command for outline References: <452A6049-893A-4E7E-8349-541D276FAD19@gmail.com> <92D944EF-6BF9-4635-AC05-4B51B386D5C7@gmail.com> <878sca7r43.fsf@gnus.org> <87mu0ozntx.fsf@mail.linkov.net> <87v9fatwdi.fsf@mail.linkov.net> X-Now-Playing: Various's _1-8 Split Series_: "Foehn - Shrouded" Date: Sat, 17 Oct 2020 08:36:47 +0200 In-Reply-To: (Yuan Fu's message of "Fri, 16 Oct 2020 15:27:33 -0400") Message-ID: <87sgadz7cw.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Yuan Fu writes: > This patch should make outline behaves like org: S-TAB always cycle > the whole buffer, regardless where is the point. TAB cycles a heading, > and does nothing if point is before the first heading. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41130 Cc: Stefan Kangas , 41130@debbugs.gnu.org, 41198@debbugs.gnu.org, Juri Linkov 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 (-) Yuan Fu writes: > This patch should make outline behaves like org: S-TAB always cycle > the whole buffer, regardless where is the point. TAB cycles a heading, > and does nothing if point is before the first heading. I think the behaviour makes sense, but the implementation isn't ideal: [...] > + (condition-case nil > + (pcase (outline--cycle-state) > + ('hide-all > + (if (outline-has-subheading-p) > + (progn (outline-show-children) > + (message "Only headings")) > + (outline-show-subtree) > + (message "Show all"))) > + ('headings-only > + (outline-show-subtree) > + (message "Show all")) > + ('show-all > + (outline-hide-subtree) > + (message "Hide all"))) > + ;; If error: "Before first heading" occurs, ignore it. > + (error nil))) This is basically an `ignore-errors' around a whole bunch of code, used as a program flow mechanism, and that's always awkward, because it hides real errors in the code. Altering the functions to not error out in these situations would be better. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 17 16:51:38 2020 Received: (at 41130) by debbugs.gnu.org; 17 Oct 2020 20:51:38 +0000 Received: from localhost ([127.0.0.1]:35646 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTtAw-0006RU-Do for submit@debbugs.gnu.org; Sat, 17 Oct 2020 16:51:38 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:43183) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTtAt-0006RD-Ub; Sat, 17 Oct 2020 16:51:36 -0400 X-Originating-IP: 91.129.102.160 Received: from mail.gandi.net (m91-129-102-160.cust.tele2.ee [91.129.102.160]) (Authenticated sender: juri@linkov.net) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 3BBD920003; Sat, 17 Oct 2020 20:51:26 +0000 (UTC) From: Juri Linkov To: Lars Ingebrigtsen Subject: Re: bug#41130: bug#41198: 27.0.60; [PATCH] heading cycling command for outline Organization: LINKOV.NET References: <452A6049-893A-4E7E-8349-541D276FAD19@gmail.com> <92D944EF-6BF9-4635-AC05-4B51B386D5C7@gmail.com> <878sca7r43.fsf@gnus.org> <87mu0ozntx.fsf@mail.linkov.net> <87v9fatwdi.fsf@mail.linkov.net> <87sgadz7cw.fsf@gnus.org> Date: Sat, 17 Oct 2020 23:30:06 +0300 In-Reply-To: <87sgadz7cw.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 17 Oct 2020 08:36:47 +0200") Message-ID: <871rhwh91d.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.0 (/) X-Debbugs-Envelope-To: 41130 Cc: Stefan Kangas , Yuan Fu , 41130@debbugs.gnu.org, 41198@debbugs.gnu.org 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 (-) >> + (condition-case nil >> + (pcase (outline--cycle-state) >> + ('hide-all >> + (if (outline-has-subheading-p) >> + (progn (outline-show-children) >> + (message "Only headings")) >> + (outline-show-subtree) >> + (message "Show all"))) >> + ('headings-only >> + (outline-show-subtree) >> + (message "Show all")) >> + ('show-all >> + (outline-hide-subtree) >> + (message "Hide all"))) >> + ;; If error: "Before first heading" occurs, ignore it. >> + (error nil))) > > This is basically an `ignore-errors' around a whole bunch of code, used > as a program flow mechanism, and that's always awkward, because it hides > real errors in the code. > > Altering the functions to not error out in these situations would be > better. Like 'outline-back-to-heading' has an optional argument 'invisible-ok', maybe a new argument named 'error-ok' or 'outside-ok' could be added to not error out when point is outside of the outline tree. From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 17 20:28:35 2020 Received: (at 41130) by debbugs.gnu.org; 18 Oct 2020 00:28:35 +0000 Received: from localhost ([127.0.0.1]:35799 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTwYt-0005Fa-JA for submit@debbugs.gnu.org; Sat, 17 Oct 2020 20:28:35 -0400 Received: from mail-io1-f45.google.com ([209.85.166.45]:45655) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTwYr-0005FJ-IH; Sat, 17 Oct 2020 20:28:33 -0400 Received: by mail-io1-f45.google.com with SMTP id n6so8638813ioc.12; Sat, 17 Oct 2020 17:28:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=PQj8PTY7A074Gu4+wE2UYND0Fjeuvf261Y+LENgyzQs=; b=jMSWxUjwlvIU771mBDPO6qxDiSuGJi2RZSwHqZNW6oWCObrR0Ucw2nQnDk1rzU41Tr X4HX9Nuj/KjgfkehQmi8qmD1zmB/dlJnKx9t9gMHT//rS1DoGh8dQOshSpmmMTOgtF2V /+Dy34rKWGAniZX5FfQie9uD2HIKw6rdaPATg5sNKL6SnUSZ+8UaYcuGEvpkB9eAYZwQ 1P1BKvFimxUeSxdcqObESZEPdlOCUPFuuSs4KdW/UaK626rT1DehIU0A50+XeYPgjhhW MSge9IT+au8kf2rMHpx+Fg+6zRpoY9H5tPFGKR7X878NmkSyQApDmI2ym37WzQIiMUPY LBEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=PQj8PTY7A074Gu4+wE2UYND0Fjeuvf261Y+LENgyzQs=; b=ZnJjQIxzTS0a2522Gt8E7oQ7aGH4WYxDmBThY2uXEieM2pL7t8bR35H3BDFVDi/eht U8NKH11OzG/4GfxzJmhZl34QOQ7uPIgnf7W2a/EF+6MY0AjqJ4xlSTC7bsqr1I9A5O2C 7hDxVs3/f6gCs83peO2LBqV+nQrghd78IXg8x19CY06i1ODkply3vODH8soXnJ99PBHD G4hivTqElLXZLXCBd2Zx6kIbRGketgmC96AMWFL536iAJagQBNxNzXSp1GiJLMGJ5pXJ fLM/uaQXU+5s2GnHi33js3zyH+tjpHtAaUfauikinazuBnVuUDxjylsHzPJPot3vpZwo 1nHA== X-Gm-Message-State: AOAM533e2ixnK8LKlsTjl/onNfBYvyHrostmRrB62ap7ZxPQAQu8dw/Z m65JqseIf9BqgodkTE2Np1M= X-Google-Smtp-Source: ABdhPJwgrvVJ/26v0OQg1gqx7n4JiTNaafkg8jvthWhp+feMS30u5Hpv1Ioyt2xLuOyKA/uUquEFFg== X-Received: by 2002:a6b:4014:: with SMTP id k20mr6746408ioa.177.1602980907707; Sat, 17 Oct 2020 17:28:27 -0700 (PDT) Received: from ?IPv6:2601:98a:4200:9210:d02a:1c66:2033:eacb? ([2601:98a:4200:9210:d02a:1c66:2033:eacb]) by smtp.gmail.com with ESMTPSA id e13sm6113330iob.43.2020.10.17.17.28.26 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 17 Oct 2020 17:28:27 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: bug#41130: bug#41198: 27.0.60; [PATCH] heading cycling command for outline From: Yuan Fu In-Reply-To: <871rhwh91d.fsf@mail.linkov.net> Date: Sat, 17 Oct 2020 20:28:25 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <3346E33F-BFF2-4DD7-8411-F852CCF3C830@gmail.com> References: <452A6049-893A-4E7E-8349-541D276FAD19@gmail.com> <92D944EF-6BF9-4635-AC05-4B51B386D5C7@gmail.com> <878sca7r43.fsf@gnus.org> <87mu0ozntx.fsf@mail.linkov.net> <87v9fatwdi.fsf@mail.linkov.net> <87sgadz7cw.fsf@gnus.org> <871rhwh91d.fsf@mail.linkov.net> To: Juri Linkov X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41130 Cc: Stefan Kangas , Lars Ingebrigtsen , 41130@debbugs.gnu.org, 41198@debbugs.gnu.org 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 Oct 17, 2020, at 4:30 PM, Juri Linkov wrote: >=20 >>> + (condition-case nil >>> + (pcase (outline--cycle-state) >>> + ('hide-all >>> + (if (outline-has-subheading-p) >>> + (progn (outline-show-children) >>> + (message "Only headings")) >>> + (outline-show-subtree) >>> + (message "Show all"))) >>> + ('headings-only >>> + (outline-show-subtree) >>> + (message "Show all")) >>> + ('show-all >>> + (outline-hide-subtree) >>> + (message "Hide all"))) >>> + ;; If error: "Before first heading" occurs, ignore it. >>> + (error nil))) >>=20 >> This is basically an `ignore-errors' around a whole bunch of code, = used >> as a program flow mechanism, and that's always awkward, because it = hides >> real errors in the code. >>=20 >> Altering the functions to not error out in these situations would be >> better. >=20 > Like 'outline-back-to-heading' has an optional argument = 'invisible-ok', > maybe a new argument named 'error-ok' or 'outside-ok' could > be added to not error out when point is outside of the outline tree. I can modify outline code to signal a signal (say = =E2=80=98outline-before-first-heading) rather than an error, and handle = that signal specifically. How=E2=80=99s that? Yuan= From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 18 04:36:34 2020 Received: (at 41130) by debbugs.gnu.org; 18 Oct 2020 08:36:34 +0000 Received: from localhost ([127.0.0.1]:36167 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kU4B8-0000TT-4l for submit@debbugs.gnu.org; Sun, 18 Oct 2020 04:36:34 -0400 Received: from quimby.gnus.org ([95.216.78.240]:49012) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kU4B6-0000TA-5c; Sun, 18 Oct 2020 04:36:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=RgVvKUBoXG7rCIM/y1HKGJhTv3N0Y2jTjrNnt8+NgYc=; b=d6p/QtGPkyXGFFfw1QW9ggxKD3 MG50hyGS6UDFWNhke9pWh4UfSELqDK/5CSdjG8OHu/kG1gkE7ayqvz3C1+0ygozJCzF8GynAzbY19 LMipK8ppT9tFdUj4FhD8oRic1LORtPh5xlbZaPtNEX2tceqkDS5Vo+qIxIjUF914rqf0=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kU4Aw-0006WO-Qc; Sun, 18 Oct 2020 10:36:25 +0200 From: Lars Ingebrigtsen To: Yuan Fu Subject: Re: bug#41130: bug#41198: 27.0.60; [PATCH] heading cycling command for outline References: <452A6049-893A-4E7E-8349-541D276FAD19@gmail.com> <92D944EF-6BF9-4635-AC05-4B51B386D5C7@gmail.com> <878sca7r43.fsf@gnus.org> <87mu0ozntx.fsf@mail.linkov.net> <87v9fatwdi.fsf@mail.linkov.net> <87sgadz7cw.fsf@gnus.org> <871rhwh91d.fsf@mail.linkov.net> <3346E33F-BFF2-4DD7-8411-F852CCF3C830@gmail.com> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEVDNUhYT2KHdIYf GCT0zK+oXWX////KAn60AAAAAWJLR0QGYWa4fQAAAAd0SU1FB+QKEgciIGgyBOwAAAG7SURBVDjL XZRBcsMgDEWlquzBHvY2SfakTA/Qjr13Oub+V6mEwNAyWWT0pP9BCAMAoHV1TZQSB6z8Iv+BC9yS LECnoFVMISRdkg14FTgXbqmhCBYHsAzAdXMX1g6InTq4UwMp4VhxXzqA0eP+TQ1E7CCE+zZ386sk CLhdQCuwgu/5OmIBVk4Z2GNu5qjnsKI3jQcEBQQqlkYgyaCdWUZQmkjFy7awycXcWqBS0uJ+24oU WydJqDuKHFeA5V7AaTfAnwr6BZd05/N2ASpAlPBV8qsUJQHISv5lNN5AqWPXPNd4ATMUQNHl/Lnl LkUVPH0+TB6kSDdFbz4TXlLcQQUoIJpt8KCyW5yRwXsHFitIi8/QAceoaGGyJhszANSOTOTM8e4H DwbiFGg1x3mMB+Qbj8iPZkV77gOQKREaA1q//QM8IPNHsHB5XyC4eXossfV2yxVMqyOew96RrHfq pgViCKuFP8AKwGd4vJz1/yr4UcXw+Fmduu/b0QDPFLKWU5PcgeMR4We+Kjh3HajyDig9xV7BVywf DlAgYk7c9/OQgUYlc5m2qQJTkgWgTnpEnsM9v7wagzyoOtEK8i+W2o66dNtRxAAAACV0RVh0ZGF0 ZTpjcmVhdGUAMjAyMC0xMC0xOFQwNzozNDozMiswMDowMGkk31EAAAAldEVYdGRhdGU6bW9kaWZ5 ADIwMjAtMTAtMThUMDc6MzQ6MzIrMDA6MDAYeWftAAAAAElFTkSuQmCC X-Now-Playing: Rocket To The Sky's _Cigars_: "Cigars" Date: Sun, 18 Oct 2020 10:36:21 +0200 In-Reply-To: <3346E33F-BFF2-4DD7-8411-F852CCF3C830@gmail.com> (Yuan Fu's message of "Sat, 17 Oct 2020 20:28:25 -0400") Message-ID: <871rhwj5h6.fsf@gnus.org> 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-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Yuan Fu writes: > I can modify outline code to signal a signal (say > ‘outline-before-first-heading) rather than an error, and handle that > signal specifically. How’s that? Yes, that would also work. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41130 Cc: Stefan Kangas , 41130@debbugs.gnu.org, 41198@debbugs.gnu.org, Juri Linkov 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 (-) Yuan Fu writes: > I can modify outline code to signal a signal (say > =E2=80=98outline-before-first-heading) rather than an error, and handle t= hat > signal specifically. How=E2=80=99s that? Yes, that would also work. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 18 16:23:22 2020 Received: (at 41130) by debbugs.gnu.org; 18 Oct 2020 20:23:22 +0000 Received: from localhost ([127.0.0.1]:39145 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kUFD7-0001f5-VS for submit@debbugs.gnu.org; Sun, 18 Oct 2020 16:23:22 -0400 Received: from mail-io1-f41.google.com ([209.85.166.41]:38627) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kUFD6-0001eq-6g; Sun, 18 Oct 2020 16:23:20 -0400 Received: by mail-io1-f41.google.com with SMTP id y20so10622330iod.5; Sun, 18 Oct 2020 13:23:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=LfNzbwf/dWwEd7Fcg+R/xoS35alz439bjkvcgJuk58I=; b=RoC0JJIlq5/H7FytHbUQ+8eb/VdYufVaeKx1Vt+AUOX2z0Q9NcVKZFsxdc50h6zoFc dKQ9QdsZvOljmCkCVzMewfXOBnfNcpa/BVbtduhRa01PJMcrdawOiDZzixUKd/+DLHMi eOgvxqPevmYNIH9Qj9nmCw+2EuFSQL3WQWLM3Phkfj3i+EWvFw6qZIyzhzDzCqJgYF7l Ezu6pYC66g2+306SJjFDDD/0Z7LDYXwE9KAM5TjqBlOje3YQxqA/1ZZ423F207WVaRrV pesKoUf/Z8oWXWQTNT8jXz3C1E8D5ZZzOrLq4SvkFSbTwI/9Zkw2TebfrurvQ32duyOw gB0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=LfNzbwf/dWwEd7Fcg+R/xoS35alz439bjkvcgJuk58I=; b=GjNJ9hdvmems2THlomcoCPHtsooDWR+wVEfY9YGJjQi65OtIUnKqLWIMcknz49gs9N WNxqxnsauYBFvApEbCaCw9I13/USkylYyA/k0fpG9jhtYnSm8y/3mCY1m+rDTppFExYJ glnnBkpcNse0Uhgo0x4VLugrt/fdnPLbJbN4WZxzvNKLdeL/GBKdN2LTTBwgXkTZW4Ls 0JTuPp+lXa9pZwv+syR0ogL/3DLnEkLumTY1Rsn7JkzQ4iPhaD6s6GDw+b3qYJ97YW+e P3l7O1IHJJNr7Rofp04CPYlPcrOVE4toYNjNLXiOBnBIHji21bjfj6yveIB3RQ63/Tod AQgQ== X-Gm-Message-State: AOAM532keQnTQqzI5ksh6Oln2ZSxPjzBGJIcZTUygDxww2ch2m0fUIuD opt91xK43rIePSKI/wKlQPw= X-Google-Smtp-Source: ABdhPJyfQ0gAdJluHs+Zk5R4zLfqgTsXw2i0WhHw6ORyXXuiqmjDkXGOoLxwNzc7lI7EfX2erfEKng== X-Received: by 2002:a02:caa1:: with SMTP id e1mr9227997jap.80.1603052594457; Sun, 18 Oct 2020 13:23:14 -0700 (PDT) Received: from ?IPv6:2601:98a:4200:9210:d02a:1c66:2033:eacb? ([2601:98a:4200:9210:d02a:1c66:2033:eacb]) by smtp.gmail.com with ESMTPSA id v9sm8496222ioq.41.2020.10.18.13.23.13 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Oct 2020 13:23:13 -0700 (PDT) From: Yuan Fu Message-Id: <70FAFCD6-33C6-4254-97B7-EE3DF77B6EF1@gmail.com> Content-Type: multipart/mixed; boundary="Apple-Mail=_7B4AB68D-810C-4604-B476-F5B9D37CDCE3" Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: bug#41130: bug#41198: 27.0.60; [PATCH] heading cycling command for outline Date: Sun, 18 Oct 2020 16:23:12 -0400 In-Reply-To: <871rhwj5h6.fsf@gnus.org> To: Lars Ingebrigtsen References: <452A6049-893A-4E7E-8349-541D276FAD19@gmail.com> <92D944EF-6BF9-4635-AC05-4B51B386D5C7@gmail.com> <878sca7r43.fsf@gnus.org> <87mu0ozntx.fsf@mail.linkov.net> <87v9fatwdi.fsf@mail.linkov.net> <87sgadz7cw.fsf@gnus.org> <871rhwh91d.fsf@mail.linkov.net> <3346E33F-BFF2-4DD7-8411-F852CCF3C830@gmail.com> <871rhwj5h6.fsf@gnus.org> X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41130 Cc: Stefan Kangas , 41130@debbugs.gnu.org, 41198@debbugs.gnu.org, Juri Linkov 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 (-) --Apple-Mail=_7B4AB68D-810C-4604-B476-F5B9D37CDCE3 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Oct 18, 2020, at 4:36 AM, Lars Ingebrigtsen wrote: >=20 > Yuan Fu writes: >=20 >> I can modify outline code to signal a signal (say >> =E2=80=98outline-before-first-heading) rather than an error, and = handle that >> signal specifically. How=E2=80=99s that? >=20 > Yes, that would also work. >=20 > --=20 > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no Here is the new patch. Yuan --Apple-Mail=_7B4AB68D-810C-4604-B476-F5B9D37CDCE3 Content-Disposition: attachment; filename=outline-fix.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="outline-fix.patch" Content-Transfer-Encoding: quoted-printable =46rom=20ff4722534c1e47a2536257116436b66c79db3e8b=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20Yuan=20Fu=20=0ADate:=20Thu,=20= 15=20Oct=202020=2022:20:20=20-0400=0ASubject:=20[PATCH]=20Handle=20= "Before=20first=20headings"=20error=20in=20outline-cycle=0A=0A*=20= lisp/outline.el=20(outline-before-first-heading):=20New=20error.=0A= (outline-back-to-heading):=20Signal=20the=20new=20error.=0A= (outline-cycle):=20Ignore=20the=20error.=0A(outline-cycle-buffer):=20= Simply=20pass=201=20to=20'outline-hide-sublevels'.=0A---=0A=20= lisp/outline.el=20|=2040=20+++++++++++++++++++---------------------=0A=20= 1=20file=20changed,=2019=20insertions(+),=2021=20deletions(-)=0A=0Adiff=20= --git=20a/lisp/outline.el=20b/lisp/outline.el=0Aindex=20= a4ce9afb44..b9806bc187=20100644=0A---=20a/lisp/outline.el=0A+++=20= b/lisp/outline.el=0A@@=20-402,6=20+402,8=20@@=20outline-invisible-p=0A=20= If=20POS=20is=20nil,=20use=20`point'=20instead."=0A=20=20=20(eq=20= (get-char-property=20(or=20pos=20(point))=20'invisible)=20'outline))=0A=20= =0A+(define-error=20'outline-before-first-heading=20"Before=20first=20= heading")=0A+=0A=20(defun=20outline-back-to-heading=20(&optional=20= invisible-ok)=0A=20=20=20"Move=20to=20previous=20heading=20line,=20or=20= beg=20of=20this=20line=20if=20it's=20a=20heading.=0A=20Only=20visible=20= heading=20lines=20are=20considered,=20unless=20INVISIBLE-OK=20is=20= non-nil."=0A@@=20-412,7=20+414,7=20@@=20outline-back-to-heading=0A=20=09=20= =20(while=20(not=20found)=0A=20=09=20=20=20=20(or=20(re-search-backward=20= (concat=20"^\\(?:"=20outline-regexp=20"\\)")=0A=20=09=09=09=09=20=20=20=20= nil=20t)=0A-=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20(error=20= "Before=20first=20heading"))=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20(signal=20'outline-before-first-heading=20nil))=0A=20=09=20=20=20=20= (setq=20found=20(and=20(or=20invisible-ok=20(not=20= (outline-invisible-p)))=0A=20=09=09=09=20=20=20=20=20(point)))))=0A=20=09= (goto-char=20found)=0A@@=20-1167,19=20+1169,21=20@@=20outline-cycle=0A=20= `Headings=20only'=20means=20show=20sub=20headings=20but=20not=20their=20= bodies.=0A=20`Show=20all'=20means=20show=20all=20subheadings=20and=20= their=20bodies."=0A=20=20=20(interactive)=0A-=20=20(pcase=20= (outline--cycle-state)=0A-=20=20=20=20('hide-all=0A-=20=20=20=20=20(if=20= (outline-has-subheading-p)=0A-=20=20=20=20=20=20=20=20=20(progn=20= (outline-show-children)=0A-=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (message=20"Only=20headings"))=0A-=20=20=20=20=20=20=20= (outline-show-subtree)=0A-=20=20=20=20=20=20=20(message=20"Show=20= all")))=0A-=20=20=20=20('headings-only=0A-=20=20=20=20=20= (outline-show-subtree)=0A-=20=20=20=20=20(message=20"Show=20all"))=0A-=20= =20=20=20('show-all=0A-=20=20=20=20=20(outline-hide-subtree)=0A-=20=20=20= =20=20(message=20"Hide=20all"))))=0A+=20=20(condition-case=20nil=0A+=20=20= =20=20=20=20(pcase=20(outline--cycle-state)=0A+=20=20=20=20=20=20=20=20= ('hide-all=0A+=20=20=20=20=20=20=20=20=20(if=20= (outline-has-subheading-p)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20= (progn=20(outline-show-children)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20(message=20"Only=20headings"))=0A+=20=20=20=20=20=20= =20=20=20=20=20(outline-show-subtree)=0A+=20=20=20=20=20=20=20=20=20=20=20= (message=20"Show=20all")))=0A+=20=20=20=20=20=20=20=20('headings-only=0A= +=20=20=20=20=20=20=20=20=20(outline-show-subtree)=0A+=20=20=20=20=20=20=20= =20=20(message=20"Show=20all"))=0A+=20=20=20=20=20=20=20=20('show-all=0A= +=20=20=20=20=20=20=20=20=20(outline-hide-subtree)=0A+=20=20=20=20=20=20=20= =20=20(message=20"Hide=20all")))=0A+=20=20=20=20= (outline-before-first-heading=20nil)))=0A=20=0A=20(defvar-local=20= outline--cycle-buffer-state=20'show-all=0A=20=20=20"Internal=20variable=20= used=20for=20tracking=20buffer=20cycle=20state.")=0A@@=20-1189,13=20= +1193,7=20@@=20outline-cycle-buffer=0A=20=20=20(interactive)=0A=20=20=20= (pcase=20outline--cycle-buffer-state=0A=20=20=20=20=20('show-all=0A-=20=20= =20=20=20(save-excursion=0A-=20=20=20=20=20=20=20(let=20((start-point=20= (point)))=0A-=20=20=20=20=20=20=20=20=20(while=20(not=20(eq=20(point)=20= start-point))=0A-=20=20=20=20=20=20=20=20=20=20=20(outline-up-heading=20= 1))=0A-=20=20=20=20=20=20=20=20=20(outline-hide-sublevels=0A-=20=20=20=20= =20=20=20=20=20=20(progn=20(outline-back-to-heading)=0A-=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20(funcall=20'outline-level)))))=0A+=20=20= =20=20=20(outline-hide-sublevels=201)=0A=20=20=20=20=20=20(setq=20= outline--cycle-buffer-state=20'top-level)=0A=20=20=20=20=20=20(message=20= "Top=20level=20headings"))=0A=20=20=20=20=20('top-level=0A--=20=0A2.27.0=0A= =0A= --Apple-Mail=_7B4AB68D-810C-4604-B476-F5B9D37CDCE3-- From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 19 04:45:48 2020 Received: (at 41130) by debbugs.gnu.org; 19 Oct 2020 08:45:48 +0000 Received: from localhost ([127.0.0.1]:39952 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kUQnc-0005zF-Gr for submit@debbugs.gnu.org; Mon, 19 Oct 2020 04:45:48 -0400 Received: from quimby.gnus.org ([95.216.78.240]:60388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kUQna-0005yv-7Z; Mon, 19 Oct 2020 04:45:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=qeXfsRQSIMUj838UVbtdSVwS2+GpUCzxMigUWSU5hzE=; b=iZUhxpnthNPk39UhtLdsLtIocA D2UJHId0Nya6yaG008JEleLGBoTtQGbTpmlbkCeDFQ2WocNVZNCkmd8PdUroBzjVGvhp2qQ7xD4ss LfxI6Zm/K1QiNRWv60uXY1Xngih+hobkn7BFz+bqhhaKfHQ7ZYF0tMYWxoZRaK+0YEd4=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kUQnQ-0005Li-Ti; Mon, 19 Oct 2020 10:45:39 +0200 From: Lars Ingebrigtsen To: Yuan Fu Subject: Re: bug#41130: bug#41198: 27.0.60; [PATCH] heading cycling command for outline References: <452A6049-893A-4E7E-8349-541D276FAD19@gmail.com> <92D944EF-6BF9-4635-AC05-4B51B386D5C7@gmail.com> <878sca7r43.fsf@gnus.org> <87mu0ozntx.fsf@mail.linkov.net> <87v9fatwdi.fsf@mail.linkov.net> <87sgadz7cw.fsf@gnus.org> <871rhwh91d.fsf@mail.linkov.net> <3346E33F-BFF2-4DD7-8411-F852CCF3C830@gmail.com> <871rhwj5h6.fsf@gnus.org> <70FAFCD6-33C6-4254-97B7-EE3DF77B6EF1@gmail.com> X-Now-Playing: Motorpsycho's _Roadwork vol. 5 (2)_: "Taifun" Date: Mon, 19 Oct 2020 10:45:35 +0200 In-Reply-To: <70FAFCD6-33C6-4254-97B7-EE3DF77B6EF1@gmail.com> (Yuan Fu's message of "Sun, 18 Oct 2020 16:23:12 -0400") Message-ID: <87lfg2fvtc.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Yuan Fu writes: > Here is the new patch. Thanks; looks good to me. I've now pushed it to the trunk. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41130 Cc: Stefan Kangas , 41130@debbugs.gnu.org, 41198@debbugs.gnu.org, Juri Linkov 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 (-) Yuan Fu writes: > Here is the new patch. Thanks; looks good to me. I've now pushed it to the trunk. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Wed Jun 18 00:24:22 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 13 Jan 2021 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator