diff options
| author | Glenn Morris | 2010-11-06 13:23:42 -0700 |
|---|---|---|
| committer | Glenn Morris | 2010-11-06 13:23:42 -0700 |
| commit | 5ed619e0a309c8ce539f0fbc2d19a068139f099d (patch) | |
| tree | 9fff5acd78b23128c671511932338347e0d06f3f | |
| parent | e2a9c0bca0dc06975181556767a3b6db8de4e486 (diff) | |
| download | emacs-5ed619e0a309c8ce539f0fbc2d19a068139f099d.tar.gz emacs-5ed619e0a309c8ce539f0fbc2d19a068139f099d.zip | |
Use line-end-position rather than end-of-line, etc.
* textmodes/texnfo-upd.el (texinfo-start-menu-description)
(texinfo-update-menu-region-beginning, texinfo-menu-first-node)
(texinfo-delete-existing-pointers, texinfo-find-pointer)
(texinfo-clean-up-node-line, texinfo-insert-node-lines)
(texinfo-multiple-files-update):
* textmodes/table.el (table--probe-cell-left-up)
(table--probe-cell-right-bottom):
* textmodes/picture.el (picture-tab-search):
* textmodes/page-ext.el (pages-copy-header-and-position)
(pages-directory-for-addresses):
* progmodes/vera-mode.el (vera-get-offset):
* progmodes/simula.el (simula-calculate-indent):
* progmodes/python.el (python-pdbtrack-overlay-arrow):
* progmodes/prolog.el (end-of-prolog-clause):
* progmodes/perl-mode.el (perl-calculate-indent, perl-indent-exp):
* progmodes/icon.el (indent-icon-exp):
* progmodes/etags.el (tag-re-match-p):
* progmodes/ebrowse.el (ebrowse-show-file-name-at-point):
* progmodes/ebnf2ps.el (ebnf-begin-file):
* progmodes/dcl-mode.el (dcl-back-to-indentation-1)
(dcl-save-local-variable):
* play/life.el (life-setup):
* play/gametree.el (gametree-looking-at-ply):
* nxml/nxml-maint.el (nxml-insert-target-repertoire-glyph-set):
* mail/sendmail.el (mail-mode-auto-fill):
* emacs-lisp/lisp-mode.el (calculate-lisp-indent):
* emacs-lisp/edebug.el (edebug-overlay-arrow):
* emacs-lisp/checkdoc.el (checkdoc-this-string-valid):
* woman.el (woman-parse-numeric-value, woman2-TH, woman2-SH)
(woman-tab-to-tab-stop, WoMan-warn-ignored):
* type-break.el (type-break-file-keystroke-count):
* term.el (term-replace-by-expanded-history-before-point)
(term-skip-prompt, term-extract-string):
* speedbar.el (speedbar-edit-line, speedbar-expand-line)
(speedbar-contract-line, speedbar-toggle-line-expansion)
(speedbar-parse-c-or-c++tag, speedbar-parse-tex-string)
(speedbar-buffer-revert-buffer, speedbar-highlight-one-tag-line):
* sort.el (sort-skip-fields):
* skeleton.el (skeleton-internal-list):
* simple.el (line-move-finish, line-move-to-column):
* shell.el (shell-forward-command):
* misc.el (copy-from-above-command):
* makesum.el (double-column):
* ebuff-menu.el (electric-buffer-update-highlight):
* dired.el (dired-move-to-end-of-filename):
* dframe.el (dframe-popup-kludge):
* bookmark.el (bookmark-kill-line, bookmark-bmenu-show-filenames):
* arc-mode.el (archive-get-lineno):
Use line-end-position and line-beginning-position.
* net/ange-ftp.el, progmodes/hideif.el, reposition.el:
Same, but only in comments.
40 files changed, 180 insertions, 175 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index aaab0c660c5..0c32061f41a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,55 @@ | |||
| 1 | 2010-11-06 Glenn Morris <rgm@gnu.org> | 1 | 2010-11-06 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * textmodes/texnfo-upd.el (texinfo-start-menu-description) | ||
| 4 | (texinfo-update-menu-region-beginning, texinfo-menu-first-node) | ||
| 5 | (texinfo-delete-existing-pointers, texinfo-find-pointer) | ||
| 6 | (texinfo-clean-up-node-line, texinfo-insert-node-lines) | ||
| 7 | (texinfo-multiple-files-update): | ||
| 8 | * textmodes/table.el (table--probe-cell-left-up) | ||
| 9 | (table--probe-cell-right-bottom): | ||
| 10 | * textmodes/picture.el (picture-tab-search): | ||
| 11 | * textmodes/page-ext.el (pages-copy-header-and-position) | ||
| 12 | (pages-directory-for-addresses): | ||
| 13 | * progmodes/vera-mode.el (vera-get-offset): | ||
| 14 | * progmodes/simula.el (simula-calculate-indent): | ||
| 15 | * progmodes/python.el (python-pdbtrack-overlay-arrow): | ||
| 16 | * progmodes/prolog.el (end-of-prolog-clause): | ||
| 17 | * progmodes/perl-mode.el (perl-calculate-indent, perl-indent-exp): | ||
| 18 | * progmodes/icon.el (indent-icon-exp): | ||
| 19 | * progmodes/etags.el (tag-re-match-p): | ||
| 20 | * progmodes/ebrowse.el (ebrowse-show-file-name-at-point): | ||
| 21 | * progmodes/ebnf2ps.el (ebnf-begin-file): | ||
| 22 | * progmodes/dcl-mode.el (dcl-back-to-indentation-1) | ||
| 23 | (dcl-save-local-variable): | ||
| 24 | * play/life.el (life-setup): | ||
| 25 | * play/gametree.el (gametree-looking-at-ply): | ||
| 26 | * nxml/nxml-maint.el (nxml-insert-target-repertoire-glyph-set): | ||
| 27 | * mail/sendmail.el (mail-mode-auto-fill): | ||
| 28 | * emacs-lisp/lisp-mode.el (calculate-lisp-indent): | ||
| 29 | * emacs-lisp/edebug.el (edebug-overlay-arrow): | ||
| 30 | * emacs-lisp/checkdoc.el (checkdoc-this-string-valid): | ||
| 31 | * woman.el (woman-parse-numeric-value, woman2-TH, woman2-SH) | ||
| 32 | (woman-tab-to-tab-stop, WoMan-warn-ignored): | ||
| 33 | * type-break.el (type-break-file-keystroke-count): | ||
| 34 | * term.el (term-replace-by-expanded-history-before-point) | ||
| 35 | (term-skip-prompt, term-extract-string): | ||
| 36 | * speedbar.el (speedbar-edit-line, speedbar-expand-line) | ||
| 37 | (speedbar-contract-line, speedbar-toggle-line-expansion) | ||
| 38 | (speedbar-parse-c-or-c++tag, speedbar-parse-tex-string) | ||
| 39 | (speedbar-buffer-revert-buffer, speedbar-highlight-one-tag-line): | ||
| 40 | * sort.el (sort-skip-fields): | ||
| 41 | * skeleton.el (skeleton-internal-list): | ||
| 42 | * simple.el (line-move-finish, line-move-to-column): | ||
| 43 | * shell.el (shell-forward-command): | ||
| 44 | * misc.el (copy-from-above-command): | ||
| 45 | * makesum.el (double-column): | ||
| 46 | * ebuff-menu.el (electric-buffer-update-highlight): | ||
| 47 | * dired.el (dired-move-to-end-of-filename): | ||
| 48 | * dframe.el (dframe-popup-kludge): | ||
| 49 | * bookmark.el (bookmark-kill-line, bookmark-bmenu-show-filenames): | ||
| 50 | * arc-mode.el (archive-get-lineno): | ||
| 51 | Use line-end-position and line-beginning-position. | ||
| 52 | |||
| 3 | * progmodes/idlwave.el (idlwave-routine-entry-compare-twins): | 53 | * progmodes/idlwave.el (idlwave-routine-entry-compare-twins): |
| 4 | (idlwave-study-twins): Prefix dynamic local `class'. | 54 | (idlwave-study-twins): Prefix dynamic local `class'. |
| 5 | (idlwave-routine-twin-compare): Update for above name change. | 55 | (idlwave-routine-twin-compare): Update for above name change. |
diff --git a/lisp/arc-mode.el b/lisp/arc-mode.el index 6dda7b2e40b..a86203a47db 100644 --- a/lisp/arc-mode.el +++ b/lisp/arc-mode.el | |||
| @@ -616,7 +616,7 @@ the mode is invalid. If ERROR is nil then nil will be returned." | |||
| 616 | (defun archive-get-lineno () | 616 | (defun archive-get-lineno () |
| 617 | (if (>= (point) archive-file-list-start) | 617 | (if (>= (point) archive-file-list-start) |
| 618 | (count-lines archive-file-list-start | 618 | (count-lines archive-file-list-start |
| 619 | (save-excursion (beginning-of-line) (point))) | 619 | (line-beginning-position)) |
| 620 | 0)) | 620 | 0)) |
| 621 | 621 | ||
| 622 | (defun archive-get-descr (&optional noerror) | 622 | (defun archive-get-descr (&optional noerror) |
| @@ -2213,5 +2213,4 @@ This doesn't recover lost files, it just undoes changes in the buffer itself." | |||
| 2213 | 2213 | ||
| 2214 | (provide 'arc-mode) | 2214 | (provide 'arc-mode) |
| 2215 | 2215 | ||
| 2216 | ;; arch-tag: e5966a01-35ec-4f27-8095-a043a79b457b | ||
| 2217 | ;;; arc-mode.el ends here | 2216 | ;;; arc-mode.el ends here |
diff --git a/lisp/bookmark.el b/lisp/bookmark.el index 0eec76f4da7..11883febb07 100644 --- a/lisp/bookmark.el +++ b/lisp/bookmark.el | |||
| @@ -1,7 +1,8 @@ | |||
| 1 | ;;; bookmark.el --- set bookmarks, maybe annotate them, jump to them later | 1 | ;;; bookmark.el --- set bookmarks, maybe annotate them, jump to them later |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1993, 1994, 1995, 1996, 1997, 2001, 2002, 2003, | 3 | ;; Copyright (C) 1993, 1994, 1995, 1996, 1997, 2001, 2002, 2003, 2004, |
| 4 | ;; 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | 4 | ;; 2005, 2006, 2007, 2008, 2009, 2010 |
| 5 | ;; Free Software Foundation, Inc. | ||
| 5 | 6 | ||
| 6 | ;; Author: Karl Fogel <kfogel@red-bean.com> | 7 | ;; Author: Karl Fogel <kfogel@red-bean.com> |
| 7 | ;; Maintainer: Karl Fogel <kfogel@red-bean.com> | 8 | ;; Maintainer: Karl Fogel <kfogel@red-bean.com> |
| @@ -816,7 +817,7 @@ the list of bookmarks.)" | |||
| 816 | "Kill from point to end of line. | 817 | "Kill from point to end of line. |
| 817 | If optional arg NEWLINE-TOO is non-nil, delete the newline too. | 818 | If optional arg NEWLINE-TOO is non-nil, delete the newline too. |
| 818 | Does not affect the kill ring." | 819 | Does not affect the kill ring." |
| 819 | (let ((eol (save-excursion (end-of-line) (point)))) | 820 | (let ((eol (line-end-position))) |
| 820 | (delete-region (point) eol) | 821 | (delete-region (point) eol) |
| 821 | (if (and newline-too (looking-at "\n")) | 822 | (if (and newline-too (looking-at "\n")) |
| 822 | (delete-char 1)))) | 823 | (delete-char 1)))) |
| @@ -1684,7 +1685,7 @@ mainly for debugging, and should not be necessary in normal use." | |||
| 1684 | (while (< (point) (point-max)) | 1685 | (while (< (point) (point-max)) |
| 1685 | (let ((bmrk (bookmark-bmenu-bookmark))) | 1686 | (let ((bmrk (bookmark-bmenu-bookmark))) |
| 1686 | (push bmrk bookmark-bmenu-hidden-bookmarks) | 1687 | (push bmrk bookmark-bmenu-hidden-bookmarks) |
| 1687 | (let ((start (save-excursion (end-of-line) (point)))) | 1688 | (let ((start (line-end-position))) |
| 1688 | (move-to-column bookmark-bmenu-file-column t) | 1689 | (move-to-column bookmark-bmenu-file-column t) |
| 1689 | ;; Strip off `mouse-face' from the white spaces region. | 1690 | ;; Strip off `mouse-face' from the white spaces region. |
| 1690 | (if (display-mouse-p) | 1691 | (if (display-mouse-p) |
| @@ -2225,5 +2226,4 @@ This also runs `bookmark-exit-hook'." | |||
| 2225 | 2226 | ||
| 2226 | (provide 'bookmark) | 2227 | (provide 'bookmark) |
| 2227 | 2228 | ||
| 2228 | ;; arch-tag: 139f519a-dd0c-4b8d-8b5d-f9fcf53ca8f6 | ||
| 2229 | ;;; bookmark.el ends here | 2229 | ;;; bookmark.el ends here |
diff --git a/lisp/dframe.el b/lisp/dframe.el index 2e550d8dd78..9ca0a260f6d 100644 --- a/lisp/dframe.el +++ b/lisp/dframe.el | |||
| @@ -1,7 +1,8 @@ | |||
| 1 | ;;; dframe --- dedicate frame support modes | 1 | ;;; dframe --- dedicate frame support modes |
| 2 | 2 | ||
| 3 | ;;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | 3 | ;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
| 4 | ;; 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | 4 | ;; 2005, 2006, 2007, 2008, 2009, 2010 |
| 5 | ;; Free Software Foundation, Inc. | ||
| 5 | 6 | ||
| 6 | ;; Author: Eric M. Ludlam <zappo@gnu.org> | 7 | ;; Author: Eric M. Ludlam <zappo@gnu.org> |
| 7 | ;; Keywords: file, tags, tools | 8 | ;; Keywords: file, tags, tools |
| @@ -784,8 +785,8 @@ Must be bound to EVENT." | |||
| 784 | (popup-mode-menu event) | 785 | (popup-mode-menu event) |
| 785 | (goto-char (event-closest-point event)) | 786 | (goto-char (event-closest-point event)) |
| 786 | (beginning-of-line) | 787 | (beginning-of-line) |
| 787 | (forward-char (min 5 (- (save-excursion (end-of-line) (point)) | 788 | (forward-char (min 5 (- (line-end-position) |
| 788 | (save-excursion (beginning-of-line) (point))))) | 789 | (line-beginning-position)))) |
| 789 | (popup-mode-menu)) | 790 | (popup-mode-menu)) |
| 790 | ;; Wait for menu to bail out. `popup-mode-menu' (and other popup | 791 | ;; Wait for menu to bail out. `popup-mode-menu' (and other popup |
| 791 | ;; menu functions) return immediately. | 792 | ;; menu functions) return immediately. |
| @@ -991,5 +992,4 @@ mode-line. This is only useful for non-XEmacs." | |||
| 991 | 992 | ||
| 992 | (provide 'dframe) | 993 | (provide 'dframe) |
| 993 | 994 | ||
| 994 | ;; arch-tag: df9b91b6-e85e-4a76-a02e-b3cb5b686bd4 | ||
| 995 | ;;; dframe.el ends here | 995 | ;;; dframe.el ends here |
diff --git a/lisp/dired.el b/lisp/dired.el index f840b60ab07..345956f029f 100644 --- a/lisp/dired.el +++ b/lisp/dired.el | |||
| @@ -2138,7 +2138,7 @@ Return the position of the beginning of the filename, or nil if none found." | |||
| 2138 | ;; case-fold-search is nil now, so we can test for capital F: | 2138 | ;; case-fold-search is nil now, so we can test for capital F: |
| 2139 | (setq used-F (string-match "F" dired-actual-switches) | 2139 | (setq used-F (string-match "F" dired-actual-switches) |
| 2140 | opoint (point) | 2140 | opoint (point) |
| 2141 | eol (save-excursion (end-of-line) (point)) | 2141 | eol (line-end-position) |
| 2142 | hidden (and selective-display | 2142 | hidden (and selective-display |
| 2143 | (save-excursion (search-forward "\r" eol t)))) | 2143 | (save-excursion (search-forward "\r" eol t)))) |
| 2144 | (if hidden | 2144 | (if hidden |
| @@ -4030,5 +4030,4 @@ For absolute symlinks, use \\[dired-do-symlink]. | |||
| 4030 | 4030 | ||
| 4031 | (run-hooks 'dired-load-hook) ; for your customizations | 4031 | (run-hooks 'dired-load-hook) ; for your customizations |
| 4032 | 4032 | ||
| 4033 | ;; arch-tag: e1af7a8f-691c-41a0-aac1-ddd4d3c87517 | ||
| 4034 | ;;; dired.el ends here | 4033 | ;;; dired.el ends here |
diff --git a/lisp/ebuff-menu.el b/lisp/ebuff-menu.el index 6e307d1ab86..6b462a22d1f 100644 --- a/lisp/ebuff-menu.el +++ b/lisp/ebuff-menu.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; ebuff-menu.el --- electric-buffer-list mode | 1 | ;;; ebuff-menu.el --- electric-buffer-list mode |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1985, 1986, 1994, 2001, 2002, 2003, 2004, | 3 | ;; Copyright (C) 1985, 1986, 1994, 2001, 2002, 2003, 2004, 2005, 2006, |
| 4 | ;; 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | 4 | ;; 2007, 2008, 2009, 2010 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Richard Mlynarik <mly@ai.mit.edu> | 6 | ;; Author: Richard Mlynarik <mly@ai.mit.edu> |
| 7 | ;; Maintainer: FSF | 7 | ;; Maintainer: FSF |
| @@ -282,11 +282,10 @@ Return to Electric Buffer Menu when done." | |||
| 282 | (make-local-variable 'electric-buffer-overlay) | 282 | (make-local-variable 'electric-buffer-overlay) |
| 283 | (setq electric-buffer-overlay (make-overlay (point) (point))))) | 283 | (setq electric-buffer-overlay (make-overlay (point) (point))))) |
| 284 | (move-overlay electric-buffer-overlay | 284 | (move-overlay electric-buffer-overlay |
| 285 | (save-excursion (beginning-of-line) (point)) | 285 | (line-beginning-position) |
| 286 | (save-excursion (end-of-line) (point))) | 286 | (line-end-position)) |
| 287 | (overlay-put electric-buffer-overlay 'face 'highlight))) | 287 | (overlay-put electric-buffer-overlay 'face 'highlight))) |
| 288 | 288 | ||
| 289 | (provide 'ebuff-menu) | 289 | (provide 'ebuff-menu) |
| 290 | 290 | ||
| 291 | ;; arch-tag: 1d4509b3-eece-4d4f-95ea-77c83eaf0275 | ||
| 292 | ;;; ebuff-menu.el ends here | 291 | ;;; ebuff-menu.el ends here |
diff --git a/lisp/emacs-lisp/checkdoc.el b/lisp/emacs-lisp/checkdoc.el index 5e4b0dc96c6..ac8e8943a24 100644 --- a/lisp/emacs-lisp/checkdoc.el +++ b/lisp/emacs-lisp/checkdoc.el | |||
| @@ -1366,7 +1366,7 @@ See the style guide in the Emacs Lisp manual for more details." | |||
| 1366 | (setq checkdoc-autofix-flag 'never)))) | 1366 | (setq checkdoc-autofix-flag 'never)))) |
| 1367 | (checkdoc-create-error | 1367 | (checkdoc-create-error |
| 1368 | "You should convert this comment to documentation" | 1368 | "You should convert this comment to documentation" |
| 1369 | (point) (save-excursion (end-of-line) (point)))) | 1369 | (point) (line-end-position))) |
| 1370 | (checkdoc-create-error | 1370 | (checkdoc-create-error |
| 1371 | (if (nth 2 fp) | 1371 | (if (nth 2 fp) |
| 1372 | "All interactive functions should have documentation" | 1372 | "All interactive functions should have documentation" |
diff --git a/lisp/emacs-lisp/edebug.el b/lisp/emacs-lisp/edebug.el index 145498b9059..77953b37021 100644 --- a/lisp/emacs-lisp/edebug.el +++ b/lisp/emacs-lisp/edebug.el | |||
| @@ -1,8 +1,8 @@ | |||
| 1 | ;;; edebug.el --- a source-level debugger for Emacs Lisp | 1 | ;;; edebug.el --- a source-level debugger for Emacs Lisp |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1997, 1999, | 3 | ;; Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1997, |
| 4 | ;; 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 | 4 | ;; 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, |
| 5 | ;; Free Software Foundation, Inc. | 5 | ;; 2010 Free Software Foundation, Inc. |
| 6 | 6 | ||
| 7 | ;; Author: Daniel LaLiberte <liberte@holonexus.org> | 7 | ;; Author: Daniel LaLiberte <liberte@holonexus.org> |
| 8 | ;; Maintainer: FSF | 8 | ;; Maintainer: FSF |
| @@ -2991,7 +2991,7 @@ MSG is printed after `::::} '." | |||
| 2991 | ;; Set up the overlay arrow at beginning-of-line in current buffer. | 2991 | ;; Set up the overlay arrow at beginning-of-line in current buffer. |
| 2992 | ;; The arrow string is derived from edebug-arrow-alist and | 2992 | ;; The arrow string is derived from edebug-arrow-alist and |
| 2993 | ;; edebug-execution-mode. | 2993 | ;; edebug-execution-mode. |
| 2994 | (let ((pos (save-excursion (beginning-of-line) (point)))) | 2994 | (let ((pos (line-beginning-position))) |
| 2995 | (setq overlay-arrow-string | 2995 | (setq overlay-arrow-string |
| 2996 | (cdr (assq edebug-execution-mode edebug-arrow-alist))) | 2996 | (cdr (assq edebug-execution-mode edebug-arrow-alist))) |
| 2997 | (setq overlay-arrow-position (make-marker)) | 2997 | (setq overlay-arrow-position (make-marker)) |
| @@ -4454,5 +4454,4 @@ With prefix argument, make it a temporary breakpoint." | |||
| 4454 | 4454 | ||
| 4455 | (provide 'edebug) | 4455 | (provide 'edebug) |
| 4456 | 4456 | ||
| 4457 | ;; arch-tag: 19c8d05c-4554-426e-ac72-e0fa1fcb0808 | ||
| 4458 | ;;; edebug.el ends here | 4457 | ;;; edebug.el ends here |
diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el index ef639d6ec37..5f17514763d 100644 --- a/lisp/emacs-lisp/lisp-mode.el +++ b/lisp/emacs-lisp/lisp-mode.el | |||
| @@ -1067,7 +1067,7 @@ is the buffer position of the start of the containing expression." | |||
| 1067 | (goto-char calculate-lisp-indent-last-sexp) | 1067 | (goto-char calculate-lisp-indent-last-sexp) |
| 1068 | (or (and (looking-at ":") | 1068 | (or (and (looking-at ":") |
| 1069 | (setq indent (current-column))) | 1069 | (setq indent (current-column))) |
| 1070 | (and (< (save-excursion (beginning-of-line) (point)) | 1070 | (and (< (line-beginning-position) |
| 1071 | (prog2 (backward-sexp) (point))) | 1071 | (prog2 (backward-sexp) (point))) |
| 1072 | (looking-at ":") | 1072 | (looking-at ":") |
| 1073 | (setq indent (current-column)))) | 1073 | (setq indent (current-column)))) |
| @@ -1429,5 +1429,4 @@ means don't indent that line." | |||
| 1429 | 1429 | ||
| 1430 | (provide 'lisp-mode) | 1430 | (provide 'lisp-mode) |
| 1431 | 1431 | ||
| 1432 | ;; arch-tag: 414c7f93-c245-4b77-8ed5-ed05ef7ff1bf | ||
| 1433 | ;;; lisp-mode.el ends here | 1432 | ;;; lisp-mode.el ends here |
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index 081e743dcd8..0f4768b0b6a 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el | |||
| @@ -718,7 +718,7 @@ Leave point at the start of the delimiter line." | |||
| 718 | "Carry out Auto Fill for Mail mode. | 718 | "Carry out Auto Fill for Mail mode. |
| 719 | If within the headers, this makes the new lines into continuation lines." | 719 | If within the headers, this makes the new lines into continuation lines." |
| 720 | (if (< (point) (mail-header-end)) | 720 | (if (< (point) (mail-header-end)) |
| 721 | (let ((old-line-start (save-excursion (beginning-of-line) (point)))) | 721 | (let ((old-line-start (line-beginning-position))) |
| 722 | (if (do-auto-fill) | 722 | (if (do-auto-fill) |
| 723 | (save-excursion | 723 | (save-excursion |
| 724 | (beginning-of-line) | 724 | (beginning-of-line) |
| @@ -1955,5 +1955,4 @@ you can move to one of them and type C-c C-c to recover that one." | |||
| 1955 | 1955 | ||
| 1956 | (provide 'sendmail) | 1956 | (provide 'sendmail) |
| 1957 | 1957 | ||
| 1958 | ;; arch-tag: 48bc1025-d993-4d31-8d81-2a29491f0626 | ||
| 1959 | ;;; sendmail.el ends here | 1958 | ;;; sendmail.el ends here |
diff --git a/lisp/makesum.el b/lisp/makesum.el index c77a248eb45..4b5cd036f94 100644 --- a/lisp/makesum.el +++ b/lisp/makesum.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; makesum.el --- generate key binding summary for Emacs | 1 | ;;; makesum.el --- generate key binding summary for Emacs |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1985, 2001, 2002, 2003, 2004, 2005, | 3 | ;; Copyright (C) 1985, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, |
| 4 | ;; 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | 4 | ;; 2009, 2010 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Maintainer: FSF | 6 | ;; Maintainer: FSF |
| 7 | ;; Keywords: help | 7 | ;; Keywords: help |
| @@ -98,7 +98,7 @@ Previous contents of that buffer are killed first." | |||
| 98 | (forward-line half) | 98 | (forward-line half) |
| 99 | (while (< half nlines) | 99 | (while (< half nlines) |
| 100 | (setq half (1+ half)) | 100 | (setq half (1+ half)) |
| 101 | (setq line (buffer-substring (point) (save-excursion (end-of-line) (point)))) | 101 | (setq line (buffer-substring (point) (line-end-position))) |
| 102 | (setq lines (cons line lines)) | 102 | (setq lines (cons line lines)) |
| 103 | (delete-region (point) (progn (forward-line 1) (point))))) | 103 | (delete-region (point) (progn (forward-line 1) (point))))) |
| 104 | (setq lines (nreverse lines)) | 104 | (setq lines (nreverse lines)) |
| @@ -112,5 +112,4 @@ Previous contents of that buffer are killed first." | |||
| 112 | 112 | ||
| 113 | (provide 'makesum) | 113 | (provide 'makesum) |
| 114 | 114 | ||
| 115 | ;; arch-tag: c2383336-fc89-46ad-8110-ded42bffaee3 | ||
| 116 | ;;; makesum.el ends here | 115 | ;;; makesum.el ends here |
diff --git a/lisp/misc.el b/lisp/misc.el index 6f32a3eb90f..55b685fe2b7 100644 --- a/lisp/misc.el +++ b/lisp/misc.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; misc.el --- some nonstandard basic editing commands for Emacs | 1 | ;;; misc.el --- some nonstandard basic editing commands for Emacs |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1989, 2001, 2002, 2003, 2004, 2005, | 3 | ;; Copyright (C) 1989, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, |
| 4 | ;; 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | 4 | ;; 2009, 2010 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Maintainer: FSF | 6 | ;; Maintainer: FSF |
| 7 | ;; Keywords: convenience | 7 | ;; Keywords: convenience |
| @@ -54,7 +54,7 @@ The characters copied are inserted in the buffer before point." | |||
| 54 | (setq string (concat string | 54 | (setq string (concat string |
| 55 | (buffer-substring | 55 | (buffer-substring |
| 56 | (point) | 56 | (point) |
| 57 | (min (save-excursion (end-of-line) (point)) | 57 | (min (line-end-position) |
| 58 | (+ n (point))))))) | 58 | (+ n (point))))))) |
| 59 | (insert string))) | 59 | (insert string))) |
| 60 | 60 | ||
| @@ -132,5 +132,4 @@ variation of `C-x M-c M-butterfly' from url `http://xkcd.com/378/'." | |||
| 132 | 132 | ||
| 133 | (provide 'misc) | 133 | (provide 'misc) |
| 134 | 134 | ||
| 135 | ;; arch-tag: 908f7884-c19e-4388-920c-9cfa425e449b | ||
| 136 | ;;; misc.el ends here | 135 | ;;; misc.el ends here |
diff --git a/lisp/net/ange-ftp.el b/lisp/net/ange-ftp.el index 4b63dfd7535..07091663471 100644 --- a/lisp/net/ange-ftp.el +++ b/lisp/net/ange-ftp.el | |||
| @@ -4901,7 +4901,7 @@ NEWNAME should be the name to give the new compressed or uncompressed file.") | |||
| 4901 | ;; ;; This is the Unix dl version. | 4901 | ;; ;; This is the Unix dl version. |
| 4902 | ;; (let ((opoint (point)) | 4902 | ;; (let ((opoint (point)) |
| 4903 | ;; case-fold-search hidden) | 4903 | ;; case-fold-search hidden) |
| 4904 | ;; (or eol (setq eol (save-excursion (end-of-line) (point)))) | 4904 | ;; (or eol (setq eol (line-end-position))) |
| 4905 | ;; (setq hidden (and selective-display | 4905 | ;; (setq hidden (and selective-display |
| 4906 | ;; (save-excursion | 4906 | ;; (save-excursion |
| 4907 | ;; (search-forward "\r" eol t)))) | 4907 | ;; (search-forward "\r" eol t)))) |
| @@ -5300,7 +5300,7 @@ Other orders of $ and _ seem to all work just fine.") | |||
| 5300 | ;; ;; This is the VMS version. | 5300 | ;; ;; This is the VMS version. |
| 5301 | ;; (let (opoint hidden case-fold-search) | 5301 | ;; (let (opoint hidden case-fold-search) |
| 5302 | ;; (setq opoint (point)) | 5302 | ;; (setq opoint (point)) |
| 5303 | ;; (or eol (setq eol (save-excursion (end-of-line) (point)))) | 5303 | ;; (or eol (setq eol (line-end-position))) |
| 5304 | ;; (setq hidden (and selective-display | 5304 | ;; (setq hidden (and selective-display |
| 5305 | ;; (save-excursion (search-forward "\r" eol t)))) | 5305 | ;; (save-excursion (search-forward "\r" eol t)))) |
| 5306 | ;; (if hidden | 5306 | ;; (if hidden |
| @@ -5658,7 +5658,7 @@ Other orders of $ and _ seem to all work just fine.") | |||
| 5658 | ;; ;; This is the MTS version. | 5658 | ;; ;; This is the MTS version. |
| 5659 | ;; (let (opoint hidden case-fold-search) | 5659 | ;; (let (opoint hidden case-fold-search) |
| 5660 | ;; (setq opoint (point) | 5660 | ;; (setq opoint (point) |
| 5661 | ;; eol (save-excursion (end-of-line) (point)) | 5661 | ;; eol (line-end-position) |
| 5662 | ;; hidden (and selective-display | 5662 | ;; hidden (and selective-display |
| 5663 | ;; (save-excursion (search-forward "\r" eol t)))) | 5663 | ;; (save-excursion (search-forward "\r" eol t)))) |
| 5664 | ;; (if hidden | 5664 | ;; (if hidden |
| @@ -5879,7 +5879,7 @@ Other orders of $ and _ seem to all work just fine.") | |||
| 5879 | ;; ;; This is the CMS version. | 5879 | ;; ;; This is the CMS version. |
| 5880 | ;; (let ((opoint (point)) | 5880 | ;; (let ((opoint (point)) |
| 5881 | ;; case-fold-search hidden) | 5881 | ;; case-fold-search hidden) |
| 5882 | ;; (or eol (setq eol (save-excursion (end-of-line) (point)))) | 5882 | ;; (or eol (setq eol (line-end-position))) |
| 5883 | ;; (setq hidden (and selective-display | 5883 | ;; (setq hidden (and selective-display |
| 5884 | ;; (save-excursion | 5884 | ;; (save-excursion |
| 5885 | ;; (search-forward "\r" eol t)))) | 5885 | ;; (search-forward "\r" eol t)))) |
| @@ -6153,5 +6153,4 @@ be recognized automatically (they are all valid BS2000 hosts too)." | |||
| 6153 | 6153 | ||
| 6154 | (provide 'ange-ftp) | 6154 | (provide 'ange-ftp) |
| 6155 | 6155 | ||
| 6156 | ;; arch-tag: 2987ef88-cb56-4ec1-87a9-79132572e316 | ||
| 6157 | ;;; ange-ftp.el ends here | 6156 | ;;; ange-ftp.el ends here |
diff --git a/lisp/nxml/nxml-maint.el b/lisp/nxml/nxml-maint.el index 5062da5cff9..a10ad2b21ac 100644 --- a/lisp/nxml/nxml-maint.el +++ b/lisp/nxml/nxml-maint.el | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | ;;; nxml-maint.el --- commands for maintainers of nxml-*.el | 1 | ;;; nxml-maint.el --- commands for maintainers of nxml-*.el |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2003, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007, 2008, 2009, 2010 |
| 4 | ;; Free Software Foundation, Inc. | ||
| 4 | 5 | ||
| 5 | ;; Author: James Clark | 6 | ;; Author: James Clark |
| 6 | ;; Keywords: XML | 7 | ;; Keywords: XML |
| @@ -78,7 +79,7 @@ | |||
| 78 | (goto-char (point-min)) | 79 | (goto-char (point-min)) |
| 79 | (while (re-search-forward "^ *\\([a-FA-F0-9]\\{2\\}\\)[ \t]+" nil t) | 80 | (while (re-search-forward "^ *\\([a-FA-F0-9]\\{2\\}\\)[ \t]+" nil t) |
| 80 | (let ((row (match-string 1)) | 81 | (let ((row (match-string 1)) |
| 81 | (eol (save-excursion (end-of-line) (point)))) | 82 | (eol (line-end-position))) |
| 82 | (while (re-search-forward "\\([a-FA-F0-9]\\{2\\}\\)-\\([a-FA-F0-9]\\{2\\}\\)\\|\\([a-FA-F0-9]\\{2\\}\\)" eol t) | 83 | (while (re-search-forward "\\([a-FA-F0-9]\\{2\\}\\)-\\([a-FA-F0-9]\\{2\\}\\)\\|\\([a-FA-F0-9]\\{2\\}\\)" eol t) |
| 83 | (setq lst | 84 | (setq lst |
| 84 | (cons (if (match-beginning 3) | 85 | (cons (if (match-beginning 3) |
| @@ -102,5 +103,4 @@ | |||
| 102 | 103 | ||
| 103 | (provide 'nxml-maint) | 104 | (provide 'nxml-maint) |
| 104 | 105 | ||
| 105 | ;; arch-tag: 2cff6b55-12af-47db-90da-a91f782f435a | ||
| 106 | ;;; nxml-maint.el ends here | 106 | ;;; nxml-maint.el ends here |
diff --git a/lisp/play/gametree.el b/lisp/play/gametree.el index 6fcc3136d07..215d95db341 100644 --- a/lisp/play/gametree.el +++ b/lisp/play/gametree.el | |||
| @@ -201,7 +201,7 @@ should be no leading white space." | |||
| 201 | (let ((boundary (concat "[ \t]*\\([1-9][0-9]*\\)\\(" | 201 | (let ((boundary (concat "[ \t]*\\([1-9][0-9]*\\)\\(" |
| 202 | gametree-full-ply-regexp "\\|" | 202 | gametree-full-ply-regexp "\\|" |
| 203 | gametree-half-ply-regexp "\\)")) | 203 | gametree-half-ply-regexp "\\)")) |
| 204 | (limit (save-excursion (beginning-of-line 1) (point)))) | 204 | (limit (line-beginning-position 1))) |
| 205 | (if (looking-at boundary) | 205 | (if (looking-at boundary) |
| 206 | (+ (* 2 (string-to-number (match-string 1))) | 206 | (+ (* 2 (string-to-number (match-string 1))) |
| 207 | (if (string-match gametree-half-ply-regexp (match-string 2)) 1 0)) | 207 | (if (string-match gametree-half-ply-regexp (match-string 2)) 1 0)) |
| @@ -617,5 +617,4 @@ shogi, etc.) players, it is a slightly modified version of Outline mode. | |||
| 617 | 617 | ||
| 618 | (provide 'gametree) | 618 | (provide 'gametree) |
| 619 | 619 | ||
| 620 | ;; arch-tag: aaa30943-9ae4-4cc1-813d-a46f96b7e4f1 | ||
| 621 | ;;; gametree.el ends here | 620 | ;;; gametree.el ends here |
diff --git a/lisp/play/life.el b/lisp/play/life.el index f4a6ee1836e..996b0c6144b 100644 --- a/lisp/play/life.el +++ b/lisp/play/life.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; life.el --- John Horton Conway's `Life' game for GNU Emacs | 1 | ;;; life.el --- John Horton Conway's `Life' game for GNU Emacs |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1988, 2001, 2002, 2003, 2004, | 3 | ;; Copyright (C) 1988, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, |
| 4 | ;; 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | 4 | ;; 2009, 2010 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Kyle Jones <kyleuunet.uu.net> | 6 | ;; Author: Kyle Jones <kyleuunet.uu.net> |
| 7 | ;; Maintainer: FSF | 7 | ;; Maintainer: FSF |
| @@ -163,7 +163,7 @@ generations (this defaults to 1)." | |||
| 163 | (replace-match (life-life-string) t t)) | 163 | (replace-match (life-life-string) t t)) |
| 164 | ;; center the pattern horizontally | 164 | ;; center the pattern horizontally |
| 165 | (goto-char (point-min)) | 165 | (goto-char (point-min)) |
| 166 | (setq n (/ (- fill-column (save-excursion (end-of-line) (point))) 2)) | 166 | (setq n (/ (- fill-column (line-end-position)) 2)) |
| 167 | (while (not (eobp)) | 167 | (while (not (eobp)) |
| 168 | (indent-to n) | 168 | (indent-to n) |
| 169 | (forward-line)) | 169 | (forward-line)) |
| @@ -302,5 +302,4 @@ generations (this defaults to 1)." | |||
| 302 | 302 | ||
| 303 | (provide 'life) | 303 | (provide 'life) |
| 304 | 304 | ||
| 305 | ;; arch-tag: e9373544-755e-42f5-a9a1-4d4c422bb97a | ||
| 306 | ;;; life.el ends here | 305 | ;;; life.el ends here |
diff --git a/lisp/progmodes/dcl-mode.el b/lisp/progmodes/dcl-mode.el index bf12d772ddc..dd7aa0eddfb 100644 --- a/lisp/progmodes/dcl-mode.el +++ b/lisp/progmodes/dcl-mode.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; dcl-mode.el --- major mode for editing DCL command files | 1 | ;;; dcl-mode.el --- major mode for editing DCL command files |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1997, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 | 3 | ;; Copyright (C) 1997, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, |
| 4 | ;; Free Software Foundation, Inc. | 4 | ;; 2009, 2010 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Odd Gripenstam <gripenstamol@decus.se> | 6 | ;; Author: Odd Gripenstam <gripenstamol@decus.se> |
| 7 | ;; Maintainer: Odd Gripenstam <gripenstamol@decus.se> | 7 | ;; Maintainer: Odd Gripenstam <gripenstamol@decus.se> |
| @@ -821,7 +821,7 @@ by the numbers in order 1-2-3-1-... : | |||
| 821 | ;; text | 821 | ;; text |
| 822 | ;; 1 | 822 | ;; 1 |
| 823 | 823 | ||
| 824 | (let* ((default-limit (save-excursion (end-of-line) (1+ (point)))) | 824 | (let* ((default-limit (1+ (line-end-position))) |
| 825 | (limit (or limit default-limit)) | 825 | (limit (or limit default-limit)) |
| 826 | (last-good-point (point)) | 826 | (last-good-point (point)) |
| 827 | (opoint (point))) | 827 | (opoint (point))) |
| @@ -1783,7 +1783,7 @@ Set or update the value of VAR in the current buffers | |||
| 1783 | (skip-chars-forward " \t") | 1783 | (skip-chars-forward " \t") |
| 1784 | (or (eolp) | 1784 | (or (eolp) |
| 1785 | (setq suffix-string (buffer-substring (point) | 1785 | (setq suffix-string (buffer-substring (point) |
| 1786 | (progn (end-of-line) (point))))) | 1786 | (line-end-position)))) |
| 1787 | (goto-char (match-beginning 0)) | 1787 | (goto-char (match-beginning 0)) |
| 1788 | (or (bolp) | 1788 | (or (bolp) |
| 1789 | (setq prefix-string | 1789 | (setq prefix-string |
| @@ -2214,5 +2214,4 @@ otherwise return nil." | |||
| 2214 | 2214 | ||
| 2215 | (run-hooks 'dcl-mode-load-hook) ; for your customizations | 2215 | (run-hooks 'dcl-mode-load-hook) ; for your customizations |
| 2216 | 2216 | ||
| 2217 | ;; arch-tag: e00d421b-f26c-483e-a8bd-af412ea7764a | ||
| 2218 | ;;; dcl-mode.el ends here | 2217 | ;;; dcl-mode.el ends here |
diff --git a/lisp/progmodes/ebnf2ps.el b/lisp/progmodes/ebnf2ps.el index 201a091cc26..a4d1fe85c30 100644 --- a/lisp/progmodes/ebnf2ps.el +++ b/lisp/progmodes/ebnf2ps.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; ebnf2ps.el --- translate an EBNF to a syntactic chart on PostScript | 1 | ;;; ebnf2ps.el --- translate an EBNF to a syntactic chart on PostScript |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 | 3 | ;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, |
| 4 | ;; Free Software Foundation, Inc. | 4 | ;; 2008, 2009, 2010 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Vinicius Jose Latorre <viniciusjl@ig.com.br> | 6 | ;; Author: Vinicius Jose Latorre <viniciusjl@ig.com.br> |
| 7 | ;; Maintainer: Vinicius Jose Latorre <viniciusjl@ig.com.br> | 7 | ;; Maintainer: Vinicius Jose Latorre <viniciusjl@ig.com.br> |
| @@ -5279,7 +5279,7 @@ killed after process termination." | |||
| 5279 | (goto-char (point-min)) | 5279 | (goto-char (point-min)) |
| 5280 | (and (search-forward "%%Creator: " nil t) | 5280 | (and (search-forward "%%Creator: " nil t) |
| 5281 | (not (search-forward "& ebnf2ps v" | 5281 | (not (search-forward "& ebnf2ps v" |
| 5282 | (save-excursion (end-of-line) (point)) | 5282 | (line-end-position) |
| 5283 | t)) | 5283 | t)) |
| 5284 | (progn | 5284 | (progn |
| 5285 | ;; adjust creator comment | 5285 | ;; adjust creator comment |
| @@ -6395,5 +6395,4 @@ killed after process termination." | |||
| 6395 | 6395 | ||
| 6396 | (provide 'ebnf2ps) | 6396 | (provide 'ebnf2ps) |
| 6397 | 6397 | ||
| 6398 | ;; arch-tag: 148bc8af-5398-468b-b922-eeb7afef3e4f | ||
| 6399 | ;;; ebnf2ps.el ends here | 6398 | ;;; ebnf2ps.el ends here |
diff --git a/lisp/progmodes/ebrowse.el b/lisp/progmodes/ebrowse.el index e32c453b91f..7101bf21ade 100644 --- a/lisp/progmodes/ebrowse.el +++ b/lisp/progmodes/ebrowse.el | |||
| @@ -1,8 +1,8 @@ | |||
| 1 | ;;; ebrowse.el --- Emacs C++ class browser & tags facility | 1 | ;;; ebrowse.el --- Emacs C++ class browser & tags facility |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, | 3 | ;; Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, |
| 4 | ;; 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 | 4 | ;; 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 |
| 5 | ;; Free Software Foundation Inc. | 5 | ;; Free Software Foundation Inc. |
| 6 | 6 | ||
| 7 | ;; Author: Gerd Moellmann <gerd@gnu.org> | 7 | ;; Author: Gerd Moellmann <gerd@gnu.org> |
| 8 | ;; Maintainer: FSF | 8 | ;; Maintainer: FSF |
| @@ -1313,7 +1313,7 @@ With PREFIX, insert that many filenames." | |||
| 1313 | (skip-chars-forward " \t*a-zA-Z0-9_") | 1313 | (skip-chars-forward " \t*a-zA-Z0-9_") |
| 1314 | (setq start (point) | 1314 | (setq start (point) |
| 1315 | file-name-existing (looking-at "(")) | 1315 | file-name-existing (looking-at "(")) |
| 1316 | (delete-region start (save-excursion (end-of-line) (point))) | 1316 | (delete-region start (line-end-position)) |
| 1317 | (unless file-name-existing | 1317 | (unless file-name-existing |
| 1318 | (indent-to ebrowse-source-file-column) | 1318 | (indent-to ebrowse-source-file-column) |
| 1319 | (insert "(" (or (ebrowse-cs-file | 1319 | (insert "(" (or (ebrowse-cs-file |
| @@ -4491,5 +4491,4 @@ EVENT is the mouse event." | |||
| 4491 | ;; eval:(put 'ebrowse-for-all-trees 'lisp-indent-hook 1) | 4491 | ;; eval:(put 'ebrowse-for-all-trees 'lisp-indent-hook 1) |
| 4492 | ;; End: | 4492 | ;; End: |
| 4493 | 4493 | ||
| 4494 | ;; arch-tag: 4fa3c8bf-1771-479b-bcd7-b029c7c9677b | ||
| 4495 | ;;; ebrowse.el ends here | 4494 | ;;; ebrowse.el ends here |
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el index 042cc8c33f6..96f36340fd9 100644 --- a/lisp/progmodes/etags.el +++ b/lisp/progmodes/etags.el | |||
| @@ -1,8 +1,8 @@ | |||
| 1 | ;;; etags.el --- etags facility for Emacs | 1 | ;;; etags.el --- etags facility for Emacs |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1985, 1986, 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1998, | 3 | ;; Copyright (C) 1985, 1986, 1988, 1989, 1992, 1993, 1994, 1995, 1996, |
| 4 | ;; 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 | 4 | ;; 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, |
| 5 | ;; Free Software Foundation, Inc. | 5 | ;; 2010 Free Software Foundation, Inc. |
| 6 | 6 | ||
| 7 | ;; Author: Roland McGrath <roland@gnu.org> | 7 | ;; Author: Roland McGrath <roland@gnu.org> |
| 8 | ;; Maintainer: FSF | 8 | ;; Maintainer: FSF |
| @@ -1681,7 +1681,7 @@ Point should be just after a string that matches TAG." | |||
| 1681 | (save-excursion | 1681 | (save-excursion |
| 1682 | (beginning-of-line) | 1682 | (beginning-of-line) |
| 1683 | (let ((bol (point))) | 1683 | (let ((bol (point))) |
| 1684 | (and (search-forward "\177" (save-excursion (end-of-line) (point)) t) | 1684 | (and (search-forward "\177" (line-end-position) t) |
| 1685 | (re-search-backward re bol t))))) | 1685 | (re-search-backward re bol t))))) |
| 1686 | 1686 | ||
| 1687 | (defcustom tags-loop-revert-buffers nil | 1687 | (defcustom tags-loop-revert-buffers nil |
| @@ -2086,5 +2086,4 @@ for \\[find-tag] (which see)." | |||
| 2086 | 2086 | ||
| 2087 | (provide 'etags) | 2087 | (provide 'etags) |
| 2088 | 2088 | ||
| 2089 | ;; arch-tag: b897c2b5-08f3-4837-b2d3-0e7d6db1b63e | ||
| 2090 | ;;; etags.el ends here | 2089 | ;;; etags.el ends here |
diff --git a/lisp/progmodes/hideif.el b/lisp/progmodes/hideif.el index 04ec915f3d3..b21cd9c89ef 100644 --- a/lisp/progmodes/hideif.el +++ b/lisp/progmodes/hideif.el | |||
| @@ -760,7 +760,7 @@ Point is left unchanged." | |||
| 760 | (cond ((hif-looking-at-else) | 760 | (cond ((hif-looking-at-else) |
| 761 | (setq else (point))) | 761 | (setq else (point))) |
| 762 | (t | 762 | (t |
| 763 | (setq end (point)))) ; (save-excursion (end-of-line) (point)) | 763 | (setq end (point)))) ; (line-end-position) |
| 764 | ;; If found #else, look for #endif. | 764 | ;; If found #else, look for #endif. |
| 765 | (when else | 765 | (when else |
| 766 | (while (progn | 766 | (while (progn |
| @@ -769,7 +769,7 @@ Point is left unchanged." | |||
| 769 | (hif-ifdef-to-endif)) | 769 | (hif-ifdef-to-endif)) |
| 770 | (if (hif-looking-at-else) | 770 | (if (hif-looking-at-else) |
| 771 | (error "Found two elses in a row? Broken!")) | 771 | (error "Found two elses in a row? Broken!")) |
| 772 | (setq end (point))) ; (save-excursion (end-of-line) (point)) | 772 | (setq end (point))) ; (line-end-position) |
| 773 | (hif-make-range start end else)))) | 773 | (hif-make-range start end else)))) |
| 774 | 774 | ||
| 775 | 775 | ||
| @@ -1025,5 +1025,4 @@ Return as (TOP . BOTTOM) the extent of ifdef block." | |||
| 1025 | 1025 | ||
| 1026 | (provide 'hideif) | 1026 | (provide 'hideif) |
| 1027 | 1027 | ||
| 1028 | ;; arch-tag: c6381d17-a59a-483a-b945-658f22277981 | ||
| 1029 | ;;; hideif.el ends here | 1028 | ;;; hideif.el ends here |
diff --git a/lisp/progmodes/icon.el b/lisp/progmodes/icon.el index 9182b319b57..f0287c90188 100644 --- a/lisp/progmodes/icon.el +++ b/lisp/progmodes/icon.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; icon.el --- mode for editing Icon code | 1 | ;;; icon.el --- mode for editing Icon code |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1989, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 | 3 | ;; Copyright (C) 1989, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, |
| 4 | ;; Free Software Foundation, Inc. | 4 | ;; 2009, 2010 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Chris Smith <csmith@convex.com> | 6 | ;; Author: Chris Smith <csmith@convex.com> |
| 7 | ;; Created: 15 Feb 89 | 7 | ;; Created: 15 Feb 89 |
| @@ -601,7 +601,7 @@ Returns nil if line starts inside a string, t if in a comment." | |||
| 601 | (indent-to this-indent))) | 601 | (indent-to this-indent))) |
| 602 | ;; Indent any comment following the text. | 602 | ;; Indent any comment following the text. |
| 603 | (or (looking-at comment-start-skip) | 603 | (or (looking-at comment-start-skip) |
| 604 | (if (re-search-forward comment-start-skip (save-excursion (end-of-line) (point)) t) | 604 | (if (re-search-forward comment-start-skip (line-end-position) t) |
| 605 | (progn (indent-for-comment) (beginning-of-line)))))))))) | 605 | (progn (indent-for-comment) (beginning-of-line)))))))))) |
| 606 | 606 | ||
| 607 | (defconst icon-font-lock-keywords-1 | 607 | (defconst icon-font-lock-keywords-1 |
| @@ -687,5 +687,4 @@ Returns nil if line starts inside a string, t if in a comment." | |||
| 687 | 687 | ||
| 688 | (provide 'icon) | 688 | (provide 'icon) |
| 689 | 689 | ||
| 690 | ;; arch-tag: 8abf8c99-e7df-44af-a58f-ef5ed2ee52cb | ||
| 691 | ;;; icon.el ends here | 690 | ;;; icon.el ends here |
diff --git a/lisp/progmodes/perl-mode.el b/lisp/progmodes/perl-mode.el index 1bc9a397bc7..97de1b35621 100644 --- a/lisp/progmodes/perl-mode.el +++ b/lisp/progmodes/perl-mode.el | |||
| @@ -920,9 +920,7 @@ Optional argument PARSE-START should be the position of `beginning-of-defun'." | |||
| 920 | (cond ((looking-at ";?#") | 920 | (cond ((looking-at ";?#") |
| 921 | (forward-line 1) t) | 921 | (forward-line 1) t) |
| 922 | ((looking-at "\\(\\w\\|\\s_\\)+:[^:]") | 922 | ((looking-at "\\(\\w\\|\\s_\\)+:[^:]") |
| 923 | (save-excursion | 923 | (setq colon-line-end (line-end-position)) |
| 924 | (end-of-line) | ||
| 925 | (setq colon-line-end (point))) | ||
| 926 | (search-forward ":"))))) | 924 | (search-forward ":"))))) |
| 927 | ;; The first following code counts | 925 | ;; The first following code counts |
| 928 | ;; if it is before the line we want to indent. | 926 | ;; if it is before the line we want to indent. |
| @@ -982,7 +980,7 @@ Optional argument PARSE-START should be the position of `beginning-of-defun'." | |||
| 982 | (if (= (char-after (marker-position bof-mark)) ?=) | 980 | (if (= (char-after (marker-position bof-mark)) ?=) |
| 983 | (message "Can't indent a format statement") | 981 | (message "Can't indent a format statement") |
| 984 | (message "Indenting Perl expression...") | 982 | (message "Indenting Perl expression...") |
| 985 | (save-excursion (end-of-line) (setq eol (point))) | 983 | (setq eol (line-end-position)) |
| 986 | (save-excursion ; locate matching close paren | 984 | (save-excursion ; locate matching close paren |
| 987 | (while (and (not (eobp)) (<= (point) eol)) | 985 | (while (and (not (eobp)) (<= (point) eol)) |
| 988 | (parse-partial-sexp (point) (point-max) 0)) | 986 | (parse-partial-sexp (point) (point-max) 0)) |
| @@ -1080,5 +1078,4 @@ With argument, repeat that many times; negative args move backward." | |||
| 1080 | 1078 | ||
| 1081 | (provide 'perl-mode) | 1079 | (provide 'perl-mode) |
| 1082 | 1080 | ||
| 1083 | ;; arch-tag: 8c7ff68d-15f3-46a2-ade2-b7c41f176826 | ||
| 1084 | ;;; perl-mode.el ends here | 1081 | ;;; perl-mode.el ends here |
diff --git a/lisp/progmodes/prolog.el b/lisp/progmodes/prolog.el index 3e388dac56d..dd17c4b6086 100644 --- a/lisp/progmodes/prolog.el +++ b/lisp/progmodes/prolog.el | |||
| @@ -242,7 +242,7 @@ if that value is non-nil." | |||
| 242 | (defun end-of-prolog-clause () | 242 | (defun end-of-prolog-clause () |
| 243 | "Go to end of clause in this line." | 243 | "Go to end of clause in this line." |
| 244 | (beginning-of-line 1) | 244 | (beginning-of-line 1) |
| 245 | (let* ((eolpos (save-excursion (end-of-line) (point)))) | 245 | (let* ((eolpos (line-end-position))) |
| 246 | (if (re-search-forward comment-start-skip eolpos 'move) | 246 | (if (re-search-forward comment-start-skip eolpos 'move) |
| 247 | (goto-char (match-beginning 0))) | 247 | (goto-char (match-beginning 0))) |
| 248 | (skip-chars-backward " \t"))) | 248 | (skip-chars-backward " \t"))) |
| @@ -434,5 +434,4 @@ If COMPILE (prefix arg) is not nil, use compile mode rather than consult mode." | |||
| 434 | 434 | ||
| 435 | (provide 'prolog) | 435 | (provide 'prolog) |
| 436 | 436 | ||
| 437 | ;; arch-tag: f3ec6748-1272-4ab6-8826-c50cb1607636 | ||
| 438 | ;;; prolog.el ends here | 437 | ;;; prolog.el ends here |
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 10e852223ce..e72b18afd61 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -2605,7 +2605,7 @@ This function is appropriate for `comint-output-filter-functions'." | |||
| 2605 | overlay-arrow-string "=>" | 2605 | overlay-arrow-string "=>" |
| 2606 | python-pdbtrack-is-tracking-p t) | 2606 | python-pdbtrack-is-tracking-p t) |
| 2607 | (set-marker overlay-arrow-position | 2607 | (set-marker overlay-arrow-position |
| 2608 | (save-excursion (beginning-of-line) (point)) | 2608 | (line-beginning-position) |
| 2609 | (current-buffer))) | 2609 | (current-buffer))) |
| 2610 | (setq overlay-arrow-position nil | 2610 | (setq overlay-arrow-position nil |
| 2611 | python-pdbtrack-is-tracking-p nil))) | 2611 | python-pdbtrack-is-tracking-p nil))) |
| @@ -2891,5 +2891,4 @@ filter." | |||
| 2891 | (provide 'python) | 2891 | (provide 'python) |
| 2892 | (provide 'python-21) | 2892 | (provide 'python-21) |
| 2893 | 2893 | ||
| 2894 | ;; arch-tag: 6fce1d99-a704-4de9-ba19-c6e4912b0554 | ||
| 2895 | ;;; python.el ends here | 2894 | ;;; python.el ends here |
diff --git a/lisp/progmodes/simula.el b/lisp/progmodes/simula.el index 34c50b6cfe5..bfa921841e2 100644 --- a/lisp/progmodes/simula.el +++ b/lisp/progmodes/simula.el | |||
| @@ -964,7 +964,7 @@ If COUNT is negative, move backward instead." | |||
| 964 | (simula-previous-statement 1) | 964 | (simula-previous-statement 1) |
| 965 | (simula-skip-comment-backward))) | 965 | (simula-skip-comment-backward))) |
| 966 | (setq start-line | 966 | (setq start-line |
| 967 | (save-excursion (beginning-of-line) (point)) | 967 | (line-beginning-position) |
| 968 | ;; - perhaps this is a continued statement | 968 | ;; - perhaps this is a continued statement |
| 969 | continued | 969 | continued |
| 970 | (save-excursion | 970 | (save-excursion |
| @@ -1023,7 +1023,7 @@ If COUNT is negative, move backward instead." | |||
| 1023 | (car simula-continued-statement-offset) | 1023 | (car simula-continued-statement-offset) |
| 1024 | simula-continued-statement-offset)))) | 1024 | simula-continued-statement-offset)))) |
| 1025 | (setq start-line | 1025 | (setq start-line |
| 1026 | (save-excursion (beginning-of-line) (point)) | 1026 | (line-beginning-position) |
| 1027 | continued nil)) | 1027 | continued nil)) |
| 1028 | ;; search failed .. point is at beginning of line | 1028 | ;; search failed .. point is at beginning of line |
| 1029 | ;; determine if we should continue searching | 1029 | ;; determine if we should continue searching |
| @@ -1064,7 +1064,7 @@ If COUNT is negative, move backward instead." | |||
| 1064 | simula-continued-statement-offset)))) | 1064 | simula-continued-statement-offset)))) |
| 1065 | ;; while ends if point is at beginning of line at loop test | 1065 | ;; while ends if point is at beginning of line at loop test |
| 1066 | (if (not temp) | 1066 | (if (not temp) |
| 1067 | (setq start-line (save-excursion (beginning-of-line) (point))) | 1067 | (setq start-line (line-beginning-position)) |
| 1068 | (beginning-of-line)))) | 1068 | (beginning-of-line)))) |
| 1069 | ;; | 1069 | ;; |
| 1070 | ;; return indentation | 1070 | ;; return indentation |
| @@ -1659,5 +1659,4 @@ If not nil and not t, move to limit of search and return nil." | |||
| 1659 | 1659 | ||
| 1660 | (provide 'simula) | 1660 | (provide 'simula) |
| 1661 | 1661 | ||
| 1662 | ;; arch-tag: 488c1bb0-eebf-4f06-93df-1df603f06255 | ||
| 1663 | ;;; simula.el ends here | 1662 | ;;; simula.el ends here |
diff --git a/lisp/progmodes/vera-mode.el b/lisp/progmodes/vera-mode.el index 96877a000a1..0d119503f31 100644 --- a/lisp/progmodes/vera-mode.el +++ b/lisp/progmodes/vera-mode.el | |||
| @@ -770,7 +770,7 @@ the offset is simply returned." | |||
| 770 | relpos 0) | 770 | relpos 0) |
| 771 | (setq offset (vera-evaluate-offset offset langelem symbol))) | 771 | (setq offset (vera-evaluate-offset offset langelem symbol))) |
| 772 | (+ (if (and relpos | 772 | (+ (if (and relpos |
| 773 | (< relpos (save-excursion (beginning-of-line) (point)))) | 773 | (< relpos (line-beginning-position))) |
| 774 | (save-excursion | 774 | (save-excursion |
| 775 | (goto-char relpos) | 775 | (goto-char relpos) |
| 776 | (current-column)) | 776 | (current-column)) |
| @@ -1482,5 +1482,4 @@ If `vera-intelligent-tab' is nil, always indent line." | |||
| 1482 | 1482 | ||
| 1483 | (provide 'vera-mode) | 1483 | (provide 'vera-mode) |
| 1484 | 1484 | ||
| 1485 | ;; arch-tag: 22eae722-7ac5-47ac-a713-c4db1cf623a9 | ||
| 1486 | ;;; vera-mode.el ends here | 1485 | ;;; vera-mode.el ends here |
diff --git a/lisp/reposition.el b/lisp/reposition.el index 9bc00795fe1..f6699f8c088 100644 --- a/lisp/reposition.el +++ b/lisp/reposition.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; reposition.el --- center a Lisp function or comment on the screen | 1 | ;;; reposition.el --- center a Lisp function or comment on the screen |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1991, 1994, 2001, 2002, 2003, 2004, | 3 | ;; Copyright (C) 1991, 1994, 2001, 2002, 2003, 2004, 2005, 2006, 2007, |
| 4 | ;; 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | 4 | ;; 2008, 2009, 2010 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Michael D. Ernst <mernst@theory.lcs.mit.edu> | 6 | ;; Author: Michael D. Ernst <mernst@theory.lcs.mit.edu> |
| 7 | ;; Created: Jan 1991 | 7 | ;; Created: Jan 1991 |
| @@ -58,7 +58,7 @@ visible (if point is in code and it could not be made so, or if only | |||
| 58 | comments, including the first comment line, are visible), or to make the | 58 | comments, including the first comment line, are visible), or to make the |
| 59 | first comment line visible (if point is in a comment)." | 59 | first comment line visible (if point is in a comment)." |
| 60 | (interactive "P") | 60 | (interactive "P") |
| 61 | (let* (;; (here (save-excursion (beginning-of-line) (point))) | 61 | (let* (;; (here (line-beginning-position)) |
| 62 | (here (point)) | 62 | (here (point)) |
| 63 | ;; change this name once I've gotten rid of references to ht. | 63 | ;; change this name once I've gotten rid of references to ht. |
| 64 | ;; this is actually the number of the last screen line | 64 | ;; this is actually the number of the last screen line |
| @@ -193,5 +193,4 @@ first comment line visible (if point is in a comment)." | |||
| 193 | 193 | ||
| 194 | (provide 'reposition) | 194 | (provide 'reposition) |
| 195 | 195 | ||
| 196 | ;; arch-tag: 79487039-3bd7-4ab5-a3e8-ecf3b4919010 | ||
| 197 | ;;; reposition.el ends here | 196 | ;;; reposition.el ends here |
diff --git a/lisp/shell.el b/lisp/shell.el index b7f62efdb85..75040305528 100644 --- a/lisp/shell.el +++ b/lisp/shell.el | |||
| @@ -1,7 +1,8 @@ | |||
| 1 | ;;; shell.el --- specialized comint.el for running the shell | 1 | ;;; shell.el --- specialized comint.el for running the shell |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1988, 1993, 1994, 1995, 1996, 1997, 2000, 2001, | 3 | ;; Copyright (C) 1988, 1993, 1994, 1995, 1996, 1997, 2000, 2001, 2002, |
| 4 | ;; 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | 4 | ;; 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 |
| 5 | ;; Free Software Foundation, Inc. | ||
| 5 | 6 | ||
| 6 | ;; Author: Olin Shivers <shivers@cs.cmu.edu> | 7 | ;; Author: Olin Shivers <shivers@cs.cmu.edu> |
| 7 | ;; Simon Marshall <simon@gnu.org> | 8 | ;; Simon Marshall <simon@gnu.org> |
| @@ -928,7 +929,7 @@ Copy Shell environment variable to Emacs: "))) | |||
| 928 | "Move forward across ARG shell command(s). Does not cross lines. | 929 | "Move forward across ARG shell command(s). Does not cross lines. |
| 929 | See `shell-command-regexp'." | 930 | See `shell-command-regexp'." |
| 930 | (interactive "p") | 931 | (interactive "p") |
| 931 | (let ((limit (save-excursion (end-of-line nil) (point)))) | 932 | (let ((limit (line-end-position))) |
| 932 | (if (re-search-forward (concat shell-command-regexp "\\([;&|][\t ]*\\)+") | 933 | (if (re-search-forward (concat shell-command-regexp "\\([;&|][\t ]*\\)+") |
| 933 | limit 'move arg) | 934 | limit 'move arg) |
| 934 | (skip-syntax-backward " ")))) | 935 | (skip-syntax-backward " ")))) |
| @@ -1111,5 +1112,4 @@ Returns t if successful." | |||
| 1111 | 1112 | ||
| 1112 | (provide 'shell) | 1113 | (provide 'shell) |
| 1113 | 1114 | ||
| 1114 | ;; arch-tag: bcb5f12a-c1f4-4aea-a809-2504bd5bd797 | ||
| 1115 | ;;; shell.el ends here | 1115 | ;;; shell.el ends here |
diff --git a/lisp/simple.el b/lisp/simple.el index 4d6d42f55a2..a68fd923241 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -4474,7 +4474,7 @@ into account variable-width characters and line continuation." | |||
| 4474 | 4474 | ||
| 4475 | (let (new | 4475 | (let (new |
| 4476 | (old (point)) | 4476 | (old (point)) |
| 4477 | (line-beg (save-excursion (beginning-of-line) (point))) | 4477 | (line-beg (line-beginning-position)) |
| 4478 | (line-end | 4478 | (line-end |
| 4479 | ;; Compute the end of the line | 4479 | ;; Compute the end of the line |
| 4480 | ;; ignoring effectively invisible newlines. | 4480 | ;; ignoring effectively invisible newlines. |
| @@ -4582,7 +4582,7 @@ and `current-column' to be able to ignore invisible text." | |||
| 4582 | ;; that will get us to the same place on the screen | 4582 | ;; that will get us to the same place on the screen |
| 4583 | ;; but with a more reasonable buffer position. | 4583 | ;; but with a more reasonable buffer position. |
| 4584 | (goto-char normal-location) | 4584 | (goto-char normal-location) |
| 4585 | (let ((line-beg (save-excursion (beginning-of-line) (point)))) | 4585 | (let ((line-beg (line-beginning-position))) |
| 4586 | (while (and (not (bolp)) (invisible-p (1- (point)))) | 4586 | (while (and (not (bolp)) (invisible-p (1- (point)))) |
| 4587 | (goto-char (previous-char-property-change (point) line-beg)))))))) | 4587 | (goto-char (previous-char-property-change (point) line-beg)))))))) |
| 4588 | 4588 | ||
diff --git a/lisp/skeleton.el b/lisp/skeleton.el index 28798b1a3b2..1888b41c806 100644 --- a/lisp/skeleton.el +++ b/lisp/skeleton.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; skeleton.el --- Lisp language extension for writing statement skeletons -*- coding: utf-8 -*- | 1 | ;;; skeleton.el --- Lisp language extension for writing statement skeletons -*- coding: utf-8 -*- |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1993, 1994, 1995, 1996, 2001, 2002, 2003, | 3 | ;; Copyright (C) 1993, 1994, 1995, 1996, 2001, 2002, 2003, 2004, 2005, |
| 4 | ;; 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | 4 | ;; 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Daniel Pfeiffer <occitan@esperanto.org> | 6 | ;; Author: Daniel Pfeiffer <occitan@esperanto.org> |
| 7 | ;; Maintainer: FSF | 7 | ;; Maintainer: FSF |
| @@ -318,7 +318,7 @@ automatically, and you are prompted to fill in the variable parts."))) | |||
| 318 | prompt)) | 318 | prompt)) |
| 319 | 319 | ||
| 320 | (defun skeleton-internal-list (skeleton &optional str recursive) | 320 | (defun skeleton-internal-list (skeleton &optional str recursive) |
| 321 | (let* ((start (save-excursion (beginning-of-line) (point))) | 321 | (let* ((start (line-beginning-position)) |
| 322 | (column (current-column)) | 322 | (column (current-column)) |
| 323 | (line (buffer-substring start (line-end-position))) | 323 | (line (buffer-substring start (line-end-position))) |
| 324 | opoint) | 324 | opoint) |
| @@ -562,5 +562,4 @@ symmetrical ones, and the same character twice for the others." | |||
| 562 | 562 | ||
| 563 | (provide 'skeleton) | 563 | (provide 'skeleton) |
| 564 | 564 | ||
| 565 | ;; arch-tag: ccad7bd5-eb5d-40de-9ded-900197215c3e | ||
| 566 | ;;; skeleton.el ends here | 565 | ;;; skeleton.el ends here |
diff --git a/lisp/sort.el b/lisp/sort.el index a858ad1f8f7..d4bbf6df056 100644 --- a/lisp/sort.el +++ b/lisp/sort.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; sort.el --- commands to sort text in an Emacs buffer | 1 | ;;; sort.el --- commands to sort text in an Emacs buffer |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1986, 1987, 1994, 1995, 2001, 2002, 2003, | 3 | ;; Copyright (C) 1986, 1987, 1994, 1995, 2001, 2002, 2003, 2004, 2005, |
| 4 | ;; 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | 4 | ;; 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Howie Kaye | 6 | ;; Author: Howie Kaye |
| 7 | ;; Maintainer: FSF | 7 | ;; Maintainer: FSF |
| @@ -361,8 +361,8 @@ the sort order." | |||
| 361 | (if (eolp) | 361 | (if (eolp) |
| 362 | (error "Line has too few fields: %s" | 362 | (error "Line has too few fields: %s" |
| 363 | (buffer-substring | 363 | (buffer-substring |
| 364 | (save-excursion (beginning-of-line) (point)) | 364 | (line-beginning-position) |
| 365 | (save-excursion (end-of-line) (point)))))) | 365 | (line-end-position))))) |
| 366 | (end-of-line) | 366 | (end-of-line) |
| 367 | ;; Skip back across - N - 1 fields. | 367 | ;; Skip back across - N - 1 fields. |
| 368 | (let ((i (1- (- n)))) | 368 | (let ((i (1- (- n)))) |
| @@ -374,8 +374,8 @@ the sort order." | |||
| 374 | (if (bolp) | 374 | (if (bolp) |
| 375 | (error "Line has too few fields: %s" | 375 | (error "Line has too few fields: %s" |
| 376 | (buffer-substring | 376 | (buffer-substring |
| 377 | (save-excursion (beginning-of-line) (point)) | 377 | (line-beginning-position) |
| 378 | (save-excursion (end-of-line) (point))))) | 378 | (line-end-position)))) |
| 379 | ;; Position at the front of the field | 379 | ;; Position at the front of the field |
| 380 | ;; even if moving backwards. | 380 | ;; even if moving backwards. |
| 381 | (skip-chars-backward "^ \t\n"))) | 381 | (skip-chars-backward "^ \t\n"))) |
| @@ -559,5 +559,4 @@ From a program takes two point or marker arguments, BEG and END." | |||
| 559 | 559 | ||
| 560 | (provide 'sort) | 560 | (provide 'sort) |
| 561 | 561 | ||
| 562 | ;; arch-tag: fbac12be-2a7b-4c8a-9665-264d61f70bd9 | ||
| 563 | ;;; sort.el ends here | 562 | ;;; sort.el ends here |
diff --git a/lisp/speedbar.el b/lisp/speedbar.el index 0719f895fad..3c05734489c 100644 --- a/lisp/speedbar.el +++ b/lisp/speedbar.el | |||
| @@ -3249,7 +3249,7 @@ directory with these items." | |||
| 3249 | ;; If this fails, then it is a non-standard click, and as such, | 3249 | ;; If this fails, then it is a non-standard click, and as such, |
| 3250 | ;; perfectly allowed. | 3250 | ;; perfectly allowed. |
| 3251 | (if (re-search-forward "[]>?}] [^ ]" | 3251 | (if (re-search-forward "[]>?}] [^ ]" |
| 3252 | (save-excursion (end-of-line) (point)) | 3252 | (line-end-position) |
| 3253 | t) | 3253 | t) |
| 3254 | (progn | 3254 | (progn |
| 3255 | (forward-char -1) | 3255 | (forward-char -1) |
| @@ -3267,7 +3267,7 @@ With universal argument ARG, flush cached data." | |||
| 3267 | (condition-case nil | 3267 | (condition-case nil |
| 3268 | (progn | 3268 | (progn |
| 3269 | (re-search-forward ":\\s-*.\\+. " | 3269 | (re-search-forward ":\\s-*.\\+. " |
| 3270 | (save-excursion (end-of-line) (point))) | 3270 | (line-end-position)) |
| 3271 | (forward-char -2) | 3271 | (forward-char -2) |
| 3272 | (speedbar-do-function-pointer)) | 3272 | (speedbar-do-function-pointer)) |
| 3273 | (error (speedbar-position-cursor-on-line))))) | 3273 | (error (speedbar-position-cursor-on-line))))) |
| @@ -3284,7 +3284,7 @@ With universal argument ARG, flush cached data." | |||
| 3284 | (condition-case nil | 3284 | (condition-case nil |
| 3285 | (progn | 3285 | (progn |
| 3286 | (re-search-forward ":\\s-*.-. " | 3286 | (re-search-forward ":\\s-*.-. " |
| 3287 | (save-excursion (end-of-line) (point))) | 3287 | (line-end-position)) |
| 3288 | (forward-char -2) | 3288 | (forward-char -2) |
| 3289 | (speedbar-do-function-pointer)) | 3289 | (speedbar-do-function-pointer)) |
| 3290 | (error (speedbar-position-cursor-on-line)))) | 3290 | (error (speedbar-position-cursor-on-line)))) |
| @@ -3296,7 +3296,7 @@ With universal argument ARG, flush cached data." | |||
| 3296 | (condition-case nil | 3296 | (condition-case nil |
| 3297 | (progn | 3297 | (progn |
| 3298 | (re-search-forward ":\\s-*.[-+]. " | 3298 | (re-search-forward ":\\s-*.[-+]. " |
| 3299 | (save-excursion (end-of-line) (point))) | 3299 | (line-end-position)) |
| 3300 | (forward-char -2) | 3300 | (forward-char -2) |
| 3301 | (speedbar-do-function-pointer)) | 3301 | (speedbar-do-function-pointer)) |
| 3302 | (error (speedbar-position-cursor-on-line)))) | 3302 | (error (speedbar-position-cursor-on-line)))) |
| @@ -3787,7 +3787,7 @@ regular expression EXPR." | |||
| 3787 | (defun speedbar-parse-c-or-c++tag () | 3787 | (defun speedbar-parse-c-or-c++tag () |
| 3788 | "Parse a C or C++ tag, which tends to be a little complex." | 3788 | "Parse a C or C++ tag, which tends to be a little complex." |
| 3789 | (save-excursion | 3789 | (save-excursion |
| 3790 | (let ((bound (save-excursion (end-of-line) (point)))) | 3790 | (let ((bound (line-end-position))) |
| 3791 | (cond ((re-search-forward "\C-?\\([^\C-a]+\\)\C-a" bound t) | 3791 | (cond ((re-search-forward "\C-?\\([^\C-a]+\\)\C-a" bound t) |
| 3792 | (buffer-substring-no-properties (match-beginning 1) | 3792 | (buffer-substring-no-properties (match-beginning 1) |
| 3793 | (match-end 1))) | 3793 | (match-end 1))) |
| @@ -3803,7 +3803,7 @@ regular expression EXPR." | |||
| 3803 | (defun speedbar-parse-tex-string () | 3803 | (defun speedbar-parse-tex-string () |
| 3804 | "Parse a Tex string. Only find data which is relevant." | 3804 | "Parse a Tex string. Only find data which is relevant." |
| 3805 | (save-excursion | 3805 | (save-excursion |
| 3806 | (let ((bound (save-excursion (end-of-line) (point)))) | 3806 | (let ((bound (line-end-position))) |
| 3807 | (cond ((re-search-forward "\\(\\(sub\\)*section\\|chapter\\|cite\\)\\s-*{[^\C-?}]*}?" bound t) | 3807 | (cond ((re-search-forward "\\(\\(sub\\)*section\\|chapter\\|cite\\)\\s-*{[^\C-?}]*}?" bound t) |
| 3808 | (buffer-substring-no-properties (match-beginning 0) | 3808 | (buffer-substring-no-properties (match-beginning 0) |
| 3809 | (match-end 0))) | 3809 | (match-end 0))) |
| @@ -3983,7 +3983,7 @@ TEXT is the buffer's name, TOKEN and INDENT are unused." | |||
| 3983 | ;; If this fails, then it is a non-standard click, and as such, | 3983 | ;; If this fails, then it is a non-standard click, and as such, |
| 3984 | ;; perfectly allowed | 3984 | ;; perfectly allowed |
| 3985 | (if (re-search-forward "[]>?}] [^ ]" | 3985 | (if (re-search-forward "[]>?}] [^ ]" |
| 3986 | (save-excursion (end-of-line) (point)) | 3986 | (line-end-position) |
| 3987 | t) | 3987 | t) |
| 3988 | (let ((text (progn | 3988 | (let ((text (progn |
| 3989 | (forward-char -1) | 3989 | (forward-char -1) |
| @@ -4005,7 +4005,7 @@ TEXT is the buffer's name, TOKEN and INDENT are unused." | |||
| 4005 | "Highlight the current line, unhighlighting a previously jumped to line." | 4005 | "Highlight the current line, unhighlighting a previously jumped to line." |
| 4006 | (speedbar-unhighlight-one-tag-line) | 4006 | (speedbar-unhighlight-one-tag-line) |
| 4007 | (setq speedbar-highlight-one-tag-line | 4007 | (setq speedbar-highlight-one-tag-line |
| 4008 | (speedbar-make-overlay (save-excursion (beginning-of-line) (point)) | 4008 | (speedbar-make-overlay (line-beginning-position) |
| 4009 | (save-excursion (end-of-line) | 4009 | (save-excursion (end-of-line) |
| 4010 | (forward-char 1) | 4010 | (forward-char 1) |
| 4011 | (point)))) | 4011 | (point)))) |
diff --git a/lisp/term.el b/lisp/term.el index 80f5dcdc01a..6d922356236 100644 --- a/lisp/term.el +++ b/lisp/term.el | |||
| @@ -1,7 +1,8 @@ | |||
| 1 | ;;; term.el --- general command interpreter in a window stuff | 1 | ;;; term.el --- general command interpreter in a window stuff |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1988, 1990, 1992, 1994, 1995, 2001, 2002, 2003, | 3 | ;; Copyright (C) 1988, 1990, 1992, 1994, 1995, 2001, 2002, 2003, 2004, |
| 4 | ;; 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | 4 | ;; 2005, 2006, 2007, 2008, 2009, 2010 |
| 5 | ;; Free Software Foundation, Inc. | ||
| 5 | 6 | ||
| 6 | ;; Author: Per Bothner <per@bothner.com> | 7 | ;; Author: Per Bothner <per@bothner.com> |
| 7 | ;; Maintainer: Dan Nicolaescu <dann@ics.uci.edu>, Per Bothner <per@bothner.com> | 8 | ;; Maintainer: Dan Nicolaescu <dann@ics.uci.edu>, Per Bothner <per@bothner.com> |
| @@ -1798,15 +1799,11 @@ Returns t if successful." | |||
| 1798 | "Expand directory stack reference before point. | 1799 | "Expand directory stack reference before point. |
| 1799 | See `term-replace-by-expanded-history'. Returns t if successful." | 1800 | See `term-replace-by-expanded-history'. Returns t if successful." |
| 1800 | (save-excursion | 1801 | (save-excursion |
| 1801 | (let ((toend (- (save-excursion (end-of-line nil) (point)) (point))) | 1802 | (let ((toend (- (line-end-position) (point))) |
| 1802 | (start (progn (term-bol nil) (point)))) | 1803 | (start (progn (term-bol nil) (point)))) |
| 1803 | (while (progn | 1804 | (while (progn |
| 1804 | (skip-chars-forward "^!^" | 1805 | (skip-chars-forward "^!^" (- (line-end-position) toend)) |
| 1805 | (save-excursion | 1806 | (< (point) (- (line-end-position) toend))) |
| 1806 | (end-of-line nil) (- (point) toend))) | ||
| 1807 | (< (point) | ||
| 1808 | (save-excursion | ||
| 1809 | (end-of-line nil) (- (point) toend)))) | ||
| 1810 | ;; This seems a bit complex. We look for references such as !!, !-num, | 1807 | ;; This seems a bit complex. We look for references such as !!, !-num, |
| 1811 | ;; !foo, !?foo, !{bar}, !?{bar}, ^oh, ^my^, ^god^it, ^never^ends^. | 1808 | ;; !foo, !?foo, !{bar}, !?{bar}, ^oh, ^my^, ^god^it, ^never^ends^. |
| 1812 | ;; If that wasn't enough, the plings can be suffixed with argument | 1809 | ;; If that wasn't enough, the plings can be suffixed with argument |
| @@ -2112,7 +2109,7 @@ Calls `term-get-old-input' to get old input." | |||
| 2112 | (defun term-skip-prompt () | 2109 | (defun term-skip-prompt () |
| 2113 | "Skip past the text matching regexp `term-prompt-regexp'. | 2110 | "Skip past the text matching regexp `term-prompt-regexp'. |
| 2114 | If this takes us past the end of the current line, don't skip at all." | 2111 | If this takes us past the end of the current line, don't skip at all." |
| 2115 | (let ((eol (save-excursion (end-of-line) (point)))) | 2112 | (let ((eol (line-end-position))) |
| 2116 | (when (and (looking-at term-prompt-regexp) | 2113 | (when (and (looking-at term-prompt-regexp) |
| 2117 | (<= (match-end 0) eol)) | 2114 | (<= (match-end 0) eol)) |
| 2118 | (goto-char (match-end 0))))) | 2115 | (goto-char (match-end 0))))) |
| @@ -2471,11 +2468,10 @@ See `term-prompt-regexp'." | |||
| 2471 | "Return string around `point' that starts the current line or nil." | 2468 | "Return string around `point' that starts the current line or nil." |
| 2472 | (save-excursion | 2469 | (save-excursion |
| 2473 | (let* ((point (point)) | 2470 | (let* ((point (point)) |
| 2474 | (bol (progn (beginning-of-line) (point))) | 2471 | (bol (line-beginning-position)) |
| 2475 | (eol (progn (end-of-line) (point))) | 2472 | (eol (line-end-position)) |
| 2476 | (start (progn (goto-char point) | 2473 | (start (and (search-backward "\"" bol t) |
| 2477 | (and (search-backward "\"" bol t) | 2474 | (1+ (point)))) |
| 2478 | (1+ (point))))) | ||
| 2479 | (end (progn (goto-char point) | 2475 | (end (progn (goto-char point) |
| 2480 | (and (search-forward "\"" eol t) | 2476 | (and (search-forward "\"" eol t) |
| 2481 | (1- (point)))))) | 2477 | (1- (point)))))) |
| @@ -4534,5 +4530,4 @@ The return value may be nil for a special serial port." | |||
| 4534 | 4530 | ||
| 4535 | (provide 'term) | 4531 | (provide 'term) |
| 4536 | 4532 | ||
| 4537 | ;; arch-tag: eee16bc8-2cd7-4147-9534-a5694752f716 | ||
| 4538 | ;;; term.el ends here | 4533 | ;;; term.el ends here |
diff --git a/lisp/textmodes/page-ext.el b/lisp/textmodes/page-ext.el index 05065cd4427..548223e4f2c 100644 --- a/lisp/textmodes/page-ext.el +++ b/lisp/textmodes/page-ext.el | |||
| @@ -671,7 +671,7 @@ Used by `pages-directory' function." | |||
| 671 | (setq position (make-marker)) | 671 | (setq position (make-marker)) |
| 672 | (set-marker position (point)) | 672 | (set-marker position (point)) |
| 673 | (let ((start (point)) | 673 | (let ((start (point)) |
| 674 | (end (save-excursion (end-of-line) (point))) | 674 | (end (line-end-position)) |
| 675 | inserted-at) | 675 | inserted-at) |
| 676 | ;; change to directory buffer | 676 | ;; change to directory buffer |
| 677 | (set-buffer standard-output) | 677 | (set-buffer standard-output) |
| @@ -783,7 +783,7 @@ directory." | |||
| 783 | (delete-other-windows)) | 783 | (delete-other-windows)) |
| 784 | (save-excursion | 784 | (save-excursion |
| 785 | (goto-char (point-min)) | 785 | (goto-char (point-min)) |
| 786 | (delete-region (point) (save-excursion (end-of-line) (point))) | 786 | (delete-region (point) (line-end-position)) |
| 787 | (insert | 787 | (insert |
| 788 | "=== Address List Directory: use `C-c C-c' to go to page under cursor. ===") | 788 | "=== Address List Directory: use `C-c C-c' to go to page under cursor. ===") |
| 789 | (set-buffer-modified-p nil) | 789 | (set-buffer-modified-p nil) |
| @@ -801,5 +801,4 @@ to the same line in the pages buffer." | |||
| 801 | 801 | ||
| 802 | (provide 'page-ext) | 802 | (provide 'page-ext) |
| 803 | 803 | ||
| 804 | ;; arch-tag: 2f311550-c6e0-4458-9c12-7f039c058bdb | ||
| 805 | ;;; page-ext.el ends here | 804 | ;;; page-ext.el ends here |
diff --git a/lisp/textmodes/picture.el b/lisp/textmodes/picture.el index 89e1020db98..961be29cc86 100644 --- a/lisp/textmodes/picture.el +++ b/lisp/textmodes/picture.el | |||
| @@ -438,7 +438,7 @@ If no such character is found, move to beginning of line." | |||
| 438 | (move-to-column target)) | 438 | (move-to-column target)) |
| 439 | (if (re-search-forward | 439 | (if (re-search-forward |
| 440 | (concat "[ \t]+[" (regexp-quote picture-tab-chars) "]") | 440 | (concat "[ \t]+[" (regexp-quote picture-tab-chars) "]") |
| 441 | (save-excursion (end-of-line) (point)) | 441 | (line-end-position) |
| 442 | 'move) | 442 | 'move) |
| 443 | (setq target (1- (current-column))) | 443 | (setq target (1- (current-column))) |
| 444 | (setq target nil))) | 444 | (setq target nil))) |
| @@ -775,5 +775,4 @@ Runs `picture-mode-exit-hook' at the end." | |||
| 775 | 775 | ||
| 776 | (provide 'picture) | 776 | (provide 'picture) |
| 777 | 777 | ||
| 778 | ;; arch-tag: e452d08d-a470-4fbf-896e-ea276698d1ca | ||
| 779 | ;;; picture.el ends here | 778 | ;;; picture.el ends here |
diff --git a/lisp/textmodes/table.el b/lisp/textmodes/table.el index 136c5dc466c..eb2d4849a32 100644 --- a/lisp/textmodes/table.el +++ b/lisp/textmodes/table.el | |||
| @@ -5057,7 +5057,7 @@ Focus only on the corner pattern. Further cell validity check is required." | |||
| 5057 | (intersection-str (regexp-quote (char-to-string table-cell-intersection-char))) | 5057 | (intersection-str (regexp-quote (char-to-string table-cell-intersection-char))) |
| 5058 | (v-border (format "[%c%c]" table-cell-vertical-char table-cell-intersection-char)) | 5058 | (v-border (format "[%c%c]" table-cell-vertical-char table-cell-intersection-char)) |
| 5059 | (h-border (format "[%s%c]" table-cell-horizontal-chars table-cell-intersection-char)) | 5059 | (h-border (format "[%s%c]" table-cell-horizontal-chars table-cell-intersection-char)) |
| 5060 | (limit (save-excursion (beginning-of-line) (point)))) | 5060 | (limit (line-beginning-position))) |
| 5061 | (catch 'end | 5061 | (catch 'end |
| 5062 | (while t | 5062 | (while t |
| 5063 | (catch 'retry-horizontal | 5063 | (catch 'retry-horizontal |
| @@ -5095,7 +5095,7 @@ Focus only on the corner pattern. Further cell validity check is required." | |||
| 5095 | (intersection-str (regexp-quote (char-to-string table-cell-intersection-char))) | 5095 | (intersection-str (regexp-quote (char-to-string table-cell-intersection-char))) |
| 5096 | (v-border (format "[%c%c]" table-cell-vertical-char table-cell-intersection-char)) | 5096 | (v-border (format "[%c%c]" table-cell-vertical-char table-cell-intersection-char)) |
| 5097 | (h-border (format "[%s%c]" table-cell-horizontal-chars table-cell-intersection-char)) | 5097 | (h-border (format "[%s%c]" table-cell-horizontal-chars table-cell-intersection-char)) |
| 5098 | (limit (save-excursion (end-of-line) (point)))) | 5098 | (limit (line-end-position))) |
| 5099 | (catch 'end | 5099 | (catch 'end |
| 5100 | (while t | 5100 | (while t |
| 5101 | (catch 'retry-horizontal | 5101 | (catch 'retry-horizontal |
| @@ -5589,5 +5589,4 @@ It returns COLUMN unless STR contains some wide characters." | |||
| 5589 | 5589 | ||
| 5590 | (provide 'table) | 5590 | (provide 'table) |
| 5591 | 5591 | ||
| 5592 | ;; arch-tag: 0d69b03e-aa5f-4e72-8806-5727217617e0 | ||
| 5593 | ;;; table.el ends here | 5592 | ;;; table.el ends here |
diff --git a/lisp/textmodes/texnfo-upd.el b/lisp/textmodes/texnfo-upd.el index f4fcc95908b..a5b4937f240 100644 --- a/lisp/textmodes/texnfo-upd.el +++ b/lisp/textmodes/texnfo-upd.el | |||
| @@ -719,21 +719,21 @@ complements the node name rather than repeats it as a title does." | |||
| 719 | (let (beginning end node-name title) | 719 | (let (beginning end node-name title) |
| 720 | (save-excursion | 720 | (save-excursion |
| 721 | (beginning-of-line) | 721 | (beginning-of-line) |
| 722 | (if (search-forward "* " (save-excursion (end-of-line) (point)) t) | 722 | (if (search-forward "* " (line-end-position) t) |
| 723 | (progn (skip-chars-forward " \t") | 723 | (progn (skip-chars-forward " \t") |
| 724 | (setq beginning (point))) | 724 | (setq beginning (point))) |
| 725 | (error "This is not a line in a menu")) | 725 | (error "This is not a line in a menu")) |
| 726 | 726 | ||
| 727 | (cond | 727 | (cond |
| 728 | ;; "Double colon" entry line; menu entry and node name are the same, | 728 | ;; "Double colon" entry line; menu entry and node name are the same, |
| 729 | ((search-forward "::" (save-excursion (end-of-line) (point)) t) | 729 | ((search-forward "::" (line-end-position) t) |
| 730 | (if (looking-at "[ \t]*[^ \t\n]+") | 730 | (if (looking-at "[ \t]*[^ \t\n]+") |
| 731 | (error "Descriptive text already exists")) | 731 | (error "Descriptive text already exists")) |
| 732 | (skip-chars-backward ": \t") | 732 | (skip-chars-backward ": \t") |
| 733 | (setq node-name (buffer-substring beginning (point)))) | 733 | (setq node-name (buffer-substring beginning (point)))) |
| 734 | 734 | ||
| 735 | ;; "Single colon" entry line; menu entry and node name are different. | 735 | ;; "Single colon" entry line; menu entry and node name are different. |
| 736 | ((search-forward ":" (save-excursion (end-of-line) (point)) t) | 736 | ((search-forward ":" (line-end-position) t) |
| 737 | (skip-chars-forward " \t") | 737 | (skip-chars-forward " \t") |
| 738 | (setq beginning (point)) | 738 | (setq beginning (point)) |
| 739 | ;; Menu entry line ends in a period, comma, or tab. | 739 | ;; Menu entry line ends in a period, comma, or tab. |
| @@ -1154,8 +1154,7 @@ Only argument is a string of the general type of section." | |||
| 1154 | (save-excursion | 1154 | (save-excursion |
| 1155 | (goto-char (point-min)) | 1155 | (goto-char (point-min)) |
| 1156 | (re-search-forward "^@node [ \t]*top[ \t]*\\(,\\|$\\)" nil t) | 1156 | (re-search-forward "^@node [ \t]*top[ \t]*\\(,\\|$\\)" nil t) |
| 1157 | (beginning-of-line) | 1157 | (line-beginning-position))) |
| 1158 | (point))) | ||
| 1159 | (t | 1158 | (t |
| 1160 | (save-excursion | 1159 | (save-excursion |
| 1161 | (re-search-backward | 1160 | (re-search-backward |
| @@ -1206,13 +1205,11 @@ The menu will be located just before this position. | |||
| 1206 | First argument is the position of the beginning of the section in | 1205 | First argument is the position of the beginning of the section in |
| 1207 | which the menu will be located; second argument is the position of the | 1206 | which the menu will be located; second argument is the position of the |
| 1208 | end of that region; it limits the search." | 1207 | end of that region; it limits the search." |
| 1209 | |||
| 1210 | (save-excursion | 1208 | (save-excursion |
| 1211 | (goto-char beginning) | 1209 | (goto-char beginning) |
| 1212 | (forward-line 1) | 1210 | (forward-line 1) |
| 1213 | (re-search-forward "^@node" end t) | 1211 | (re-search-forward "^@node" end t) |
| 1214 | (beginning-of-line) | 1212 | (line-beginning-position))) |
| 1215 | (point))) | ||
| 1216 | 1213 | ||
| 1217 | 1214 | ||
| 1218 | ;;; Updating a node | 1215 | ;;; Updating a node |
| @@ -1331,7 +1328,7 @@ Point must be at beginning of node line. Does not move point." | |||
| 1331 | Starts from the current position of the cursor, and searches forward | 1328 | Starts from the current position of the cursor, and searches forward |
| 1332 | on the line for a comma and if one is found, deletes the rest of the | 1329 | on the line for a comma and if one is found, deletes the rest of the |
| 1333 | line, including the comma. Leaves point at beginning of line." | 1330 | line, including the comma. Leaves point at beginning of line." |
| 1334 | (let ((eol-point (save-excursion (end-of-line) (point)))) | 1331 | (let ((eol-point (line-end-position))) |
| 1335 | (if (search-forward "," eol-point t) | 1332 | (if (search-forward "," eol-point t) |
| 1336 | (delete-region (1- (point)) eol-point))) | 1333 | (delete-region (1- (point)) eol-point))) |
| 1337 | (beginning-of-line)) | 1334 | (beginning-of-line)) |
| @@ -1437,8 +1434,7 @@ will be at some level higher in the Texinfo file. The fourth argument | |||
| 1437 | "\\)") | 1434 | "\\)") |
| 1438 | (save-excursion | 1435 | (save-excursion |
| 1439 | (goto-char beginning) | 1436 | (goto-char beginning) |
| 1440 | (beginning-of-line) | 1437 | (line-beginning-position)) |
| 1441 | (point)) | ||
| 1442 | t) | 1438 | t) |
| 1443 | 'normal | 1439 | 'normal |
| 1444 | 'no-pointer)) | 1440 | 'no-pointer)) |
| @@ -1483,7 +1479,7 @@ towards which the pointer is directed, one of `next', `previous', or `up'." | |||
| 1483 | "Remove extra commas, if any, at end of node line." | 1479 | "Remove extra commas, if any, at end of node line." |
| 1484 | (end-of-line) | 1480 | (end-of-line) |
| 1485 | (skip-chars-backward ", ") | 1481 | (skip-chars-backward ", ") |
| 1486 | (delete-region (point) (save-excursion (end-of-line) (point)))) | 1482 | (delete-region (point) (line-end-position))) |
| 1487 | 1483 | ||
| 1488 | 1484 | ||
| 1489 | ;;; Updating nodes sequentially | 1485 | ;;; Updating nodes sequentially |
| @@ -1647,7 +1643,7 @@ node names in pre-existing `@node' lines that lack names." | |||
| 1647 | (skip-chars-forward " \t") | 1643 | (skip-chars-forward " \t") |
| 1648 | (setq title (buffer-substring | 1644 | (setq title (buffer-substring |
| 1649 | (point) | 1645 | (point) |
| 1650 | (save-excursion (end-of-line) (point)))))) | 1646 | (line-end-position))))) |
| 1651 | ;; Insert node line if necessary. | 1647 | ;; Insert node line if necessary. |
| 1652 | (if (re-search-backward | 1648 | (if (re-search-backward |
| 1653 | "^@node" | 1649 | "^@node" |
| @@ -1993,9 +1989,7 @@ chapter." | |||
| 1993 | (point-min) | 1989 | (point-min) |
| 1994 | (save-excursion | 1990 | (save-excursion |
| 1995 | (re-search-forward "^@include") | 1991 | (re-search-forward "^@include") |
| 1996 | (beginning-of-line) | 1992 | (line-beginning-position))) |
| 1997 | (point))) | ||
| 1998 | |||
| 1999 | ;; If found, leave point after word `menu' on the `@menu' line. | 1993 | ;; If found, leave point after word `menu' on the `@menu' line. |
| 2000 | (progn | 1994 | (progn |
| 2001 | (texinfo-incorporate-descriptions main-menu-list) | 1995 | (texinfo-incorporate-descriptions main-menu-list) |
| @@ -2057,5 +2051,4 @@ chapter." | |||
| 2057 | ;; Place `provide' at end of file. | 2051 | ;; Place `provide' at end of file. |
| 2058 | (provide 'texnfo-upd) | 2052 | (provide 'texnfo-upd) |
| 2059 | 2053 | ||
| 2060 | ;; arch-tag: d21613a5-c32f-43f4-8af4-bfb1e7455842 | ||
| 2061 | ;;; texnfo-upd.el ends here | 2054 | ;;; texnfo-upd.el ends here |
diff --git a/lisp/type-break.el b/lisp/type-break.el index 641215be8cf..83278cbc6cc 100644 --- a/lisp/type-break.el +++ b/lisp/type-break.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; type-break.el --- encourage rests from typing at appropriate intervals | 1 | ;;; type-break.el --- encourage rests from typing at appropriate intervals |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1994, 1995, 1997, 2000, 2001, 2002, 2003, | 3 | ;; Copyright (C) 1994, 1995, 1997, 2000, 2001, 2002, 2003, 2004, 2005, |
| 4 | ;; 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | 4 | ;; 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Noah Friedman | 6 | ;; Author: Noah Friedman |
| 7 | ;; Maintainer: Noah Friedman <friedman@splode.com> | 7 | ;; Maintainer: Noah Friedman <friedman@splode.com> |
| @@ -495,7 +495,7 @@ variable of the same name." | |||
| 495 | (let ((inhibit-read-only t)) | 495 | (let ((inhibit-read-only t)) |
| 496 | (goto-char (point-min)) | 496 | (goto-char (point-min)) |
| 497 | (forward-line) | 497 | (forward-line) |
| 498 | (delete-region (point) (save-excursion (end-of-line) (point))) | 498 | (delete-region (point) (line-end-position)) |
| 499 | (insert (format "%s" type-break-keystroke-count)) | 499 | (insert (format "%s" type-break-keystroke-count)) |
| 500 | ;; file saving is left to auto-save | 500 | ;; file saving is left to auto-save |
| 501 | )))))) | 501 | )))))) |
| @@ -1243,5 +1243,4 @@ With optional non-nil ALL, force redisplay of all mode-lines." | |||
| 1243 | (if type-break-mode | 1243 | (if type-break-mode |
| 1244 | (type-break-mode 1)) | 1244 | (type-break-mode 1)) |
| 1245 | 1245 | ||
| 1246 | ;; arch-tag: 943a2eb3-07e6-420b-993f-96e4796f5fd0 | ||
| 1247 | ;;; type-break.el ends here | 1246 | ;;; type-break.el ends here |
diff --git a/lisp/woman.el b/lisp/woman.el index 265b20bb2d2..25113419deb 100644 --- a/lisp/woman.el +++ b/lisp/woman.el | |||
| @@ -3543,8 +3543,8 @@ The expression may be an argument in quotes." | |||
| 3543 | ; (WoMan-warn "Unimplemented numerical operator `%c' in %s" | 3543 | ; (WoMan-warn "Unimplemented numerical operator `%c' in %s" |
| 3544 | ; (following-char) | 3544 | ; (following-char) |
| 3545 | ; (buffer-substring | 3545 | ; (buffer-substring |
| 3546 | ; (save-excursion (beginning-of-line) (point)) | 3546 | ; (line-beginning-position) |
| 3547 | ; (save-excursion (end-of-line) (point)))) | 3547 | ; (line-end-position))) |
| 3548 | ; (skip-syntax-forward "^ ")) | 3548 | ; (skip-syntax-forward "^ ")) |
| 3549 | value | 3549 | value |
| 3550 | )) | 3550 | )) |
| @@ -3613,7 +3613,7 @@ expression in parentheses. Leaves point after the value." | |||
| 3613 | (WoMan-warn "Numeric/register argument error: %s" | 3613 | (WoMan-warn "Numeric/register argument error: %s" |
| 3614 | (buffer-substring | 3614 | (buffer-substring |
| 3615 | (point) | 3615 | (point) |
| 3616 | (save-excursion (end-of-line) (point)))) | 3616 | (line-end-position))) |
| 3617 | (skip-syntax-forward "^ ") | 3617 | (skip-syntax-forward "^ ") |
| 3618 | 0) | 3618 | 0) |
| 3619 | (goto-char (match-end 0)) | 3619 | (goto-char (match-end 0)) |
| @@ -3763,8 +3763,7 @@ v alters page foot left; m alters page head center. | |||
| 3763 | (buffer-substring start here)) | 3763 | (buffer-substring start here)) |
| 3764 | (delete-region here (point))))) | 3764 | (delete-region here (point))))) |
| 3765 | ;; Embolden heading (point is at end of heading): | 3765 | ;; Embolden heading (point is at end of heading): |
| 3766 | (woman-set-face | 3766 | (woman-set-face (line-beginning-position) (point) 'woman-bold) |
| 3767 | (save-excursion (beginning-of-line) (point)) (point) 'woman-bold) | ||
| 3768 | (forward-line) | 3767 | (forward-line) |
| 3769 | (delete-blank-lines) | 3768 | (delete-blank-lines) |
| 3770 | (setq woman-left-margin woman-default-indent) | 3769 | (setq woman-left-margin woman-default-indent) |
| @@ -3783,8 +3782,7 @@ Format paragraphs upto TO. Set prevailing indent to 5." | |||
| 3783 | (setq woman-leave-blank-lines nil) | 3782 | (setq woman-leave-blank-lines nil) |
| 3784 | ;; Optionally embolden heading (point is at beginning of heading): | 3783 | ;; Optionally embolden heading (point is at beginning of heading): |
| 3785 | (if woman-bold-headings | 3784 | (if woman-bold-headings |
| 3786 | (woman-set-face | 3785 | (woman-set-face (point) (line-end-position) 'woman-bold)) |
| 3787 | (point) (save-excursion (end-of-line) (point)) 'woman-bold)) | ||
| 3788 | (forward-line) | 3786 | (forward-line) |
| 3789 | (setq woman-left-margin woman-default-indent | 3787 | (setq woman-left-margin woman-default-indent |
| 3790 | woman-nofill nil) ; fill output lines | 3788 | woman-nofill nil) ; fill output lines |
| @@ -4376,7 +4374,7 @@ tab stop columns or pairs (COLUMN . TYPE) where TYPE is R or C." | |||
| 4376 | eol n) | 4374 | eol n) |
| 4377 | (if type | 4375 | (if type |
| 4378 | (setq tab (woman-get-tab-stop tab) | 4376 | (setq tab (woman-get-tab-stop tab) |
| 4379 | eol (save-excursion (end-of-line) (point)) | 4377 | eol (line-end-position) |
| 4380 | n (save-excursion | 4378 | n (save-excursion |
| 4381 | (search-forward "\t" eol t)) | 4379 | (search-forward "\t" eol t)) |
| 4382 | n (- (if n (1- n) eol) (point)) | 4380 | n (- (if n (1- n) eol) (point)) |
| @@ -4507,7 +4505,7 @@ Format paragraphs upto TO." | |||
| 4507 | IGNORED is a string appended to the log message." | 4505 | IGNORED is a string appended to the log message." |
| 4508 | (let ((tail | 4506 | (let ((tail |
| 4509 | (buffer-substring (point) | 4507 | (buffer-substring (point) |
| 4510 | (save-excursion (end-of-line) (point))))) | 4508 | (line-end-position)))) |
| 4511 | (if (and (> (length tail) 0) | 4509 | (if (and (> (length tail) 0) |
| 4512 | (/= (string-to-char tail) ?\ )) | 4510 | (/= (string-to-char tail) ?\ )) |
| 4513 | (setq tail (concat " " tail))) | 4511 | (setq tail (concat " " tail))) |