emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Dan Davison <davison@stats.ox.ac.uk>
Cc: emacs org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: [BUG] fill-paragraph on commented line
Date: Thu, 29 Apr 2010 14:48:47 +0200	[thread overview]
Message-ID: <A9B200DF-FC98-48D8-9344-3825EF089638@gmail.com> (raw)
In-Reply-To: <87y6g8crc8.fsf@stats.ox.ac.uk>

Hi Dan,

On Apr 28, 2010, at 3:12 AM, Dan Davison wrote:

> I can see from the archives that fill-paragraph is a bit of a  
> headache,

:-) yes, indeed.

> but, still, I have a couple of queries...
>
> Firstly, with point on the # character below, M-q wraps the long line
> below, rather than the commented line, which is suprising.
>
> --8<---------------cut here---------------start------------->8---
> # long line here long line here long line here long line here long  
> line here long line here long line here long line here long line  
> here long line here
>
> second long line here second long line here second long line here  
> second long line here second long line here second long line here  
> second long line here second long line here
> --8<---------------cut here---------------end--------------->8---

No idea what is causing this.  I have been at war with the
comment prefix issue and never being able to resolve it
- except for using filladapt, that is.

>
> Also, would you mind reminding me what the intended behaviour is for  
> M-q
> on list items?
>
> If I have
>
> - item1
>   stuff here stuff here stuff here stuff here stuff here stuff here
>
> and do M-q, ideally I'd like it not to put the "stuff here" line onto
> the item1 line. Is that desirable but hard / not desirable /  
> supposed to
> be happening?

I think this should definitely put the second lin back into the first.
What would be nice though would be this:

- item1 \\
   stuff here stuff here stuff here stuff here stuff here stuff her

When \\ is there to specifically terminate the line, I'd love if the  
refilling
could respect this.  I am afraid I don't know how to do this, though.   
Maybe it can be done using filladapt, but I don't know.

A revision of the entire filling code might be a useful thing!

- Carsten

      reply	other threads:[~2010-04-29 12:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-28  1:12 [BUG] fill-paragraph on commented line Dan Davison
2010-04-29 12:48 ` Carsten Dominik [this message]

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=A9B200DF-FC98-48D8-9344-3825EF089638@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=davison@stats.ox.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    /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).