From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-15?Q?Andreas_R=F6hler?= Subject: Re: How to set C-o back to open-line? Date: Fri, 17 May 2013 07:53:09 +0200 Message-ID: <5195C5C5.3050705@easy-emacs.de> References: <87k3mysg8c.fsf@earlgrey.lan>, <20130516231012.GB8732@kuru.dyndns-at-home.com> <87ip2is5ku.fsf@earlgrey.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:41880) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UdDYw-0006D6-Bl for emacs-orgmode@gnu.org; Fri, 17 May 2013 01:50:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UdDYr-0006gT-LA for emacs-orgmode@gnu.org; Fri, 17 May 2013 01:50:42 -0400 Received: from moutng.kundenserver.de ([212.227.126.186]:57389) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UdDYr-0006gI-B1 for emacs-orgmode@gnu.org; Fri, 17 May 2013 01:50:37 -0400 In-Reply-To: <87ip2is5ku.fsf@earlgrey.lan> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Am 17.05.2013 04:28, schrieb Christopher Allan Webber: > Suvayu Ali writes: > >> Hello Christopher, >> >> On Thu, May 16, 2013 at 05:38:11PM -0500, Christopher Allan Webber wrote: >>> I really hate org-open-line... I can see why people might want it, but >>> it's messed up my workflow. I'd like to set C-o back. >>> >>> However, I have no idea what org-defkey is doing, but I expected this to >>> work: >>> >>> (define-key org-mode-map (kbd "C-o") 'open-line) >>> >>> it isn't working! >>> >>> How to get the standard-ol-open-line behavior back? >> >> Does using org-defkey instead make it work? > > org-defkey doesn't seem to work. > >> That said, I'm curious what is so different about org-open-line? The >> docstring says the following: >> >> It is bound to C-o, . >> >> (org-open-line N) >> >> Insert a new row in tables, call `open-line' elsewhere. >> >> So unless you are in a table, it should be the same as normal. Is that >> broken? Anyway, I never use open-line myself, but I was curious after I >> saw several people mention it on unrelated threads on a few lists. >> >> Cheers, > > Right, exactly. The way I use org-diet often involves me splitting > apart and rejoining tables and the whole "adding a new line in between" > is part of expected behavior for me. The new system is driving me crazy! > > Installing this instead should fix it: (defun org-open-line (n) "Insert a new row in tables, call `open-line' elsewhere. With \C-u NUMBER `open-line' is called the common way also in table context" (interactive "*P") (cond (n (open-line (prefix-numeric-value n))) ((org-at-table-p) (org-table-insert-row)) (t (open-line (prefix-numeric-value n))))) Cheers, Andreas