From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marco Wahl Subject: Re: Survey: changing a few default settings for Org 9.4 Date: Wed, 19 Feb 2020 14:21:34 +0100 Message-ID: <84ftf6k90h.fsf@gmail.com> References: <87pnebf2ku.fsf@gnu.org> <84k14ikfee.fsf@gmail.com> <87zhde3iue.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:37636) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j4PIK-0001hr-G3 for emacs-orgmode@gnu.org; Wed, 19 Feb 2020 08:21:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j4PIJ-0001QD-4W for emacs-orgmode@gnu.org; Wed, 19 Feb 2020 08:21:40 -0500 In-Reply-To: <87zhde3iue.fsf@gnu.org> (Bastien's message of "Wed, 19 Feb 2020 12:41:13 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" To: Bastien Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Hi! >>> - org-loop-over-headlines-in-active-region => t >> >> I vote for => 'start-level. Loop over headlines with same level as the >> first. > > Yes, good suggestion. Let's see what others say. >>> - org-special-ctrl-k => t >>> >>> The default value for the sister option org-special-ctrl-a is set to >>> reversed and while this changes a fundamental Emacs command behavior >>> it feels useful. I'd argue this is the same for org-special-ctrl-k: >>> setting it to t will feel natural. >> >> AFAICS there is a contradiction between the documentation of >> org-special-ctrl-k and the code! Doc: kill the tags. Code: >> (org-align-tags). >> >> Further I propose to delete the part " and possible the folded subtree >> below the line" from the documentation. > > Can you propose a patch against the maint branch for the fixes above? Sure. See the attachments. >>> - org-src-tab-acts-natively => t >>> - org-allow-promoting-top-level-subtree => t >> >> Just an idea for the "reverse": provide a function to convert a comment >> line to a heading (one level below the current level) and demote the >> subtrees below. > > I don't think converting a comment to a headline is a common use case. Ok. That was just an idea. >>> * We have regular meetings with https://www.emacs-doctor.com/ >> >> What are these meetings? > > We gather with fellow Emacsers in Paris once in a while. Ahhh! Paris! Thanks for the information. Paris is out of my reach, though. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-org-Fix-corner-case-for-org-kill-line.patch >From 49b00d2cf7ca4b8484e0a9679b39b62873ee30b6 Mon Sep 17 00:00:00 2001 From: Marco Wahl Date: Wed, 19 Feb 2020 13:48:01 +0100 Subject: [PATCH 1/2] org: Fix corner case for org-kill-line * lisp/org.el (org-kill-line): Kill _all_ tags when the cursor is on the tags part. --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index f7547eba1..f4fe76f82 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -20392,7 +20392,7 @@ depending on context." (skip-chars-backward " \t") (point)))) (if (<= end (point)) ;on tags part - (kill-region (point) (line-end-position)) + (kill-region end (line-end-position)) (kill-region (point) end))) (org-align-tags)) (t (kill-region (point) (line-end-position))))) -- 2.25.1 --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0002-org-Remove-irritating-documentation-line.patch >From a81744de15f42d1817482f2209f555a959e9e66c Mon Sep 17 00:00:00 2001 From: Marco Wahl Date: Wed, 19 Feb 2020 13:51:01 +0100 Subject: [PATCH 2/2] org: Remove irritating documentation line * lisp/org.el (org-special-ctrl-k): Omit irritating documentation line. --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index f4fe76f82..7327bfe21 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -1575,7 +1575,7 @@ When nil, `C-k' will call the default `kill-line' command. When t, the following will happen while the cursor is in the headline: - When the cursor is at the beginning of a headline, kill the entire - line and possible the folded subtree below the line. + line. - When in the middle of the headline text, kill the headline up to the tags. - When after the headline text, kill the tags." :group 'org-edit-structure -- 2.25.1 --=-=-=--