all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "B. T. Raven" <btraven@nihilo.net>
To: help-gnu-emacs@gnu.org
Subject: Re: upgrade nonsensifies fill-paragraph
Date: Fri, 28 Dec 2012 17:42:23 -0600	[thread overview]
Message-ID: <kblap00uji@news4.newsguy.com> (raw)
In-Reply-To: <mailman.16106.1356459317.855.help-gnu-emacs@gnu.org>

Die Tue Dec 25 2012 12:15:10 GMT-0600 (Central Standard Time) ken
<gebser@mousecar.com> scripsit:

> For quite a while I've been using the highest upgrade of emacs available
> to RH/Centos 5.8, i.e., 21.4.  But because I wanted to start using
> webdav functionality in emacs, I scrapped that and downloaded and
> compiled version 22.1.1.  With this upgrade came problems (some of which
> I've encountered and had to fix in previous upgrades).  One of these is
> what "fill-paragraph" does.
> 
> I'll have a nicely formatted html unordered list, something like this:
> 
> <ul>
>   <li>This is a longer line of text for a single list
>   item.  We're going to use it to test to see how
>   well
>   word-wrapping works with this new version of emacs (22.1.1).  It's
>   always a real pain to reformat list items so that they look nice.
>  </li>
>  <li>Another line of text is no problem just typing it in without
>   editing anything which affects where the line-breaks are located.
>   Everything is happy so far.
>  </li>
>  <li>Now a third line.  After typing in this, I'll move the point up to
>   the first list item and try to reformat it with <kbd>M-q</kbd>.
>  </li>
> </ul>
> 
> Fairy readable, but I want to improve the first list item's formatting,
> so I put the point between the first "<li>" and its matching "</li>" and
> to M-q.  I get this:
> 
> <ul> <li>This is a longer line of text for a single list item.  We're
>   going to use it to test to see how well word-wrapping works with this
>   new version of emacs (22.1.1).  It's always a real pain to reformat
>   list items so that they look nice.  </li> <li>Another line of text is
>   no problem just typing it in without editing anything which affects
>   where the line-breaks are located.  Everything is happy so far.  </li>
>   <li>Now a third line.  After typing in this, I'll move the point up to
>   the first list item and try to reformat it with <kbd>M-q</kbd>.  </li>
>   </ul>
> 
> which is of course *much worse*.  And not how the previous version
> behaved (with exactly the same ~/.emacs).
> 
> The problem, I believe, has to do with emacs' definition of what
> signifies the end of a paragraph.  But I couldn't find any such
> definition.  Any help?

Things like this are found with C-h v parag TAB
Look at paragraph-start and paragraph-separate.
 <\/.+> is a regexp that is the pattern for tags like </li> vel sim.
Maybe that could be added to one or both of those variables in html-mode
or html-helper-mode but I don't know what repercussions that might have.

Ed

> 
> 
> 
> 
> 



       reply	other threads:[~2012-12-28 23:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.16106.1356459317.855.help-gnu-emacs@gnu.org>
2012-12-28 23:42 ` B. T. Raven [this message]
2012-12-29  0:15   ` upgrade nonsensifies fill-paragraph ken
2012-12-31  7:07 ` Jason Rumney
2012-12-31 12:57   ` ken
2012-12-25 18:15 ken

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

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

  git send-email \
    --in-reply-to=kblap00uji@news4.newsguy.com \
    --to=btraven@nihilo.net \
    --cc=help-gnu-emacs@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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.