emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/lisp/textmodes/paragraphs.el [emacs-unico


From: Miles Bader
Subject: [Emacs-diffs] Changes to emacs/lisp/textmodes/paragraphs.el [emacs-unicode-2]
Date: Mon, 28 Jun 2004 04:35:38 -0400

Index: emacs/lisp/textmodes/paragraphs.el
diff -c emacs/lisp/textmodes/paragraphs.el:1.66.4.1 
emacs/lisp/textmodes/paragraphs.el:1.66.4.2
*** emacs/lisp/textmodes/paragraphs.el:1.66.4.1 Fri Apr 16 12:50:37 2004
--- emacs/lisp/textmodes/paragraphs.el  Mon Jun 28 07:30:00 2004
***************
*** 120,168 ****
  This is relevant for filling.  See also `sentence-end-without-period'
  and `colon-double-space'.
  
! If you change this, you should also change `sentence-end'.  See Info
! node `Sentences'."
    :type 'boolean
    :group 'fill)
  
  (defcustom sentence-end-without-period nil
    "*Non-nil means a sentence will end without a period.
  For example, a sentence in Thai text ends with double space but
! without a period."
    :type 'boolean
    :group 'fill)
  
  (defcustom sentence-end-without-space
    "$B!#!%!)!*$A!##.#?#!$(0!$!%!)!*$(G!$!%!)!*(B"
    "*String containing characters that end sentence without following spaces.
! If you change this, you should also change `sentence-end'.  See Info
! node `Sentences'."
    :group 'paragraphs
    :type 'string)
  
! (defcustom sentence-end
!   (purecopy
!    ;; This is a bit stupid since it's not auto-updated when the
!    ;; other variables are changes, but it's still useful info.
!    (concat (if sentence-end-without-period "\\w  \\|")
!          "\\([.?!][]\"')}]*"
!          (if sentence-end-double-space
!              "\\($\\| $\\|\t\\|  \\)" "\\($\\|[\t ]\\)")
!          "\\|[" sentence-end-without-space "]+\\)"
!          "[ \t\n]*"))
    "*Regexp describing the end of a sentence.
  The value includes the whitespace following the sentence.
  All paragraph boundaries also end sentences, regardless.
  
! The default value specifies that in order to be recognized as the end
! of a sentence, the ending period, question mark, or exclamation point
! must be followed by two spaces, unless it's inside some sort of quotes
! or parenthesis.
! 
! See also the variable `sentence-end-double-space', the variable
! `sentence-end-without-period' and Info node `Sentences'."
    :group 'paragraphs
!   :type 'regexp)
  
  (defcustom page-delimiter "^\014"
    "*Regexp describing line-beginnings that separate pages."
--- 120,181 ----
  This is relevant for filling.  See also `sentence-end-without-period'
  and `colon-double-space'.
  
! This value is used by the function `sentence-end' to construct the
! regexp describing the end of a sentence, in case when the value of
! the variable `sentence-end' is nil.  See Info node `Sentences'."
    :type 'boolean
    :group 'fill)
  
  (defcustom sentence-end-without-period nil
    "*Non-nil means a sentence will end without a period.
  For example, a sentence in Thai text ends with double space but
! without a period.
! 
! This value is used by the function `sentence-end' to construct the
! regexp describing the end of a sentence, in case when the value of
! the variable `sentence-end' is nil.  See Info node `Sentences'."
    :type 'boolean
    :group 'fill)
  
  (defcustom sentence-end-without-space
    "$B!#!%!)!*$A!##.#?#!$(0!$!%!)!*$(G!$!%!)!*(B"
    "*String containing characters that end sentence without following spaces.
! 
! This value is used by the function `sentence-end' to construct the
! regexp describing the end of a sentence, in case when the value of
! the variable `sentence-end' is nil.  See Info node `Sentences'."
    :group 'paragraphs
    :type 'string)
  
! (defcustom sentence-end nil
    "*Regexp describing the end of a sentence.
  The value includes the whitespace following the sentence.
  All paragraph boundaries also end sentences, regardless.
  
! The value nil means to use the default value defined by the
! function `sentence-end'.  You should always use this function
! to obtain the value of this variable."
    :group 'paragraphs
!   :type '(choice regexp (const :tag "Use default value" nil)))
! 
! (defun sentence-end ()
!   "Return the regexp describing the end of a sentence.
! 
! This function returns either the value of the variable `sentence-end'
! if it is non-nil, or the default value constructed from the
! variables `sentence-end-double-space', `sentence-end-without-period'
! and `sentence-end-without-space'.  The default value specifies
! that in order to be recognized as the end of a sentence, the
! ending period, question mark, or exclamation point must be
! followed by two spaces, unless it's inside some sort of quotes or
! parenthesis.  See Info node `Sentences'."
!   (or sentence-end
!       (concat (if sentence-end-without-period "\\w  \\|")
!               "\\([.?!][]\"'\xd0c9\x5397d)}]*"
!               (if sentence-end-double-space
!                   "\\($\\| $\\|\t\\|  \\)" "\\($\\|[\t ]\\)")
!               "\\|[" sentence-end-without-space "]+\\)"
!               "[ \t\n]*")))
  
  (defcustom page-delimiter "^\014"
    "*Regexp describing line-beginnings that separate pages."
***************
*** 411,417 ****
  sentences.  Also, every paragraph boundary terminates sentences as well."
    (interactive "p")
    (or arg (setq arg 1))
!   (let ((opoint (point)))
      (while (< arg 0)
        (let ((pos (point))
            (par-beg (save-excursion (start-of-paragraph-text) (point))))
--- 424,431 ----
  sentences.  Also, every paragraph boundary terminates sentences as well."
    (interactive "p")
    (or arg (setq arg 1))
!   (let ((opoint (point))
!         (sentence-end (sentence-end)))
      (while (< arg 0)
        (let ((pos (point))
            (par-beg (save-excursion (start-of-paragraph-text) (point))))




reply via email to

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