emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: =?ISO-8859-1?Q?Gustav_Wikstr=F6m?= <gustav.erik@gmail.com>
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org,
	Thorsten <quintfall@googlemail.com>
Subject: Re: [babel] Editing 'quote' source blocks in artist mode
Date: Thu, 23 Feb 2012 11:06:52 -0500	[thread overview]
Message-ID: <9331.1330013212@alphaville> (raw)
In-Reply-To: Message from =?ISO-8859-1?Q?Gustav_Wikstr=F6m?= <gustav.erik@gmail.com> of "Thu\, 23 Feb 2012 16\:57\:16 +0100." <CA+SyOP_CUvXnWOXSMJOOik10Be9Wcmy+yVKH_0DrxS5eeE1SZg@mail.gmail.com>

Gustav Wikström <gustav.erik@gmail.com> wrote:

> Hi!
> 
> Just tried this and I can confirm both your bugs.
> 
> calling org-edit-special on the following line gives artist-mode (or whatever it is called..):
> 
> : some text
> 

That's a feature, not a bug:

,----
| org-edit-fixed-width-region is an interactive Lisp function in
| `org-src.el'.
| 
| (org-edit-fixed-width-region)
| 
| Edit the fixed-width ascii drawing at point.
| This must be a region where each line starts with a colon followed by
| a space character.
| An new buffer is created and the fixed-width region is copied into it,
| and the buffer is switched into `artist-mode' for editing.  When done,
| exit with C-c '.  The edited text will then replace
| the fragment in the Org-mode buffer.
`----

Nick

> calling org-edit-special inside the block gives ffap:
> 
> #+begin_quote
>   some text
> #+end_quote
> 
> /Gustav
> 
> On Thu, Feb 23, 2012 at 10:39 AM, Thorsten <quintfall@googlemail.com> wrote:
> 
>     Nick Dokos <nicholas.dokos@hp.com> writes:
>    
>     > Thorsten <quintfall@googlemail.com> wrote:
>     >
>     >>
>     >> Hi list,
>     >> when I want to edit text inside a 'quote' source block, I find myself in
>     >> picture/artist mode with wild key rebindings, e.g.:
>     >>
>     >> ,---------------------------------------------------------------------------
>     >> | RET (translated from <return>) runs the command artist-key-set-point,
>     >> | which is an interactive compiled Lisp function in `artist.el'.
>     >> |
>     >> | It is bound to RET.
>     >> |
>     >> | (artist-key-set-point &optional ARG)
>     >> |
>     >> | Set a point for the current shape.  With optional ARG, set the last point.
>     >> `---------------------------------------------------------------------------
>     >>
>     >> I don't think thats the intended behaviour? Shouldn't the edit buffer
>     >> rather be in fundamental mode or something like this?
>     >> To reproduce this:
>     >>
>     >> ,-----------------------------
>     >> | <q tab
>     >> | then inside the source block
>     >> | C-c '
>     >> `-----------------------------
>     >>
> 
>     >> My system data:
>     >> "GNU Emacs 24.0.93.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10)
>     >>  of 2012-02-07 on arch
>     >> Org-mode version 7.8.03
>     >> Ma Gnus v0.2"
>     >>
>     >
>     > I can't reproduce it.
>     >
>     > Is C-c ' (still) bound to org-edit-special?
>    
>     Yes, it is.
>    
>     > C-h f org-edit-special RET says
>     >
>     > ,----
>     > | org-edit-special is an interactive Lisp function in `org.el'.
>     > |
>     > | (org-edit-special &optional ARG)
>     > |
>     > | Call a special editor for the stuff at point.
>     > | When at a table, call the formula editor with `org-table-edit-formulas'.
>     > | When at the first line of an src example, call `org-edit-src-code'.
>     > | When in an #+include line, visit the include file.  Otherwise call
>     > | `ffap' to visit the file at point.
>     > `----
>     >
>     > and I get the ffap behavior in a quote block (not that that's particularly
>     > attractive either).
>     >
>     > Did you try it emacs -q? Maybe it's a customization of yours.
>    
>     I tried that too, and again the edit buffer was in artist mode.
>     I use the emacs24-starter-kit now, so not all customisations are mine.
>     But I can't see anything that sets edit buffers in artist mode.
>    
>     Might that be related with openwith mode? I have that activated
>     globally. But it shouldn't happen with emcas -q then.
>    
>     --
>     cheers,
>     Thorsten
> 
> 
> ----------------------------------------------------
> Alternatives:
> 
> ----------------------------------------------------

  reply	other threads:[~2012-02-23 16:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-23  0:26 [babel] Editing 'quote' source blocks in artist mode Thorsten
2012-02-23  0:50 ` Nick Dokos
2012-02-23  9:39   ` Thorsten
2012-02-23 15:57     ` Gustav Wikström
2012-02-23 16:06       ` Nick Dokos [this message]
2012-02-23 16:24         ` Thorsten
2012-02-23 16:37           ` Nick Dokos
2012-02-23 16:50             ` Thorsten
2012-02-23 22:44               ` Eric Schulte

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=9331.1330013212@alphaville \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=gustav.erik@gmail.com \
    --cc=quintfall@googlemail.com \
    /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).