From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Gustav_Wikstr=F6m?= Subject: Re: [babel] Editing 'quote' source blocks in artist mode Date: Thu, 23 Feb 2012 16:57:16 +0100 Message-ID: References: <87d3964cpp.fsf@googlemail.com> <7405.1329958243@alphaville> <87ty2hlwgm.fsf@googlemail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=14dae9340413bfa25604b9a3b2ba Return-path: Received: from eggs.gnu.org ([140.186.70.92]:43749) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0b2o-0005Bq-0P for emacs-orgmode@gnu.org; Thu, 23 Feb 2012 10:57:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S0b2j-0004kR-Pm for emacs-orgmode@gnu.org; Thu, 23 Feb 2012 10:57:21 -0500 Received: from mail-gy0-f169.google.com ([209.85.160.169]:57239) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0b2j-0004kF-Kp for emacs-orgmode@gnu.org; Thu, 23 Feb 2012 10:57:17 -0500 Received: by ghrr18 with SMTP id r18so784837ghr.0 for ; Thu, 23 Feb 2012 07:57:16 -0800 (PST) In-Reply-To: <87ty2hlwgm.fsf@googlemail.com> 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: Thorsten Cc: emacs-orgmode@gnu.org --14dae9340413bfa25604b9a3b2ba Content-Type: text/plain; charset=ISO-8859-1 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 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 wrote: > Nick Dokos writes: > > > Thorsten 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 ) 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: > >> > >> ,----------------------------- > >> | >> | 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 > > > --14dae9340413bfa25604b9a3b2ba Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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

calling org-edit-speci= al inside the block gives ffap:

#+begin= _quote
=A0 some text
#+end_quote

/Gustav

On T= hu, Feb 23, 2012 at 10:39 AM, Thorsten <quintfall@googlemail.com> wrote= :
Nick= Dokos <nicholas.dokos@hp.com> writes:

> Thorsten <
quintfall@goo= glemail.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. =A0With 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)
>> =A0of 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-formul= as'.
> | When at the first line of an src example, call `org-edit-src-code= 9;.
> | When in an #+include line, visit the include file. =A0Otherwise call=
> | `ffap' to visit the file at point.
> `----
>
> and I get the ffap behavior in a quote block (not that that's part= icularly
> 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



--14dae9340413bfa25604b9a3b2ba--