emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Thorsten <tjolitz@googlemail.com>
To: nicholas.dokos@hp.com
Cc: emacs-orgmode@gnu.org
Subject: Re: Problem with choosing mode while editing blocks with C-c '
Date: Wed, 14 Mar 2012 08:07:54 +0100	[thread overview]
Message-ID: <87r4wv4q45.fsf@googlemail.com> (raw)
In-Reply-To: <19218.1331684094@alphaville> (Nick Dokos's message of "Tue, 13 Mar 2012 20:14:54 -0400")

Nick Dokos <nicholas.dokos@hp.com> writes:

> Thorsten <quintfall@googlemail.com> wrote:
>
>> suvayu ali <fatkasuvayu+linux@gmail.com> 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

  reply	other threads:[~2012-03-14  7:06 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-13 22:02 Problem with choosing mode while editing blocks with C-c ' suvayu ali
2012-03-13 22:43 ` Nick Dokos
2012-03-13 23:04 ` Thorsten
2012-03-14  0:14   ` Nick Dokos
2012-03-14  7:07     ` Thorsten [this message]
     [not found]   ` <quintfall@googlemail.com>
2012-03-14  0:34     ` Nick Dokos
     [not found]       ` <fatkasuvayu@gmail.com>
2012-03-06  2:13         ` [BUG] LATEX_CLASS_OPTIONS not working suvayu ali
2012-03-06  2:42           ` Nick Dokos
2012-03-06 15:11             ` suvayu ali
2012-03-07 22:20               ` Nick Dokos
2012-03-08  0:43                 ` suvayu ali
2012-03-14  2:32       ` Problem with choosing mode while editing blocks with C-c ' suvayu ali
2012-03-14  2:59         ` Nick Dokos
2012-03-14  3:11         ` Nick Dokos
2012-03-14  8:41           ` suvayu ali
2012-03-14  9:03             ` Suvayu Ali
2012-03-14 13:50               ` Nick Dokos
2012-03-20  2:04               ` Bastien

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=87r4wv4q45.fsf@googlemail.com \
    --to=tjolitz@googlemail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=nicholas.dokos@hp.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).