all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Ryde <user42@zip.com.au>
Subject: Re: texinfo-fill-workaround.el -- no break after @: when filling
Date: Tue, 30 Aug 2005 09:21:04 +1000	[thread overview]
Message-ID: <87fyssfhy7.fsf@zip.com.au> (raw)
In-Reply-To: 87iry0jb0h.fsf-monnier+gnu.emacs.sources@gnu.org

[-- Attachment #1: Type: text/plain, Size: 919 bytes --]

Stefan Monnier <monnier@iro.umontreal.ca> writes (in gnu-emacs-sources):
>
> I'd point out that fill-nobreak-predicate is a hook in recent
> versions of Emacs

I notice the manual still only says nil or a function.  Perhaps
something like the following (new text for ease of reading, diff
below),


   The variable `fill-nobreak-predicate' is a hook (an abnormal hook,
*note Hooks::) specifying additional conditions where line-breaking is
not allowed.  Each function is called with no arguments and should
return a non-`nil' value if point is not a good place to break the
line.  Two standard functions you can use are
`fill-single-word-nobreak-p' (don't break after the first word of a
sentence or before the last) and `fill-french-nobreak-p' (don't break
after `(' or before `)', `:' or `?').


2005-08-27  Kevin Ryde  <user42@zip.com.au>

        * text.texi (Fill Commands): fill-nobreak-predicate is now a hook.


[-- Attachment #2: text.texi.nobreak.diff --]
[-- Type: text/plain, Size: 1708 bytes --]

Index: text.texi
===================================================================
RCS file: /cvsroot/emacs/emacs/man/text.texi,v
retrieving revision 1.57
diff -u -c -r1.57 text.texi
cvs server: conflicting specifications of output style
*** text.texi	15 Aug 2005 01:47:46 -0000	1.57
--- text.texi	29 Aug 2005 23:18:40 -0000
***************
*** 577,587 ****
  @code{t} to tell the sentence commands that a period is not necessary.
  
  @vindex fill-nobreak-predicate
!   The variable @code{fill-nobreak-predicate} specifies additional
! conditions for where line-breaking is allowed.  Its value is either
! @code{nil} or a Lisp function; the function is called with no
! arguments, and if it returns a non-@code{nil} value, then point is not
! a good place to break the line.  Two standard functions you can use are
  @code{fill-single-word-nobreak-p} (don't break after the first word of
  a sentence or before the last) and @code{fill-french-nobreak-p} (don't
  break after @samp{(} or before @samp{)}, @samp{:} or @samp{?}).
--- 577,587 ----
  @code{t} to tell the sentence commands that a period is not necessary.
  
  @vindex fill-nobreak-predicate
!   The variable @code{fill-nobreak-predicate} is a hook (an abnormal
! hook, @pxref{Hooks}) specifying additional conditions where
! line-breaking is not allowed.  Each function is called with no
! arguments and should return a non-@code{nil} value if point is not a
! good place to break the line.  Two standard functions you can use are
  @code{fill-single-word-nobreak-p} (don't break after the first word of
  a sentence or before the last) and @code{fill-french-nobreak-p} (don't
  break after @samp{(} or before @samp{)}, @samp{:} or @samp{?}).

[-- Attachment #3: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

       reply	other threads:[~2005-08-29 23:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1041.1121820984.20277.gnu-emacs-sources@gnu.org>
     [not found] ` <873bq8d7yd.fsf-monnier+gnu.emacs.sources@gnu.org>
     [not found]   ` <mailman.1541.1122257048.20277.gnu-emacs-sources@gnu.org>
     [not found]     ` <87iry0jb0h.fsf-monnier+gnu.emacs.sources@gnu.org>
2005-08-29 23:21       ` Kevin Ryde [this message]
2005-08-30 10:30         ` texinfo-fill-workaround.el -- no break after @: when filling Richard M. Stallman
2006-04-06 23:36           ` Kevin Ryde
     [not found]       ` <mailman.5657.1125538235.20277.gnu-emacs-sources@gnu.org>
2005-09-01  4:00         ` Stefan Monnier

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=87fyssfhy7.fsf@zip.com.au \
    --to=user42@zip.com.au \
    /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.