From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Roehler Newsgroups: gmane.emacs.help Subject: Re: how do I make html-mode break on
tags? Date: Sun, 23 Jul 2006 10:42:14 +0200 Organization: 1&1 Internet AG Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: sea.gmane.org 1153644106 14949 80.91.229.2 (23 Jul 2006 08:41:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 23 Jul 2006 08:41:46 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 23 10:41:44 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G4ZWu-0004vz-36 for geh-help-gnu-emacs@m.gmane.org; Sun, 23 Jul 2006 10:41:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G4ZWt-0004fx-Jv for geh-help-gnu-emacs@m.gmane.org; Sun, 23 Jul 2006 04:41:39 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 50 Original-NNTP-Posting-Host: p54bea223.dip0.t-ipconnect.de Original-X-Trace: online.de 1153643859 11637 84.190.162.35 (23 Jul 2006 08:37:39 GMT) Original-X-Complaints-To: abuse@einsundeins.com Original-NNTP-Posting-Date: Sun, 23 Jul 2006 08:37:39 +0000 (UTC) User-Agent: KNode/0.9.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:140541 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:36166 Archived-At: Gene Cash wrote: > How the hell do I get html-mode to break on
tags? > > I've dicked around with paragraph-start and paragraph-separate > for hours with no luck. The docs don't explain anywhere how the > fill algorithm decides to break paragraphs. > > I'd like > >
blah blah blah blah
blah blah blah blah
blah blah > blah blah
> > to turn into: > >
> blah blah blah blah
> blah blah blah blah
> blah blah blah blah
> > when I hit M-q > > -gc > > ;; Don't no, if it's the best way, just one. (defun newline-after-html-break () "Insert a newline after any
in html source code" (interactive "*") (save-excursion (goto-char (point-min)) (while (re-search-forward "
" nil 'move 1) (replace-match "
\n")))) (define-key html32-mode-map (kbd "M-q") 'newline-after-html-break) ;; Tried this, but it doesn't work. Any ideas? ;; (defun set-paragraph-function () ;; " " ;; (interactive) ;; (if (eq major-mode 'html32-mode) ;; (setq fill-paragraph-function 'newline-after-html-break))) __ Andreas Roehler