[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/allout.el
From: |
Juanma Barranquero |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/allout.el |
Date: |
Wed, 13 Jul 2005 06:15:40 -0400 |
Index: emacs/lisp/allout.el
diff -c emacs/lisp/allout.el:1.54 emacs/lisp/allout.el:1.55
*** emacs/lisp/allout.el:1.54 Mon Jul 4 23:08:52 2005
--- emacs/lisp/allout.el Wed Jul 13 10:15:39 2005
***************
*** 868,874 ****
(make-variable-buffer-local 'allout-pre-was-isearching)
;;;_ = allout-isearch-prior-pos nil
(defvar allout-isearch-prior-pos nil
! "Cue for isearch-dynamic-exposure tracking, used by allout-isearch-expose.")
(make-variable-buffer-local 'allout-isearch-prior-pos)
;;;_ = allout-isearch-did-quit
(defvar allout-isearch-did-quit nil
--- 868,874 ----
(make-variable-buffer-local 'allout-pre-was-isearching)
;;;_ = allout-isearch-prior-pos nil
(defvar allout-isearch-prior-pos nil
! "Cue for isearch-dynamic-exposure tracking, used by
`allout-isearch-expose'.")
(make-variable-buffer-local 'allout-isearch-prior-pos)
;;;_ = allout-isearch-did-quit
(defvar allout-isearch-did-quit nil
***************
*** 887,902 ****
It's automatically reset to nil after every buffer modification.")
(make-variable-buffer-local 'allout-override-protect)
;;;_ > allout-unprotected (expr)
! (defmacro allout-unprotected (expr)
! "Evaluate EXPRESSION with `allout-override-protect' let-bound t."
`(let ((allout-override-protect t))
! ,expr))
;;;_ = allout-undo-aggregation
(defvar allout-undo-aggregation 30
"Amount of successive self-insert actions to bunch together per undo.
This is purely a kludge variable, regulating the compensation for a bug in
! the way that before-change-functions and undo interact.")
(make-variable-buffer-local 'allout-undo-aggregation)
;;;_ = file-var-bug hack
(defvar allout-v18/19-file-var-hack nil
--- 887,902 ----
It's automatically reset to nil after every buffer modification.")
(make-variable-buffer-local 'allout-override-protect)
;;;_ > allout-unprotected (expr)
! (defmacro allout-unprotected (expression)
! "Evaluate EXPRESSION with `allout-override-protect' let-bound to t."
`(let ((allout-override-protect t))
! ,expression))
;;;_ = allout-undo-aggregation
(defvar allout-undo-aggregation 30
"Amount of successive self-insert actions to bunch together per undo.
This is purely a kludge variable, regulating the compensation for a bug in
! the way that `before-change-functions' and undo interact.")
(make-variable-buffer-local 'allout-undo-aggregation)
;;;_ = file-var-bug hack
(defvar allout-v18/19-file-var-hack nil
***************
*** 1407,1418 ****
"Buffer point last returned by `allout-end-of-current-subtree'.")
(make-variable-buffer-local 'allout-recent-end-of-subtree)
;;;_ > allout-prefix-data (beg end)
! (defmacro allout-prefix-data (beg end)
"Register allout-prefix state data - BEGINNING and END of prefix.
For reference by `allout-recent' funcs. Returns BEGINNING."
`(setq allout-recent-prefix-end ,end
! allout-recent-prefix-beginning ,beg))
;;;_ > allout-recent-depth ()
(defmacro allout-recent-depth ()
"Return depth of last heading encountered by an outline maneuvering
function.
--- 1407,1418 ----
"Buffer point last returned by `allout-end-of-current-subtree'.")
(make-variable-buffer-local 'allout-recent-end-of-subtree)
;;;_ > allout-prefix-data (beg end)
! (defmacro allout-prefix-data (beginning end)
"Register allout-prefix state data - BEGINNING and END of prefix.
For reference by `allout-recent' funcs. Returns BEGINNING."
`(setq allout-recent-prefix-end ,end
! allout-recent-prefix-beginning ,beginning))
;;;_ > allout-recent-depth ()
(defmacro allout-recent-depth ()
"Return depth of last heading encountered by an outline maneuvering
function.
***************
*** 1632,1638 ****
The chart for a topics' offspring precedes the entry for the topic
itself.
! \(fn &optional levels)"
;; The other function parameters are for internal recursion, and should
;; not be specified by external callers. ORIG-DEPTH is depth of topic at
--- 1632,1638 ----
The chart for a topics' offspring precedes the entry for the topic
itself.
! \(fn &optional LEVELS)"
;; The other function parameters are for internal recursion, and should
;; not be specified by external callers. ORIG-DEPTH is depth of topic at
***************
*** 1999,2005 ****
)
;;;_ > allout-snug-back ()
(defun allout-snug-back ()
! "Position cursor at end of previous topic
Presumes point is at the start of a topic prefix."
(if (or (bobp) (eobp))
--- 1999,2005 ----
)
;;;_ > allout-snug-back ()
(defun allout-snug-back ()
! "Position cursor at end of previous topic.
Presumes point is at the start of a topic prefix."
(if (or (bobp) (eobp))
***************
*** 2249,2256 ****
- Implement (and clear) `allout-post-goto-bullet', for hot-spot
outline commands.
! - Massages buffer-undo-list so successive, standard character self-inserts are
! aggregated. This kludge compensates for lack of undo bunching when
`before-change-functions' is used."
; Apply any external change func:
--- 2249,2256 ----
- Implement (and clear) `allout-post-goto-bullet', for hot-spot
outline commands.
! - Massages `buffer-undo-list' so successive, standard character self-inserts
! are aggregated. This kludge compensates for lack of undo bunching when
`before-change-functions' is used."
; Apply any external change func:
***************
*** 2379,2385 ****
;;;_ > allout-flag-region (from to flag)
(defmacro allout-flag-region (from to flag)
! "Hide or show lines from FROM to TO, via Emacs selective-display FLAG char.
Ie, text following flag C-m \(carriage-return) is hidden until the
next C-j (newline) char.
--- 2379,2385 ----
;;;_ > allout-flag-region (from to flag)
(defmacro allout-flag-region (from to flag)
! "Hide or show lines from FROM to TO, via Emacs `selective-display' FLAG
char.
Ie, text following flag C-m \(carriage-return) is hidden until the
next C-j (newline) char.
***************
*** 2421,2427 ****
(setq allout-isearch-did-quit nil))
;;;_ > allout-enwrap-isearch ()
(defun allout-enwrap-isearch ()
! "Impose `allout-mode' isearch-abort wrapper for dynamic exposure in isearch.
The function checks to ensure that the rebinding is done only once."
--- 2421,2427 ----
(setq allout-isearch-did-quit nil))
;;;_ > allout-enwrap-isearch ()
(defun allout-enwrap-isearch ()
! "Impose `isearch-abort' wrapper for dynamic exposure in isearch.
The function checks to ensure that the rebinding is done only once."
***************
*** 2469,2475 ****
font-lock-mode nil)))
(add-hook 'isearch-mode-hook 'isearch-inhibit-font-lock)
(defun isearch-reenable-font-lock ()
! "Reenable font-lock after isearching - for use on isearch-mode-end-hook."
(if (and (boundp 'font-lock-mode) font-lock-mode)
(if (and (allout-mode-p) isearch-was-font-locking)
(setq isearch-was-font-locking nil
--- 2469,2475 ----
font-lock-mode nil)))
(add-hook 'isearch-mode-hook 'isearch-inhibit-font-lock)
(defun isearch-reenable-font-lock ()
! "Reenable font-lock after isearching - for use on `isearch-mode-end-hook'."
(if (and (boundp 'font-lock-mode) font-lock-mode)
(if (and (allout-mode-p) isearch-was-font-locking)
(setq isearch-was-font-locking nil
***************
*** 2671,2685 ****
((allout-sibling-index))))))
)
)
! ;;;_ > allout-open-topic (relative-depth &optional before use_sib_bullet)
! (defun allout-open-topic (relative-depth &optional before use_sib_bullet)
"Open a new topic at depth RELATIVE-DEPTH.
New topic is situated after current one, unless optional flag BEFORE
is non-nil, or unless current line is complete empty (not even
whitespace), in which case open is done on current line.
! If USE_SIB_BULLET is true, use the bullet of the prior sibling.
Nuances:
--- 2671,2685 ----
((allout-sibling-index))))))
)
)
! ;;;_ > allout-open-topic (relative-depth &optional before use-sib-bullet)
! (defun allout-open-topic (relative-depth &optional before use-sib-bullet)
"Open a new topic at depth RELATIVE-DEPTH.
New topic is situated after current one, unless optional flag BEFORE
is non-nil, or unless current line is complete empty (not even
whitespace), in which case open is done on current line.
! If USE-SIB-BULLET is true, use the bullet of the prior sibling.
Nuances:
***************
*** 2821,2827 ****
;;(if doing-beginning (save-excursion (newline (if dbl-space 2 1))))
! (allout-rebullet-heading (and use_sib_bullet ref-bullet);;; solicit
depth ;;; depth
nil ;;; number-control
nil ;;; index
--- 2821,2827 ----
;;(if doing-beginning (save-excursion (newline (if dbl-space 2 1))))
! (allout-rebullet-heading (and use-sib-bullet ref-bullet);;; solicit
depth ;;; depth
nil ;;; number-control
nil ;;; index
***************
*** 3439,3446 ****
Numbering of yanked topics, and the successive siblings at the depth
into which they're being yanked, is adjusted.
! `allout-yank-pop' works with `allout-yank' just like normal yank-pop
! works with normal yank in non-outline buffers."
(interactive "*P")
(setq this-command 'yank)
--- 3439,3446 ----
Numbering of yanked topics, and the successive siblings at the depth
into which they're being yanked, is adjusted.
! `allout-yank-pop' works with `allout-yank' just like normal `yank-pop'
! works with normal `yank' in non-outline buffers."
(interactive "*P")
(setq this-command 'yank)
***************
*** 4365,4373 ****
;;;_ - LaTeX formatting
;;;_ > allout-latex-verb-quote (string &optional flow)
(defun allout-latex-verb-quote (string &optional flow)
! "Return copy of STRING for literal reproduction across latex processing.
Expresses the original characters \(including carriage returns) of the
! string across latex processing."
(mapconcat (function
(lambda (char)
(cond ((memq char '(?\\ ?$ ?% ?# ?& ?{ ?} ?_ ?^ ?- ?*))
--- 4365,4373 ----
;;;_ - LaTeX formatting
;;;_ > allout-latex-verb-quote (string &optional flow)
(defun allout-latex-verb-quote (string &optional flow)
! "Return copy of STRING for literal reproduction across LaTeX processing.
Expresses the original characters \(including carriage returns) of the
! string across LaTeX processing."
(mapconcat (function
(lambda (char)
(cond ((memq char '(?\\ ?$ ?% ?# ?& ?{ ?} ?_ ?^ ?- ?*))
***************
*** 4378,4387 ****
""))
;;;_ > allout-latex-verbatim-quote-curr-line ()
(defun allout-latex-verbatim-quote-curr-line ()
! "Express line for exact \(literal) representation across latex processing.
Adjust line contents so it is unaltered \(from the original line)
! across latex processing, within the context of a `verbatim'
environment. Leaves point at the end of the line."
(beginning-of-line)
(let ((beg (point))
--- 4378,4387 ----
""))
;;;_ > allout-latex-verbatim-quote-curr-line ()
(defun allout-latex-verbatim-quote-curr-line ()
! "Express line for exact \(literal) representation across LaTeX processing.
Adjust line contents so it is unaltered \(from the original line)
! across LaTeX processing, within the context of a `verbatim'
environment. Leaves point at the end of the line."
(beginning-of-line)
(let ((beg (point))
***************
*** 4397,4403 ****
(goto-char (1+ (match-end 0))))))
;;;_ > allout-insert-latex-header (buffer)
(defun allout-insert-latex-header (buffer)
! "Insert initial latex commands at point in BUFFER."
;; Much of this is being derived from the stuff in appendix of E in
;; the TeXBook, pg 421.
(set-buffer buffer)
--- 4397,4403 ----
(goto-char (1+ (match-end 0))))))
;;;_ > allout-insert-latex-header (buffer)
(defun allout-insert-latex-header (buffer)
! "Insert initial LaTeX commands at point in BUFFER."
;; Much of this is being derived from the stuff in appendix of E in
;; the TeXBook, pg 421.
(set-buffer buffer)
***************
*** 4471,4477 ****
)))
;;;_ > allout-insert-latex-trailer (buffer)
(defun allout-insert-latex-trailer (buffer)
! "Insert concluding latex commands at point in BUFFER."
(set-buffer buffer)
(insert "\n\\end{document}\n"))
;;;_ > allout-latexify-one-item (depth prefix bullet text)
--- 4471,4477 ----
)))
;;;_ > allout-insert-latex-trailer (buffer)
(defun allout-insert-latex-trailer (buffer)
! "Insert concluding LaTeX commands at point in BUFFER."
(set-buffer buffer)
(insert "\n\\end{document}\n"))
;;;_ > allout-latexify-one-item (depth prefix bullet text)
***************
*** 4526,4532 ****
)))
;;;_ > allout-latexify-exposed (arg &optional tobuf)
(defun allout-latexify-exposed (arg &optional tobuf)
! "Format current topics exposed portions to TOBUF for latex processing.
TOBUF defaults to a buffer named the same as the current buffer, but
with \"*\" prepended and \" latex-formed*\" appended.
--- 4526,4532 ----
)))
;;;_ > allout-latexify-exposed (arg &optional tobuf)
(defun allout-latexify-exposed (arg &optional tobuf)
! "Format current topics exposed portions to TOBUF for LaTeX processing.
TOBUF defaults to a buffer named the same as the current buffer, but
with \"*\" prepended and \" latex-formed*\" appended.
***************
*** 4640,4646 ****
Representations of actual backslashes - '\\\\\\\\' - are left as a
single backslash.
! Optional arg SUCCESSIVE-BACKSLASHES is used internally for recursion."
(if (string= regexp "")
""
--- 4640,4647 ----
Representations of actual backslashes - '\\\\\\\\' - are left as a
single backslash.
! \(fn REGEXP)"
! ;; Optional arg SUCCESSIVE-BACKSLASHES is used internally for recursion.
(if (string= regexp "")
""
***************
*** 4683,4689 ****
(cons function (symbol-value hook)))))))
;;;_ : my-mark-marker to accommodate divergent emacsen:
(defun my-mark-marker (&optional force buffer)
! "Accommodate the different signature for mark-marker across Emacsen.
XEmacs takes two optional args, while GNU Emacs does not,
so pass them along when appropriate."
--- 4684,4690 ----
(cons function (symbol-value hook)))))))
;;;_ : my-mark-marker to accommodate divergent emacsen:
(defun my-mark-marker (&optional force buffer)
! "Accommodate the different signature for `mark-marker' across Emacsen.
XEmacs takes two optional args, while GNU Emacs does not,
so pass them along when appropriate."
- [Emacs-diffs] Changes to emacs/lisp/allout.el, Lute Kamstra, 2005/07/04
- [Emacs-diffs] Changes to emacs/lisp/allout.el,
Juanma Barranquero <=
- [Emacs-diffs] Changes to emacs/lisp/allout.el, Richard M . Stallman, 2005/07/16
- [Emacs-diffs] Changes to emacs/lisp/allout.el, Juanma Barranquero, 2005/07/18
- [Emacs-diffs] Changes to emacs/lisp/allout.el, Juri Linkov, 2005/07/18
- [Emacs-diffs] Changes to emacs/lisp/allout.el, Richard M . Stallman, 2005/07/18
- [Emacs-diffs] Changes to emacs/lisp/allout.el, Richard M . Stallman, 2005/07/18