emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] fill-paragraph on commented line
@ 2010-04-28  1:12 Dan Davison
  2010-04-29 12:48 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Davison @ 2010-04-28  1:12 UTC (permalink / raw)
  To: emacs org-mode mailing list

I can see from the archives that fill-paragraph is a bit of a headache,
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---

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?

Thanks,

Dan

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [BUG] fill-paragraph on commented line
  2010-04-28  1:12 [BUG] fill-paragraph on commented line Dan Davison
@ 2010-04-29 12:48 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2010-04-29 12:48 UTC (permalink / raw)
  To: Dan Davison; +Cc: emacs org-mode mailing list

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-04-29 12:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-28  1:12 [BUG] fill-paragraph on commented line Dan Davison
2010-04-29 12:48 ` Carsten Dominik

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).