From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: [babel] Editing 'quote' source blocks in artist mode Date: Thu, 23 Feb 2012 11:06:52 -0500 Message-ID: <9331.1330013212@alphaville> References: <87d3964cpp.fsf@googlemail.com> <7405.1329958243@alphaville> <87ty2hlwgm.fsf@googlemail.com> Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:51087) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0bCD-00086T-Gs for emacs-orgmode@gnu.org; Thu, 23 Feb 2012 11:07:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S0bC3-0006qp-RT for emacs-orgmode@gnu.org; Thu, 23 Feb 2012 11:07:05 -0500 Received: from g1t0026.austin.hp.com ([15.216.28.33]:6132) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0bC3-0006qa-HS for emacs-orgmode@gnu.org; Thu, 23 Feb 2012 11:06:55 -0500 In-Reply-To: Message from =?us-ascii?Q?=3D=3FISO-8859-1=3FQ=3FGustav=5FWik?= =?us-ascii?Q?str=3DF6m=3F=3D?= of "Thu\, 23 Feb 2012 16\:57\:16 +0100." 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: =?us-ascii?Q?=3D=3FISO-8859-1=3FQ=3FGustav=5FWikstr=3DF6m=3F=3D?= Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org, Thorsten Gustav Wikstr=C3=B6m wrote: > Hi! >=20 > Just tried this and I can confirm both your bugs. >=20 > calling org-edit-special on the following line gives artist-mode (or what= ever it is called..): >=20 > : some text >=20 That's a feature, not a bug: ,---- | org-edit-fixed-width-region is an interactive Lisp function in | `org-src.el'. |=20 | (org-edit-fixed-width-region) |=20 | 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: >=20 > #+begin_quote > =C2=A0 some text > #+end_quote >=20 > /Gustav >=20 > On Thu, Feb 23, 2012 at 10:39 AM, Thorsten wro= te: >=20 > Nick Dokos writes: >=20=20=20=20 > > Thorsten wrote: > > > >> > >> Hi list, > >> when I want to edit text inside a 'quote' source block, I find mys= elf in > >> picture/artist mode with wild key rebindings, e.g.: > >> > >> ,-----------------------------------------------------------------= ---------- > >> | RET (translated from ) runs the command artist-key-set-p= oint, > >> | 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. =C2=A0With optional ARG, set = the last point. > >> `-----------------------------------------------------------------= ---------- > >> > >> I don't think thats the intended behaviour? Shouldn't the edit buf= fer > >> rather be in fundamental mode or something like this? > >> To reproduce this: > >> > >> ,----------------------------- > >> | >> | then inside the source block > >> | C-c ' > >> `----------------------------- > >> >=20 > >> My system data: > >> "GNU Emacs 24.0.93.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.= 10) > >> =C2=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? >=20=20=20=20 > Yes, it is. >=20=20=20=20 > > 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-for= mulas'. > > | When at the first line of an src example, call `org-edit-src-code= '. > > | When in an #+include line, visit the include file. =C2=A0Otherwis= e call > > | `ffap' to visit the file at point. > > `---- > > > > and I get the ffap behavior in a quote block (not that that's parti= cularly > > attractive either). > > > > Did you try it emacs -q? Maybe it's a customization of yours. >=20=20=20=20 > 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. >=20=20=20=20 > Might that be related with openwith mode? I have that activated > globally. But it shouldn't happen with emcas -q then. >=20=20=20=20 > -- > cheers, > Thorsten >=20 >=20 > ---------------------------------------------------- > Alternatives: >=20 > ----------------------------------------------------