unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Micha Feigin <michf@post.tau.ac.il>
Subject: Re: Looking for (fill-paragraph) Like Functions
Date: Wed, 29 Nov 2006 16:35:07 +0200	[thread overview]
Message-ID: <20061129163507.0ebf519d@litshi.luna.local> (raw)
In-Reply-To: <87d576msui.fsf@localhost.localdomain>

On Wed, 29 Nov 2006 10:48:23 GMT
Passer By <sender@sender.send> wrote:

> 
> 
> 
> My first learned function and loved function of emacs was the M-q but
> there are cases where M-q doesn't do exactly what i want and i would
> like to make an improved version or find one somewhere.
> 
> 
> Here is an example of what i would want my improved (fill-paragraph)
> to do.
> 
> 
> 1) this is a sentence
> 2) this is another sentence in a list 
> 3) this is a sentence is long i would like to hit M-q now but emacs will not
> just rap this line it will rap all the lines and that makes me mad 4) this is
> another line M-q here would be good if it would make all the lines nice up to
> 1)
> 

The problem is with how do you recognize the end of a paragraph? You can't use
the end of line symbol as that is the same symbol that is used to break a line
in the middle of the paragraph and there is no end of paragraph symbol for text
files (AFAIK, maybe unicode has something).

The solution is to use the latex syntax and break lines with enter and
paragraph with an empty line. I think that that will solve your problem. i.e:

This is paragraph one
second line of paragraph one

This is paragraph two.

> 
> I would like my M-q to work for any "bulleted" list like this
> 
> so the above when My M-q'ed any place in the list would go to 
> 
> 1) this is a sentence
> 2) this is another sentence in a list 
> 3) this is a sentence is long i would like to hit M-q now but emacs
>    will not just rap this line it will rap all the lines and that
>    makes me mad
> 4) this is another line M-q here would be good if it would make all
>    the lines nice up to 1)
> 
> instead of this 
> 
> 
> 1) this is a sentence 2) this is another sentence in a list 3) this is
> a sentence is long i would like to hit M-q now but emacs will not just
> rap this line it will rap all the lines and that makes me mad 4) this
> is another line M-q here would be good if it would make all the lines
> nice up to 1)
> 
> 
> Thanks!
> _______________________________________________
> help-gnu-emacs mailing list
> help-gnu-emacs@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
>  
>  +++++++++++++++++++++++++++++++++++++++++++
>  This Mail Was Scanned By Mail-seCure System
>  at the Tel-Aviv University CC.
> 

  parent reply	other threads:[~2006-11-29 14:35 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-29 10:48 Looking for (fill-paragraph) Like Functions Passer By
2006-11-29 11:05 ` Mathias Dahl
2006-11-29 14:35 ` Micha Feigin [this message]
2006-11-29 15:00   ` Perry Smith
     [not found]   ` <mailman.1286.1164812410.2155.help-gnu-emacs@gnu.org>
2006-12-01 10:29     ` Passer By
2006-11-29 16:19 ` Floyd L. Davidson
2006-11-29 16:54   ` Markus Triska
2006-11-29 23:01     ` Floyd L. Davidson
2006-11-29 23:19       ` Markus Triska
2006-11-30  7:29         ` Floyd L. Davidson

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.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061129163507.0ebf519d@litshi.luna.local \
    --to=michf@post.tau.ac.il \
    /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.
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).