emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christopher Schmidt <christopher@ch.ristopher.com>
To: emacs-orgmode@gnu.org
Subject: Re: [bug] orgstruct has suddenly become overly opinionated about legal keystrokes
Date: Fri, 22 Feb 2013 17:11:59 +0000 (GMT)	[thread overview]
Message-ID: <871uc88e8q@ch.ristopher.com> (raw)
In-Reply-To: <87wqu0jnlf.fsf@gmail.com> (Eric Schulte's message of "Fri, 22 Feb 2013 09:54:36 -0700")

[-- Attachment #1: Type: text/plain, Size: 687 bytes --]

Eric Schulte <schulte.eric@gmail.com> 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.)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-diff, Size: 522 bytes --]

--- 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

[-- Attachment #3: Type: text/plain, Size: 108 bytes --]


> This is new behavior as of the last couple of weeks.

That's my fault.  I am sorry.

        Christopher

  reply	other threads:[~2013-02-22 17:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-22 16:54 [bug] orgstruct has suddenly become overly opinionated about legal keystrokes Eric Schulte
2013-02-22 17:11 ` Christopher Schmidt [this message]
2013-02-22 17:27   ` Eric Schulte
2013-02-22 18:56     ` Christopher Schmidt
2013-02-23  8:30       ` Bastien
2013-03-29 19:08         ` Eric Schulte
2013-03-29 19:57           ` Christopher Schmidt
2013-02-25 16:00 ` Sebastien Vauban
2013-02-25 16:15   ` Christopher Schmidt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871uc88e8q@ch.ristopher.com \
    --to=christopher@ch.ristopher.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).