From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Subject: Re: Problem with choosing mode while editing blocks with C-c ' Date: Wed, 14 Mar 2012 08:07:54 +0100 Message-ID: <87r4wv4q45.fsf@googlemail.com> References: <877gyoxfu4.fsf@googlemail.com> <19218.1331684094@alphaville> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48989) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7iIB-0002LR-NG for emacs-orgmode@gnu.org; Wed, 14 Mar 2012 03:06:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S7iI5-0001S1-G7 for emacs-orgmode@gnu.org; Wed, 14 Mar 2012 03:06:39 -0400 Received: from mail-bk0-f41.google.com ([209.85.214.41]:63478) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7iI5-0001Ro-4J for emacs-orgmode@gnu.org; Wed, 14 Mar 2012 03:06:33 -0400 Received: by bkwq16 with SMTP id q16so1269065bkw.0 for ; Wed, 14 Mar 2012 00:06:29 -0700 (PDT) In-Reply-To: <19218.1331684094@alphaville> (Nick Dokos's message of "Tue, 13 Mar 2012 20:14:54 -0400") 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: nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.org Nick Dokos writes: > Thorsten wrote: > >> suvayu ali writes: >> >> Hi, >> >> > I am having problems editing blocks with C-c '. If the blocks are >> > marked >> > with upper case letters Emacs brings up the temporary buffer in >> > picture-mode. >> > >> > #+BEGIN_SRC latex >> > >> > #+END_SRC >> > >> > However the buffer mode is chosen correctly if lower case letters are >> > used. >> > >> > #+begin_src latex >> > >> > #+end_src >> > >> > Any ideas what could be wrong? >> >> There was a discussion of this topic recently, I had and still have >> my quote source >> blocks in artists (picture) mode and thought this was strange behaviour. >> Some stated that this is a feature, while Eric (Schulte) confirmed the >> behaviour and agreed that it appears more like a bug than a feature. >> >> I'm not sure how to link to email threads, I hope the following link >> works for you: >> >> [[gnus:nntp%2Bnews.gmane.org:gmane.emacs.orgmode#87d3964cpp.fsf@googlemail.com][Email >> from Thorsten: {babel} Editing 'quote' source]] >> >> My system: >> "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" >> > > Wandering aroung org-src.el, I stumbled on the following variable which you > (Thorsten) may find useful in your case: > > ,---- > | org-edit-fixed-width-region-mode is a variable defined in `org-src.el'. > | Its value is artist-mode > | > | Documentation: > | The mode that should be used to edit fixed-width regions. > | These are the regions where each line starts with a colon. > | > | You can customize this variable. > `---- Thanks, I chose fundamental mode instead of artist mode, since it seems more natural for quotes. I don't know which other types of fixed-width regions there are, but for me quotes seem to be the most frequently used regions of this type. If thats generally the case, wouldn't fundamental mode be a smarter choice as a default mode in this case (principle of least surprise)? -- cheers, Thorsten