From: Carsten Dominik <firstname.lastname@example.org>
To: Torsten Wagner <email@example.com>
Subject: Re: [PATCH] Change C-' behaviour on #+TBLFM: line
Date: Sat, 20 Nov 2010 12:34:20 +0100 [thread overview]
Message-ID: <8AA18220-AFCA-42B6-A15B-D88D2F58A2D9@gmail.com> (raw)
applied with minor changes. Thanks!
On Nov 19, 2010, at 9:49 AM, Torsten Wagner wrote:
> Short description:
> I recently started to use tables in org-mode. Having the pointer
> the the table and pressing C-c' I can enter the formula buffer.
> However, placing the pointer on the #+TBLFM: line C-c' results in
> file or URL:".
> If even more people believe this is confusing, I would suggest to
> the behaviour. C-c' on a #+TBLFM: line should open up the formular
> Longer Explanation:
> For small changes of the formula I often edit the #+TBLFM: line
> directly. If things went more complex or get messed, I press C-c' to
> enter the formula buffer. However, at this time my pointer is
> located at
> the #+TBLFM: line.
> The associated call function for C-c' is:
> This function calls
> in case the point is located inside the table and
> ffap aka find-file-at-point
> in all other cases (omitting the cases for source code and include
> here for simplicity)
> Thus pressing C-c' at #+TBLFM ends up with the request for a file or
> a URL.
> In my opinion org-edit-special needs another case to look out for
> #+TBLFM or resp. combine this with the case to call
> Please find below a patch for that.
> diff --git a/lisp/org.el b/lisp/org.el
> index 023e019..a7e4d33 100644
> --- a/lisp/org.el
> +++ b/lisp/org.el
> @@ -17259,7 +17259,9 @@ When in an #+include line, visit the include
> file. Otherwise call
> - ((org-at-table-p)
> + ((or (org-at-table-p) (save-excursion
> + (beginning-of-line 1)
> + (looking-at "[ \t]*#\\+TBLFM")))
> (call-interactively 'org-table-edit-formulas))
> (t (call-interactively 'ffap))))
> This is my very first public org-mode patch and my very first hack in
> vital org-mode elisp code. Thus, don't laugh or blame to much.... :)
> Best regards
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
next prev parent reply other threads:[~2010-11-20 11:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-19 8:49 [PATCH] Change C-' behaviour on #+TBLFM: line Torsten Wagner
2010-11-20 11:34 ` Carsten Dominik [this message]
2010-11-20 20:18 ` Michael Brand
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:
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
* 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
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).