From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Add C-u behavior to ? Date: Tue, 27 Feb 2018 16:42:51 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a114fb54ced558305663451a1" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34591) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqiLJ-00052W-3G for emacs-orgmode@gnu.org; Tue, 27 Feb 2018 11:43:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eqiLI-0004sc-4Q for emacs-orgmode@gnu.org; Tue, 27 Feb 2018 11:43:05 -0500 Received: from mail-yw0-x234.google.com ([2607:f8b0:4002:c05::234]:36680) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eqiLH-0004s5-Vg for emacs-orgmode@gnu.org; Tue, 27 Feb 2018 11:43:04 -0500 Received: by mail-yw0-x234.google.com with SMTP id g198so5098238ywb.3 for ; Tue, 27 Feb 2018 08:43:03 -0800 (PST) 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.org@gnu.org Sender: "Emacs-orgmode" To: emacs-org list --001a114fb54ced558305663451a1 Content-Type: text/plain; charset="UTF-8" Hello, Lately, I have seen myself end up in a scenario where the point is at | as shown below, and I need to insert an Org heading at point. ===== * heading - list item | content ===== Currently, I cannot any way to insert heading at point while *not respecting* the content, when the point is *immediately* after a list item. C-return, C-u C-return, M-return, C-u M-return, none work. I see that C-u C-return is "free". C-return is bound to `org-insert-heading-respect-content ' whose definition is simply: (defun org-insert-heading-respect-content (&optional invisible-ok) "Insert heading with `org-insert-heading-respect-content' set to t." (interactive) (org-insert-heading '(4) invisible-ok)) Would a patch be accepted that passes nil as ARG to org-insert-heading, instead of '(4)? ----- I am aware that M-return does what I want if I first manully insert newlines after a list to "break" the list (by first moving the point as shown below). ===== * heading - list item | (now do M-return) content ===== But still, having C-u C-return binding would be nicer.. -- Kaushal Modi --001a114fb54ced558305663451a1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

Lately, I have seen myself end up in a scenario where the point is at | a= s shown below, and I need to insert an Org heading at point.

=3D=3D= =3D=3D=3D
* heading
- list item
|
content
=3D=3D=3D=3D=3D
Currently, I cannot any way to insert heading at point while *no= t respecting* the content, when the point is *immediately* after a list ite= m.

C-return, C-u C-return, M-return, C-u M-return, none work.<= br>
I see that C-u C-return is "free".

C-return is bound to `org-insert-heading-respect-content ' whose definition is simply:

(defun org-insert-heading-respect-= content (&optional invisible-ok)
=C2=A0 "Insert heading with `o= rg-insert-heading-respect-content' set to t."
=C2=A0 (interacti= ve)
=C2=A0 (org-insert-heading '(4) invisible-ok))

Woul= d a patch be accepted that passes nil as ARG to org-insert-heading, instead= of '(4)?

-----

I am aware that M-return doe= s what I want if I first manully insert newlines after a list to "brea= k" the list (by first moving the point as shown below).

=3D=3D= =3D=3D=3D
* heading
- list item


| (now do M-ret= urn)
content
=3D=3D=3D=3D=3D

But still, havin= g C-u C-return binding would be nicer..
--

Kaushal Modi

--001a114fb54ced558305663451a1--