emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lispref/searching.texi [lexbind]


From: Miles Bader
Subject: [Emacs-diffs] Changes to emacs/lispref/searching.texi [lexbind]
Date: Mon, 25 Oct 2004 00:42:22 -0400

Index: emacs/lispref/searching.texi
diff -c emacs/lispref/searching.texi:1.39.2.9 
emacs/lispref/searching.texi:1.39.2.10
*** emacs/lispref/searching.texi:1.39.2.9       Wed Oct  6 05:23:53 2004
--- emacs/lispref/searching.texi        Mon Oct 25 04:19:38 2004
***************
*** 1,6 ****
  @c -*-texinfo-*-
  @c This is part of the GNU Emacs Lisp Reference Manual.
! @c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999
  @c   Free Software Foundation, Inc.
  @c See the file elisp.texi for copying conditions.
  @setfilename ../info/searching
--- 1,6 ----
  @c -*-texinfo-*-
  @c This is part of the GNU Emacs Lisp Reference Manual.
! @c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2004
  @c   Free Software Foundation, Inc.
  @c See the file elisp.texi for copying conditions.
  @setfilename ../info/searching
***************
*** 694,702 ****
  
    Here is a complicated regexp which was formerly used by Emacs to
  recognize the end of a sentence together with any whitespace that
! follows.  It was used as the variable @code{sentence-end}.  (Its value
! nowadays contains alternatives for @samp{.}, @samp{?} and @samp{!} in
! other character sets.)
  
    First, we show the regexp as a string in Lisp syntax to distinguish
  spaces from tab characters.  The string constant begins and ends with a
--- 694,702 ----
  
    Here is a complicated regexp which was formerly used by Emacs to
  recognize the end of a sentence together with any whitespace that
! follows.  (Nowadays Emacs uses a similar but more complex default
! regexp constructed by the function @code{sentence-end}.
! @xref{Standard Regexps}.)
  
    First, we show the regexp as a string in Lisp syntax to distinguish
  spaces from tab characters.  The string constant begins and ends with a
***************
*** 730,738 ****
  The first part of the pattern is a character alternative that matches
  any one of three characters: period, question mark, and exclamation
  mark.  The match must begin with one of these three characters.  (This
! is the one point where the new value of @code{sentence-end} differs
! from the old.  The new value also lists sentence ending
! address@hidden characters.)
  
  @item []\"')@}]*
  The second part of the pattern matches any closing braces and quotation
--- 730,738 ----
  The first part of the pattern is a character alternative that matches
  any one of three characters: period, question mark, and exclamation
  mark.  The match must begin with one of these three characters.  (This
! is one point where the new default regexp used by Emacs differs from
! the old.  The new value also allows some address@hidden
! characters that end a sentence without any following whitespace.)
  
  @item []\"')@}]*
  The second part of the pattern matches any closing braces and quotation
***************
*** 1698,1720 ****
  @end defvar
  
  @defvar sentence-end
! This is the regular expression describing the end of a sentence.  (All
! paragraph boundaries also end sentences, regardless.)  The (slightly
! simplified) default value is:
! 
! @example
! "[.?!][]\"')@}]*\\($\\| $\\|\t\\|@ @ \\)[ \t\n]*"
! @end example
! 
! This means a period, question mark or exclamation mark (the actual
! default value also lists their alternatives in other character sets),
! followed optionally by closing parenthetical characters, followed by
! tabs, spaces or new lines.
! 
! For a detailed explanation of this regular expression, see @ref{Regexp
! Example}.
  @end defvar
  
  @ignore
     arch-tag: c2573ca2-18aa-4839-93b8-924043ef831f
  @end ignore
--- 1698,1722 ----
  @end defvar
  
  @defvar sentence-end
! If address@hidden, the value should be a regular expression describing
! the end of a sentence, including the whitespace following the
! sentence.  (All paragraph boundaries also end sentences, regardless.)
! 
! If the value is @code{nil}, the default, then the function
! @code{sentence-end} has to construct the regexp.  That is why you
! should always call the function @code{sentence-end} to obtain the
! regexp to be used to recognize the end of a sentence.
  @end defvar
  
+ @defun sentence-end
+ This function returns the value of the variable @code{sentence-end},
+ if address@hidden  Otherwise it returns a default value based on the
+ values of the variables @code{sentence-end-double-space}
+ (@pxref{Definition of sentence-end-double-space}),
+ @code{sentence-end-without-period} and
+ @code{sentence-end-without-space}.
+ @end defun
+ 
  @ignore
     arch-tag: c2573ca2-18aa-4839-93b8-924043ef831f
  @end ignore




reply via email to

[Prev in Thread] Current Thread [Next in Thread]