emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [bug] orgstruct has suddenly become overly opinionated about leg


From: Christopher Schmidt
Subject: Re: [O] [bug] orgstruct has suddenly become overly opinionated about legal keystrokes
Date: Fri, 22 Feb 2013 17:11:59 +0000 (GMT)

Eric Schulte <address@hidden> writes:
> I use orgstruct mode in my message mode, so that I may easily include
> tables and lists when writing and responding to mail.

orgstruct-mode does not help you with tables.  That is orgtbl-mode.

> This week, I've suddenly noticed that when I press meta-RET in message
>mode with orgstruct mode enabled, Org-struct returns the error
>
>   orgstruct-error: This key has no function outside structure elements
>
> However, orgstruct should (and used to) just pass this key combo
> through to the underlying major mode.

orgstruct-mode tries to but does not find an appropriate key binding.

Does this patch help?  (Apply and restart Emacs.)
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -8621,7 +8621,7 @@ buffer.  It will also recognize item context in multiline 
items."
                               (where-is-internal f outline-mode-map)))
         ;; TODO use local-function-key-map
         (dolist (rep '(("<tab>" . "TAB")
-                       ("<ret>" . "RET")
+                       ("<return>" . "RET")
                        ("<esc>" . "ESC")
                        ("<del>" . "DEL")))
           (setq binding (read-kbd-macro (replace-regexp-in-string
> This is new behavior as of the last couple of weeks.

That's my fault.  I am sorry.

        Christopher

reply via email to

[Prev in Thread] Current Thread [Next in Thread]