aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorGlenn Morris2010-11-08 21:33:07 -0800
committerGlenn Morris2010-11-08 21:33:07 -0800
commit9b026d9f13d4a7694e9dfebce171564cf8ec2dd4 (patch)
tree121689d8882db5afa0b45d393f9fd0656fb5cc2e /lisp
parent44d51d846021b503fa5e8fe9683efd243c9b24f0 (diff)
downloademacs-9b026d9f13d4a7694e9dfebce171564cf8ec2dd4.tar.gz
emacs-9b026d9f13d4a7694e9dfebce171564cf8ec2dd4.zip
Replace still more end-of-line etc with line-end-position, etc.
* lisp/gnus/nnbabyl.el (nnbabyl-request-move-article, nnbabyl-delete-mail) (nnbabyl-check-mbox): Use point-at-bol. * lisp/cedet/semantic/lex.el (semantic-lex-ignore-comments, semantic-flex): * lisp/cedet/semantic/grammar.el (semantic-grammar-epilogue): * lisp/cedet/ede/speedbar.el (ede-find-nearest-file-line): * lisp/cedet/ede/pmake.el (ede-proj-makefile-insert-dist-rules): * lisp/cedet/ede/autoconf-edit.el (autoconf-delete-parameter): Use point-at-bol and point-at-eol. * lisp/vc/emerge.el (emerge-line-number-in-buf): * lisp/textmodes/ispell.el (ispell-region): * lisp/textmodes/fill.el (current-fill-column): * lisp/progmodes/xscheme.el (xscheme-send-current-line): * lisp/progmodes/vhdl-mode.el (vhdl-current-line, vhdl-line-copy): * lisp/progmodes/tcl.el (tcl-hairy-scan-for-comment): * lisp/progmodes/sh-script.el (sh-handle-prev-do): * lisp/progmodes/meta-mode.el (meta-indent-line): * lisp/progmodes/idlwave.el (idlwave-goto-comment, idlwave-fill-paragraph) (idlwave-in-quote): * lisp/progmodes/idlw-shell.el (idlwave-shell-current-frame) (idlwave-shell-update-bp-overlays, idlwave-shell-sources-filter): * lisp/progmodes/fortran.el (fortran-looking-at-if-then): * lisp/progmodes/etags.el (find-tag-in-order, etags-snarf-tag): * lisp/progmodes/cperl-mode.el (cperl-sniff-for-indent) (cperl-find-pods-heres): * lisp/progmodes/ada-mode.el (ada-get-current-indent, ada-narrow-to-defun): * lisp/net/quickurl.el (quickurl-list-insert): * lisp/net/ldap.el (ldap-search-internal): * lisp/net/eudc.el (eudc-expand-inline): * lisp/mail/sendmail.el (sendmail-send-it): * lisp/mail/mspools.el (mspools-visit-spool, mspools-get-spool-name): * lisp/emulation/viper-cmd.el (viper-paren-match, viper-backward-indent) (viper-brac-function): * lisp/calc/calc-yank.el (calc-do-grab-region): * lisp/calc/calc-keypd.el (calc-keypad-press): * lisp/term.el (term-move-columns, term-insert-spaces): * lisp/speedbar.el (speedbar-highlight-one-tag-line): * lisp/simple.el (current-word): * lisp/mouse-drag.el (mouse-drag-should-do-col-scrolling): * lisp/info.el (Info-find-node-in-buffer-1, Info-follow-reference) (Info-scroll-down): * lisp/hippie-exp.el (he-line-beg): * lisp/epa.el (epa--marked-keys): * lisp/dired-aux.el (dired-kill-line, dired-do-kill-lines) (dired-update-file-line, dired-add-entry, dired-remove-entry) (dired-relist-entry): * lisp/buff-menu.el (Buffer-menu-buffer): * lisp/array.el (current-line): * lisp/allout.el (allout-resolve-xref) (allout-latex-verbatim-quote-curr-line): Replace yet more uses of end-of-line etc with line-end-position.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog45
-rw-r--r--lisp/allout.el12
-rw-r--r--lisp/array.el7
-rw-r--r--lisp/buff-menu.el10
-rw-r--r--lisp/calc/calc-keypd.el9
-rw-r--r--lisp/calc/calc-yank.el12
-rw-r--r--lisp/cedet/ChangeLog9
-rw-r--r--lisp/cedet/ede/autoconf-edit.el8
-rw-r--r--lisp/cedet/ede/pmake.el10
-rw-r--r--lisp/cedet/ede/speedbar.el10
-rw-r--r--lisp/cedet/semantic/grammar.el6
-rw-r--r--lisp/cedet/semantic/lex.el11
-rw-r--r--lisp/dired-aux.el21
-rw-r--r--lisp/emulation/viper-cmd.el15
-rw-r--r--lisp/epa.el13
-rw-r--r--lisp/gnus/ChangeLog5
-rw-r--r--lisp/gnus/nnbabyl.el13
-rw-r--r--lisp/hippie-exp.el4
-rw-r--r--lisp/info.el35
-rw-r--r--lisp/mail/mspools.el16
-rw-r--r--lisp/mail/sendmail.el3
-rw-r--r--lisp/mouse-drag.el7
-rw-r--r--lisp/net/eudc.el6
-rw-r--r--lisp/net/ldap.el5
-rw-r--r--lisp/net/quickurl.el9
-rw-r--r--lisp/progmodes/ada-mode.el14
-rw-r--r--lisp/progmodes/cperl-mode.el8
-rw-r--r--lisp/progmodes/etags.el10
-rw-r--r--lisp/progmodes/fortran.el4
-rw-r--r--lisp/progmodes/idlw-shell.el9
-rw-r--r--lisp/progmodes/idlwave.el9
-rw-r--r--lisp/progmodes/meta-mode.el7
-rw-r--r--lisp/progmodes/sh-script.el10
-rw-r--r--lisp/progmodes/tcl.el4
-rw-r--r--lisp/progmodes/vhdl-mode.el7
-rw-r--r--lisp/progmodes/xscheme.el8
-rw-r--r--lisp/simple.el8
-rw-r--r--lisp/speedbar.el7
-rw-r--r--lisp/term.el11
-rw-r--r--lisp/textmodes/fill.el8
-rw-r--r--lisp/textmodes/ispell.el3
-rw-r--r--lisp/vc/emerge.el6
42 files changed, 181 insertions, 253 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 0a61c68e53a..0d04dd14b5a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,48 @@
12010-11-09 Glenn Morris <rgm@gnu.org>
2
3 * vc/emerge.el (emerge-line-number-in-buf):
4 * textmodes/ispell.el (ispell-region):
5 * textmodes/fill.el (current-fill-column):
6 * progmodes/xscheme.el (xscheme-send-current-line):
7 * progmodes/vhdl-mode.el (vhdl-current-line, vhdl-line-copy):
8 * progmodes/tcl.el (tcl-hairy-scan-for-comment):
9 * progmodes/sh-script.el (sh-handle-prev-do):
10 * progmodes/meta-mode.el (meta-indent-line):
11 * progmodes/idlwave.el (idlwave-goto-comment, idlwave-fill-paragraph)
12 (idlwave-in-quote):
13 * progmodes/idlw-shell.el (idlwave-shell-current-frame)
14 (idlwave-shell-update-bp-overlays, idlwave-shell-sources-filter):
15 * progmodes/fortran.el (fortran-looking-at-if-then):
16 * progmodes/etags.el (find-tag-in-order, etags-snarf-tag):
17 * progmodes/cperl-mode.el (cperl-sniff-for-indent)
18 (cperl-find-pods-heres):
19 * progmodes/ada-mode.el (ada-get-current-indent, ada-narrow-to-defun):
20 * net/quickurl.el (quickurl-list-insert):
21 * net/ldap.el (ldap-search-internal):
22 * net/eudc.el (eudc-expand-inline):
23 * mail/sendmail.el (sendmail-send-it):
24 * mail/mspools.el (mspools-visit-spool, mspools-get-spool-name):
25 * emulation/viper-cmd.el (viper-paren-match, viper-backward-indent)
26 (viper-brac-function):
27 * calc/calc-yank.el (calc-do-grab-region):
28 * calc/calc-keypd.el (calc-keypad-press):
29 * term.el (term-move-columns, term-insert-spaces):
30 * speedbar.el (speedbar-highlight-one-tag-line):
31 * simple.el (current-word):
32 * mouse-drag.el (mouse-drag-should-do-col-scrolling):
33 * info.el (Info-find-node-in-buffer-1, Info-follow-reference)
34 (Info-scroll-down):
35 * hippie-exp.el (he-line-beg):
36 * epa.el (epa--marked-keys):
37 * dired-aux.el (dired-kill-line, dired-do-kill-lines)
38 (dired-update-file-line, dired-add-entry, dired-remove-entry)
39 (dired-relist-entry):
40 * buff-menu.el (Buffer-menu-buffer):
41 * array.el (current-line):
42 * allout.el (allout-resolve-xref)
43 (allout-latex-verbatim-quote-curr-line):
44 Replace yet more uses of end-of-line etc with line-end-position, etc.
45
12010-11-08 Stefan Monnier <monnier@iro.umontreal.ca> 462010-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
2 47
3 * emacs-lisp/checkdoc.el (checkdoc-display-status-buffer) 48 * emacs-lisp/checkdoc.el (checkdoc-display-status-buffer)
diff --git a/lisp/allout.el b/lisp/allout.el
index 5c7577d5353..4d003900cbc 100644
--- a/lisp/allout.el
+++ b/lisp/allout.el
@@ -1,7 +1,7 @@
1;;; allout.el --- extensive outline mode for use alone and with other modes 1;;; allout.el --- extensive outline mode for use alone and with other modes
2 2
3;; Copyright (C) 1992, 1993, 1994, 2001, 2002, 2003, 2004, 2005, 3;; Copyright (C) 1992, 1993, 1994, 2001, 2002, 2003, 2004, 2005, 2006,
4;; 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 4;; 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
5 5
6;; Author: Ken Manheimer <ken dot manheimer at gmail dot com> 6;; Author: Ken Manheimer <ken dot manheimer at gmail dot com>
7;; Maintainer: Ken Manheimer <ken dot manheimer at gmail dot com> 7;; Maintainer: Ken Manheimer <ken dot manheimer at gmail dot com>
@@ -4725,7 +4725,7 @@ by pops to non-distinctive yanks. Bug..."
4725 (save-match-data 4725 (save-match-data
4726 (save-excursion 4726 (save-excursion
4727 (let* ((text-start allout-recent-prefix-end) 4727 (let* ((text-start allout-recent-prefix-end)
4728 (heading-end (progn (end-of-line) (point)))) 4728 (heading-end (point-at-eol)))
4729 (goto-char text-start) 4729 (goto-char text-start)
4730 (setq file-name 4730 (setq file-name
4731 (if (re-search-forward "\\s-\\(\\S-*\\)" heading-end t) 4731 (if (re-search-forward "\\s-\\(\\S-*\\)" heading-end t)
@@ -5672,8 +5672,7 @@ environment. Leaves point at the end of the line."
5672 (let ((inhibit-field-text-motion t)) 5672 (let ((inhibit-field-text-motion t))
5673 (beginning-of-line) 5673 (beginning-of-line)
5674 (let ((beg (point)) 5674 (let ((beg (point))
5675 (end (progn (end-of-line)(point)))) 5675 (end (point-at-eol)))
5676 (goto-char beg)
5677 (save-match-data 5676 (save-match-data
5678 (while (re-search-forward "\\\\" 5677 (while (re-search-forward "\\\\"
5679 ;;"\\\\\\|\\{\\|\\}\\|\\_\\|\\$\\|\\\"\\|\\&\\|\\^\\|\\-\\|\\*\\|#" 5678 ;;"\\\\\\|\\{\\|\\}\\|\\_\\|\\$\\|\\\"\\|\\&\\|\\^\\|\\-\\|\\*\\|#"
@@ -6941,7 +6940,7 @@ To ignore intangibility, bind `inhibit-point-motion-hooks' to t."
6941 (skip-chars-backward "^\n")) 6940 (skip-chars-backward "^\n"))
6942 (vertical-motion 0)) 6941 (vertical-motion 0))
6943) 6942)
6944;;;_ > move-end-of-line if necessary -- older emacs, xemacs 6943;;;_ > move-end-of-line if necessary -- Emacs < 22.1, xemacs
6945(if (not (fboundp 'move-end-of-line)) 6944(if (not (fboundp 'move-end-of-line))
6946 (defun move-end-of-line (arg) 6945 (defun move-end-of-line (arg)
6947 "Move point to end of current line as displayed. 6946 "Move point to end of current line as displayed.
@@ -7147,5 +7146,4 @@ To ignore intangibility, bind `inhibit-point-motion-hooks' to t."
7147;;allout-layout: (0 : -1 -1 0) 7146;;allout-layout: (0 : -1 -1 0)
7148;;End: 7147;;End:
7149 7148
7150;; arch-tag: cf38fbc3-c044-450f-8bff-afed8ba5681c
7151;;; allout.el ends here 7149;;; allout.el ends here
diff --git a/lisp/array.el b/lisp/array.el
index d22d58ca059..1f04e8ef724 100644
--- a/lisp/array.el
+++ b/lisp/array.el
@@ -1,7 +1,7 @@
1;;; array.el --- array editing commands for GNU Emacs 1;;; array.el --- array editing commands for GNU Emacs
2 2
3;; Copyright (C) 1987, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 3;; Copyright (C) 1987, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
4;; 2008, 2009, 2010 Free Software Foundation, Inc. 4;; 2008, 2009, 2010 Free Software Foundation, Inc.
5 5
6;; Author: David M. Brown 6;; Author: David M. Brown
7;; Maintainer: FSF 7;; Maintainer: FSF
@@ -748,9 +748,7 @@ of `array-rows-numbered'."
748 748
749(defun current-line () 749(defun current-line ()
750 "Return the current buffer line at point. The first line is 0." 750 "Return the current buffer line at point. The first line is 0."
751 (save-excursion 751 (count-lines (point-min) (line-beginning-position)))
752 (beginning-of-line)
753 (count-lines (point-min) (point))))
754 752
755(defun move-to-column-untabify (column) 753(defun move-to-column-untabify (column)
756 "Move to COLUMN on the current line, untabifying if necessary. 754 "Move to COLUMN on the current line, untabifying if necessary.
@@ -903,5 +901,4 @@ Entering array mode calls the function `array-mode-hook'."
903 901
904(provide 'array) 902(provide 'array)
905 903
906;; arch-tag: 0086605d-79fe-4a1a-992a-456417261f80
907;;; array.el ends here 904;;; array.el ends here
diff --git a/lisp/buff-menu.el b/lisp/buff-menu.el
index e0f00d3553d..21fdada22c2 100644
--- a/lisp/buff-menu.el
+++ b/lisp/buff-menu.el
@@ -1,7 +1,8 @@
1;;; buff-menu.el --- buffer menu main function and support functions -*- coding:utf-8 -*- 1;;; buff-menu.el --- buffer menu main function and support functions -*- coding:utf-8 -*-
2 2
3;; Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 2000, 2001, 2002, 2003, 3;; Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 2000, 2001, 2002,
4;; 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;; Maintainer: FSF 7;; Maintainer: FSF
7;; Keywords: convenience 8;; Keywords: convenience
@@ -303,9 +304,7 @@ negative ARG, display other buffers as well."
303 304
304(defun Buffer-menu-buffer (error-if-non-existent-p) 305(defun Buffer-menu-buffer (error-if-non-existent-p)
305 "Return buffer described by this line of buffer menu." 306 "Return buffer described by this line of buffer menu."
306 (let* ((where (save-excursion 307 (let* ((where (+ (line-beginning-position) Buffer-menu-buffer-column))
307 (beginning-of-line)
308 (+ (point) Buffer-menu-buffer-column)))
309 (name (and (not (eobp)) (get-text-property where 'buffer-name))) 308 (name (and (not (eobp)) (get-text-property where 'buffer-name)))
310 (buf (and (not (eobp)) (get-text-property where 'buffer)))) 309 (buf (and (not (eobp)) (get-text-property where 'buffer))))
311 (if name 310 (if name
@@ -924,5 +923,4 @@ For more information, see the function `buffer-menu'."
924 (set-buffer-modified-p nil) 923 (set-buffer-modified-p nil)
925 (current-buffer)))) 924 (current-buffer))))
926 925
927;; arch-tag: e7dfcfc9-6cb2-46e4-bf55-8ef1936d83c6
928;;; buff-menu.el ends here 926;;; buff-menu.el ends here
diff --git a/lisp/calc/calc-keypd.el b/lisp/calc/calc-keypd.el
index e4dc5f5a88b..f0a37ad3b74 100644
--- a/lisp/calc/calc-keypd.el
+++ b/lisp/calc/calc-keypd.el
@@ -1,7 +1,7 @@
1;;; calc-keypd.el --- mouse-capable keypad input for Calc 1;;; calc-keypd.el --- mouse-capable keypad input for Calc
2 2
3;; Copyright (C) 1990, 1991, 1992, 1993, 2001, 2002, 2003, 2004, 3;; Copyright (C) 1990, 1991, 1992, 1993, 2001, 2002, 2003, 2004, 2005,
4;; 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 4;; 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
5 5
6;; Author: David Gillespie <daveg@synaptics.com> 6;; Author: David Gillespie <daveg@synaptics.com>
7;; Maintainer: Jay Belanger <jay.p.belanger@gmail.com> 7;; Maintainer: Jay Belanger <jay.p.belanger@gmail.com>
@@ -390,9 +390,7 @@
390 (interactive) 390 (interactive)
391 (unless (eq major-mode 'calc-keypad-mode) 391 (unless (eq major-mode 'calc-keypad-mode)
392 (error "Must be in *Calc Keypad* buffer for this command")) 392 (error "Must be in *Calc Keypad* buffer for this command"))
393 (let* ((row (save-excursion 393 (let* ((row (count-lines (point-min) (point-at-bol)))
394 (beginning-of-line)
395 (count-lines (point-min) (point))))
396 (y (/ row 2)) 394 (y (/ row 2))
397 (x (/ (current-column) (if (>= y 4) 6 5))) 395 (x (/ (current-column) (if (>= y 4) 6 5)))
398 radix frac inv 396 radix frac inv
@@ -619,5 +617,4 @@
619 617
620(provide 'calc-keypd) 618(provide 'calc-keypd)
621 619
622;; arch-tag: 4ba0d360-2bb6-40b8-adfa-eb373765b3f9
623;;; calc-keypd.el ends here 620;;; calc-keypd.el ends here
diff --git a/lisp/calc/calc-yank.el b/lisp/calc/calc-yank.el
index 63b3cb03322..0588f31de15 100644
--- a/lisp/calc/calc-yank.el
+++ b/lisp/calc/calc-yank.el
@@ -1,7 +1,7 @@
1;;; calc-yank.el --- kill-ring functionality for Calc 1;;; calc-yank.el --- kill-ring functionality for Calc
2 2
3;; Copyright (C) 1990, 1991, 1992, 1993, 2001, 2002, 2003, 2004, 3;; Copyright (C) 1990, 1991, 1992, 1993, 2001, 2002, 2003, 2004, 2005,
4;; 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 4;; 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
5 5
6;; Author: David Gillespie <daveg@synaptics.com> 6;; Author: David Gillespie <daveg@synaptics.com>
7;; Maintainer: Jay Belanger <jay.p.belanger@gmail.com> 7;; Maintainer: Jay Belanger <jay.p.belanger@gmail.com>
@@ -282,11 +282,8 @@ With prefix arg, also delete the region."
282 (setq single t) 282 (setq single t)
283 (setq arg (prefix-numeric-value arg)) 283 (setq arg (prefix-numeric-value arg))
284 (if (= arg 0) 284 (if (= arg 0)
285 (save-excursion 285 (setq top (point-at-bol)
286 (beginning-of-line) 286 bot (point-at-eol))
287 (setq top (point))
288 (end-of-line)
289 (setq bot (point)))
290 (save-excursion 287 (save-excursion
291 (setq top (point)) 288 (setq top (point))
292 (forward-line arg) 289 (forward-line arg)
@@ -713,5 +710,4 @@ To cancel the edit, simply kill the *Calc Edit* buffer."
713;; generated-autoload-file: "calc-loaddefs.el" 710;; generated-autoload-file: "calc-loaddefs.el"
714;; End: 711;; End:
715 712
716;; arch-tag: ca61019e-caca-4daa-b32c-b6afe372d5b5
717;;; calc-yank.el ends here 713;;; calc-yank.el ends here
diff --git a/lisp/cedet/ChangeLog b/lisp/cedet/ChangeLog
index 6bbadc8a5ee..d225d8d15fe 100644
--- a/lisp/cedet/ChangeLog
+++ b/lisp/cedet/ChangeLog
@@ -1,3 +1,12 @@
12010-11-09 Glenn Morris <rgm@gnu.org>
2
3 * semantic/lex.el (semantic-lex-ignore-comments, semantic-flex):
4 * semantic/grammar.el (semantic-grammar-epilogue):
5 * ede/speedbar.el (ede-find-nearest-file-line):
6 * ede/pmake.el (ede-proj-makefile-insert-dist-rules):
7 * ede/autoconf-edit.el (autoconf-delete-parameter):
8 Use point-at-bol and point-at-eol.
9
12010-11-07 Glenn Morris <rgm@gnu.org> 102010-11-07 Glenn Morris <rgm@gnu.org>
2 11
3 * ede/proj-elisp.el (ede-proj-flush-autoconf): Use point-at-bol. 12 * ede/proj-elisp.el (ede-proj-flush-autoconf): Use point-at-bol.
diff --git a/lisp/cedet/ede/autoconf-edit.el b/lisp/cedet/ede/autoconf-edit.el
index df976bf17af..7f96699a07e 100644
--- a/lisp/cedet/ede/autoconf-edit.el
+++ b/lisp/cedet/ede/autoconf-edit.el
@@ -1,6 +1,7 @@
1;;; ede/autoconf-edit.el --- Keymap for autoconf 1;;; ede/autoconf-edit.el --- Keymap for autoconf
2 2
3;; Copyright (C) 1998, 1999, 2000, 2009, 2010 Free Software Foundation, Inc. 3;; Copyright (C) 1998, 1999, 2000, 2009, 2010
4;; Free Software Foundation, Inc.
4 5
5;; Author: Eric M. Ludlam <zappo@gnu.org> 6;; Author: Eric M. Ludlam <zappo@gnu.org>
6;; Keywords: project 7;; Keywords: project
@@ -381,9 +382,7 @@ INDEX starts at 1."
381 (down-list 1) 382 (down-list 1)
382 (re-search-forward ", ?" nil nil (1- index)) 383 (re-search-forward ", ?" nil nil (1- index))
383 (let ((end (save-excursion 384 (let ((end (save-excursion
384 (re-search-forward ",\\|)" (save-excursion 385 (re-search-forward ",\\|)" (point-at-eol))
385 (end-of-line)
386 (point)))
387 (forward-char -1) 386 (forward-char -1)
388 (point)))) 387 (point))))
389 (setq autoconf-deleted-text (buffer-substring (point) end)) 388 (setq autoconf-deleted-text (buffer-substring (point) end))
@@ -417,5 +416,4 @@ to Makefiles, or other files using Autoconf substitution."
417 416
418(provide 'ede/autoconf-edit) 417(provide 'ede/autoconf-edit)
419 418
420;; arch-tag: 5932c433-4fd4-4d5e-ab35-8effd95a405f
421;;; ede/autoconf-edit.el ends here 419;;; ede/autoconf-edit.el ends here
diff --git a/lisp/cedet/ede/pmake.el b/lisp/cedet/ede/pmake.el
index 94874d031b7..b8e7c5f61a6 100644
--- a/lisp/cedet/ede/pmake.el
+++ b/lisp/cedet/ede/pmake.el
@@ -1,7 +1,7 @@
1;;; ede-pmake.el --- EDE Generic Project Makefile code generator. 1;;; ede-pmake.el --- EDE Generic Project Makefile code generator.
2 2
3;;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 3;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007,
4;;; 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 4;; 2008, 2009, 2010 Free Software Foundation, Inc.
5 5
6;; Author: Eric M. Ludlam <zappo@gnu.org> 6;; Author: Eric M. Ludlam <zappo@gnu.org>
7;; Keywords: project, make 7;; Keywords: project, make
@@ -565,10 +565,7 @@ Argument THIS is the target that should insert stuff."
565 (cond ((eq (cdr sv) 'share) 565 (cond ((eq (cdr sv) 'share)
566 ;; This variable may be shared between multiple targets. 566 ;; This variable may be shared between multiple targets.
567 (if (re-search-backward (concat "\\$(" (car sv) ")") 567 (if (re-search-backward (concat "\\$(" (car sv) ")")
568 (save-excursion 568 (point-at-bol) t)
569 (beginning-of-line)
570 (point))
571 t)
572 ;; If its already in the dist target, then skip it. 569 ;; If its already in the dist target, then skip it.
573 nil 570 nil
574 (setq sv (car sv)))) 571 (setq sv (car sv))))
@@ -693,5 +690,4 @@ Argument TARGETS are the targets we should depend on for TAGS."
693 690
694(provide 'ede/pmake) 691(provide 'ede/pmake)
695 692
696;; arch-tag: 7ad8e19f-cdee-484c-8caf-f15cb0fc4df2
697;;; ede/pmake.el ends here 693;;; ede/pmake.el ends here
diff --git a/lisp/cedet/ede/speedbar.el b/lisp/cedet/ede/speedbar.el
index 466705175ed..8658a654b16 100644
--- a/lisp/cedet/ede/speedbar.el
+++ b/lisp/cedet/ede/speedbar.el
@@ -1,7 +1,7 @@
1;;; ede/speedbar.el --- Speedbar viewing of EDE projects 1;;; ede/speedbar.el --- Speedbar viewing of EDE projects
2 2
3;;; Copyright (C) 1998, 1999, 2000, 2001, 2003, 2005, 2007, 2008, 2009, 2010 3;; Copyright (C) 1998, 1999, 2000, 2001, 2003, 2005, 2007, 2008,
4;;; Free Software Foundation, Inc. 4;; 2009, 2010 Free Software Foundation, Inc.
5 5
6;; Author: Eric M. Ludlam <zappo@gnu.org> 6;; Author: Eric M. Ludlam <zappo@gnu.org>
7;; Keywords: project, make, tags 7;; Keywords: project, make, tags
@@ -176,10 +176,7 @@ Argument DIR is the directory from which to derive the list of objects."
176 (beginning-of-line) 176 (beginning-of-line)
177 (looking-at "^\\([0-9]+\\):") 177 (looking-at "^\\([0-9]+\\):")
178 (let ((depth (string-to-number (match-string 1)))) 178 (let ((depth (string-to-number (match-string 1))))
179 (while (not (re-search-forward "[]] [^ ]" 179 (while (not (re-search-forward "[]] [^ ]" (point-at-eol) t))
180 (save-excursion (end-of-line)
181 (point))
182 t))
183 (re-search-backward (format "^%d:" (1- depth))) 180 (re-search-backward (format "^%d:" (1- depth)))
184 (setq depth (1- depth))) 181 (setq depth (1- depth)))
185 (speedbar-line-token)))) 182 (speedbar-line-token))))
@@ -358,5 +355,4 @@ INDENT is the current indentation level."
358;; generated-autoload-load-name: "ede/speedbar" 355;; generated-autoload-load-name: "ede/speedbar"
359;; End: 356;; End:
360 357
361;; arch-tag: 56721fc9-8eb5-4115-8511-18cf8397ec87
362;;; ede/speedbar.el ends here 358;;; ede/speedbar.el ends here
diff --git a/lisp/cedet/semantic/grammar.el b/lisp/cedet/semantic/grammar.el
index d99ae0cb0ac..513c211ee75 100644
--- a/lisp/cedet/semantic/grammar.el
+++ b/lisp/cedet/semantic/grammar.el
@@ -248,10 +248,7 @@ That is tag names plus names defined in tag attribute `:rest'."
248 (skip-chars-backward "\r\n\t") 248 (skip-chars-backward "\r\n\t")
249 ;; If a grammar footer is found, skip it. 249 ;; If a grammar footer is found, skip it.
250 (re-search-backward "^;;;\\s-+\\S-+\\s-+ends here" 250 (re-search-backward "^;;;\\s-+\\S-+\\s-+ends here"
251 (save-excursion 251 (point-at-bol) t)
252 (beginning-of-line)
253 (point))
254 t)
255 (skip-chars-backward "\r\n\t") 252 (skip-chars-backward "\r\n\t")
256 (point))) 253 (point)))
257 "\n")) 254 "\n"))
@@ -1897,5 +1894,4 @@ Optional argument COLOR determines if color is added to the text."
1897 1894
1898(provide 'semantic/grammar) 1895(provide 'semantic/grammar)
1899 1896
1900;; arch-tag: 12ffc9d5-557d-49af-a5fd-a66a006ddb3e
1901;;; semantic/grammar.el ends here 1897;;; semantic/grammar.el ends here
diff --git a/lisp/cedet/semantic/lex.el b/lisp/cedet/semantic/lex.el
index e0fed29b4fa..34663727a0b 100644
--- a/lisp/cedet/semantic/lex.el
+++ b/lisp/cedet/semantic/lex.el
@@ -1427,10 +1427,7 @@ Return either a paren token or a semantic list token depending on
1427 ;; to work properly. Lets try and move over 1427 ;; to work properly. Lets try and move over
1428 ;; whatever white space we matched to begin 1428 ;; whatever white space we matched to begin
1429 ;; with. 1429 ;; with.
1430 (skip-syntax-forward "-.'" 1430 (skip-syntax-forward "-.'" (point-at-eol))
1431 (save-excursion
1432 (end-of-line)
1433 (point)))
1434 ;; We may need to back up so newlines or whitespace is generated. 1431 ;; We may need to back up so newlines or whitespace is generated.
1435 (if (bolp) 1432 (if (bolp)
1436 (backward-char 1))) 1433 (backward-char 1)))
@@ -1997,10 +1994,7 @@ return LENGTH tokens."
1997 ;; to work properly. Lets try and move over 1994 ;; to work properly. Lets try and move over
1998 ;; whatever white space we matched to begin 1995 ;; whatever white space we matched to begin
1999 ;; with. 1996 ;; with.
2000 (skip-syntax-forward "-.'" 1997 (skip-syntax-forward "-.'" (point-at-eol))
2001 (save-excursion
2002 (end-of-line)
2003 (point)))
2004 ;;(forward-comment 1) 1998 ;;(forward-comment 1)
2005 ;; Generate newline token if enabled 1999 ;; Generate newline token if enabled
2006 (if (and semantic-flex-enable-newlines 2000 (if (and semantic-flex-enable-newlines
@@ -2049,5 +2043,4 @@ return LENGTH tokens."
2049;; generated-autoload-load-name: "semantic/lex" 2043;; generated-autoload-load-name: "semantic/lex"
2050;; End: 2044;; End:
2051 2045
2052;; arch-tag: a47664fc-48d9-4b36-921f-cab0ea8cdf92
2053;;; semantic/lex.el ends here 2046;;; semantic/lex.el ends here
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el
index f4b79414c6a..764d13f5a9c 100644
--- a/lisp/dired-aux.el
+++ b/lisp/dired-aux.el
@@ -1,7 +1,8 @@
1;;; dired-aux.el --- less commonly used parts of dired 1;;; dired-aux.el --- less commonly used parts of dired
2 2
3;; Copyright (C) 1985, 1986, 1992, 1994, 1998, 2000, 2001, 2002, 2003, 3;; Copyright (C) 1985, 1986, 1992, 1994, 1998, 2000, 2001, 2002, 2003,
4;; 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 4;; 2004, 2005, 2006, 2007, 2008, 2009, 2010
5;; Free Software Foundation, Inc.
5 6
6;; Author: Sebastian Kremer <sk@thp.uni-koeln.de>. 7;; Author: Sebastian Kremer <sk@thp.uni-koeln.de>.
7;; Maintainer: FSF 8;; Maintainer: FSF
@@ -700,7 +701,7 @@ can be produced by `dired-get-marked-files', for example."
700 (save-excursion (and file 701 (save-excursion (and file
701 (dired-goto-subdir file) 702 (dired-goto-subdir file)
702 (dired-kill-subdir))) 703 (dired-kill-subdir)))
703 (delete-region (progn (beginning-of-line) (point)) 704 (delete-region (line-beginning-position)
704 (progn (forward-line 1) (point))) 705 (progn (forward-line 1) (point)))
705 (if (> arg 0) 706 (if (> arg 0)
706 (setq arg (1- arg)) 707 (setq arg (1- arg))
@@ -734,7 +735,7 @@ command with a prefix argument (the value does not matter)."
734 (while (and (not (eobp)) 735 (while (and (not (eobp))
735 (re-search-forward regexp nil t)) 736 (re-search-forward regexp nil t))
736 (setq count (1+ count)) 737 (setq count (1+ count))
737 (delete-region (progn (beginning-of-line) (point)) 738 (delete-region (line-beginning-position)
738 (progn (forward-line 1) (point)))) 739 (progn (forward-line 1) (point))))
739 (or (equal "" fmt) 740 (or (equal "" fmt)
740 (message (or fmt "Killed %d line%s.") count (dired-plural-s count))) 741 (message (or fmt "Killed %d line%s.") count (dired-plural-s count)))
@@ -1037,10 +1038,10 @@ See Info node `(emacs)Subdir switches' for more details."
1037 ;; Keeps any marks that may be present in column one (doing this 1038 ;; Keeps any marks that may be present in column one (doing this
1038 ;; here is faster than with dired-add-entry's optional arg). 1039 ;; here is faster than with dired-add-entry's optional arg).
1039 ;; Does not update other dired buffers. Use dired-relist-entry for that. 1040 ;; Does not update other dired buffers. Use dired-relist-entry for that.
1040 (beginning-of-line) 1041 (let ((char (following-char))
1041 (let ((char (following-char)) (opoint (point)) 1042 (opoint (line-beginning-position))
1042 (buffer-read-only)) 1043 (buffer-read-only))
1043 (delete-region (point) (progn (forward-line 1) (point))) 1044 (delete-region opoint (progn (forward-line 1) (point)))
1044 (if file 1045 (if file
1045 (progn 1046 (progn
1046 (dired-add-entry file nil t) 1047 (dired-add-entry file nil t)
@@ -1133,8 +1134,7 @@ See Info node `(emacs)Subdir switches' for more details."
1133 (save-excursion ;; ...so we can run it right now: 1134 (save-excursion ;; ...so we can run it right now:
1134 (save-restriction 1135 (save-restriction
1135 (beginning-of-line) 1136 (beginning-of-line)
1136 (narrow-to-region (point) (save-excursion 1137 (narrow-to-region (point) (line-beginning-position 2))
1137 (forward-line 1) (point)))
1138 (run-hooks 'dired-after-readin-hook)))) 1138 (run-hooks 'dired-after-readin-hook))))
1139 (dired-move-to-filename)) 1139 (dired-move-to-filename))
1140 ;; return nil if all went well 1140 ;; return nil if all went well
@@ -1167,7 +1167,7 @@ See Info node `(emacs)Subdir switches' for more details."
1167 (and (dired-goto-file file) 1167 (and (dired-goto-file file)
1168 (let (buffer-read-only) 1168 (let (buffer-read-only)
1169 (delete-region (progn (beginning-of-line) (point)) 1169 (delete-region (progn (beginning-of-line) (point))
1170 (save-excursion (forward-line 1) (point))))))) 1170 (line-beginning-position 2))))))
1171 1171
1172;;;###autoload 1172;;;###autoload
1173(defun dired-relist-file (file) 1173(defun dired-relist-file (file)
@@ -1188,7 +1188,7 @@ See Info node `(emacs)Subdir switches' for more details."
1188 (delete-region (progn (beginning-of-line) 1188 (delete-region (progn (beginning-of-line)
1189 (setq marker (following-char)) 1189 (setq marker (following-char))
1190 (point)) 1190 (point))
1191 (save-excursion (forward-line 1) (point)))) 1191 (line-beginning-position 2)))
1192 (setq file (directory-file-name file)) 1192 (setq file (directory-file-name file))
1193 (dired-add-entry file (if (eq ?\040 marker) nil marker))))) 1193 (dired-add-entry file (if (eq ?\040 marker) nil marker)))))
1194 1194
@@ -2482,5 +2482,4 @@ true then the type of the file linked to by FILE is printed instead."
2482;; generated-autoload-file: "dired.el" 2482;; generated-autoload-file: "dired.el"
2483;; End: 2483;; End:
2484 2484
2485;; arch-tag: 4b508de9-a153-423d-8d3f-a1bbd86f4f60
2486;;; dired-aux.el ends here 2485;;; dired-aux.el ends here
diff --git a/lisp/emulation/viper-cmd.el b/lisp/emulation/viper-cmd.el
index 25c3934485c..4e90889ddd0 100644
--- a/lisp/emulation/viper-cmd.el
+++ b/lisp/emulation/viper-cmd.el
@@ -3498,11 +3498,8 @@ controlled by the sign of prefix numeric value."
3498 (if (and (eolp) (not (bolp))) (forward-char -1)) 3498 (if (and (eolp) (not (bolp))) (forward-char -1))
3499 (if (not (looking-at "[][(){}]")) 3499 (if (not (looking-at "[][(){}]"))
3500 (setq anchor-point (point))) 3500 (setq anchor-point (point)))
3501 (save-excursion 3501 (setq beg-lim (point-at-bol)
3502 (beginning-of-line) 3502 end-lim (point-at-eol))
3503 (setq beg-lim (point))
3504 (end-of-line)
3505 (setq end-lim (point)))
3506 (cond ((re-search-forward "[][(){}]" end-lim t) 3503 (cond ((re-search-forward "[][(){}]" end-lim t)
3507 (backward-char) ) 3504 (backward-char) )
3508 ((re-search-backward "[][(){}]" beg-lim t)) 3505 ((re-search-backward "[][(){}]" beg-lim t))
@@ -4625,9 +4622,7 @@ One can use `` and '' to temporarily jump 1 step back."
4625 (delete-char -1) 4622 (delete-char -1)
4626 (setq p (point)) 4623 (setq p (point))
4627 (setq indent nil))) 4624 (setq indent nil)))
4628 (save-excursion 4625 (setq bol (point-at-bol))
4629 (beginning-of-line)
4630 (setq bol (point)))
4631 (if (re-search-backward "[^ \t]" bol 1) (forward-char)) 4626 (if (re-search-backward "[^ \t]" bol 1) (forward-char))
4632 (delete-region (point) p) 4627 (delete-region (point) p)
4633 (if indent 4628 (if indent
@@ -4711,9 +4706,7 @@ One can use `` and '' to temporarily jump 1 step back."
4711 (goto-char pos) 4706 (goto-char pos)
4712 (beginning-of-line) 4707 (beginning-of-line)
4713 (if (re-search-backward "[^ \t]" nil t) 4708 (if (re-search-backward "[^ \t]" nil t)
4714 (progn 4709 (setq s (point-at-bol)))
4715 (beginning-of-line)
4716 (setq s (point))))
4717 (goto-char pos) 4710 (goto-char pos)
4718 (forward-line 1) 4711 (forward-line 1)
4719 (if (re-search-forward "[^ \t]" nil t) 4712 (if (re-search-forward "[^ \t]" nil t)
diff --git a/lisp/epa.el b/lisp/epa.el
index ca0f07d5bae..687a31a8c3a 100644
--- a/lisp/epa.el
+++ b/lisp/epa.el
@@ -1,5 +1,7 @@
1;;; epa.el --- the EasyPG Assistant 1;;; epa.el --- the EasyPG Assistant
2;; Copyright (C) 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 2
3;; Copyright (C) 2006, 2007, 2008, 2009, 2010
4;; Free Software Foundation, Inc.
3 5
4;; Author: Daiki Ueno <ueno@unixuser.org> 6;; Author: Daiki Ueno <ueno@unixuser.org>
5;; Keywords: PGP, GnuPG 7;; Keywords: PGP, GnuPG
@@ -471,11 +473,9 @@ If ARG is non-nil, mark the key."
471 'epa-key)) 473 'epa-key))
472 (setq keys (cons key keys)))) 474 (setq keys (cons key keys))))
473 (nreverse keys))) 475 (nreverse keys)))
474 (save-excursion 476 (let ((key (get-text-property (point-at-bol) 'epa-key)))
475 (beginning-of-line) 477 (if key
476 (let ((key (get-text-property (point) 'epa-key))) 478 (list key)))))
477 (if key
478 (list key))))))
479 479
480(defun epa--select-keys (prompt keys) 480(defun epa--select-keys (prompt keys)
481 (unless (and epa-keys-buffer 481 (unless (and epa-keys-buffer
@@ -1251,5 +1251,4 @@ between START and END."
1251 1251
1252(provide 'epa) 1252(provide 'epa)
1253 1253
1254;; arch-tag: 38d20ced-20d5-4137-b17a-f206335423d7
1255;;; epa.el ends here 1254;;; epa.el ends here
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 81c83e4a988..01c2e352913 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,8 @@
12010-11-09 Glenn Morris <rgm@gnu.org>
2
3 * nnbabyl.el (nnbabyl-request-move-article, nnbabyl-delete-mail)
4 (nnbabyl-check-mbox): Use point-at-bol.
5
12010-11-09 Katsumi Yamaoka <yamaoka@jpl.org> 62010-11-09 Katsumi Yamaoka <yamaoka@jpl.org>
2 7
3 * message.el (message-subject-trailing-was-regexp): Fix default value. 8 * message.el (message-subject-trailing-was-regexp): Fix default value.
diff --git a/lisp/gnus/nnbabyl.el b/lisp/gnus/nnbabyl.el
index 8f1f6ec7bc3..6e91517baab 100644
--- a/lisp/gnus/nnbabyl.el
+++ b/lisp/gnus/nnbabyl.el
@@ -1,7 +1,8 @@
1;;; nnbabyl.el --- rmail mbox access for Gnus 1;;; nnbabyl.el --- rmail mbox access for Gnus
2 2
3;; Copyright (C) 1995, 1996, 1997, 1998, 1099, 2000, 2001, 2002, 2003, 3;; Copyright (C) 1995, 1996, 1997, 1998, 1099, 2000, 2001, 2002, 2003,
4;; 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 4;; 2004, 2005, 2006, 2007, 2008, 2009, 2010
5;; Free Software Foundation, Inc.
5 6
6;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> 7;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
7;; Masanobu UMEDA <umerin@flab.flab.fujitsu.junet> 8;; Masanobu UMEDA <umerin@flab.flab.fujitsu.junet>
@@ -309,8 +310,7 @@
309 (while (re-search-forward 310 (while (re-search-forward
310 "^X-Gnus-Newsgroup:" 311 "^X-Gnus-Newsgroup:"
311 (save-excursion (search-forward "\n\n" nil t) (point)) t) 312 (save-excursion (search-forward "\n\n" nil t) (point)) t)
312 (delete-region (progn (beginning-of-line) (point)) 313 (delete-region (point-at-bol) (progn (forward-line 1) (point))))
313 (progn (forward-line 1) (point))))
314 (setq result (eval accept-form)) 314 (setq result (eval accept-form))
315 (kill-buffer (current-buffer)) 315 (kill-buffer (current-buffer))
316 result) 316 result)
@@ -427,9 +427,7 @@
427(defun nnbabyl-delete-mail (&optional force leave-delim) 427(defun nnbabyl-delete-mail (&optional force leave-delim)
428 ;; Delete the current X-Gnus-Newsgroup line. 428 ;; Delete the current X-Gnus-Newsgroup line.
429 (unless force 429 (unless force
430 (delete-region 430 (delete-region (point-at-bol) (progn (forward-line 1) (point))))
431 (progn (beginning-of-line) (point))
432 (progn (forward-line 1) (point))))
433 ;; Beginning of the article. 431 ;; Beginning of the article.
434 (save-excursion 432 (save-excursion
435 (save-restriction 433 (save-restriction
@@ -639,8 +637,7 @@
639 (while (re-search-forward "^X-Gnus-Newsgroup: \\([^ ]+\\) " nil t) 637 (while (re-search-forward "^X-Gnus-Newsgroup: \\([^ ]+\\) " nil t)
640 (if (intern-soft (setq id (match-string 1)) idents) 638 (if (intern-soft (setq id (match-string 1)) idents)
641 (progn 639 (progn
642 (delete-region (progn (beginning-of-line) (point)) 640 (delete-region (point-at-bol) (progn (forward-line 1) (point)))
643 (progn (forward-line 1) (point)))
644 (nnheader-message 7 "Moving %s..." id) 641 (nnheader-message 7 "Moving %s..." id)
645 (nnbabyl-save-mail 642 (nnbabyl-save-mail
646 (nnmail-article-group 'nnbabyl-active-number))) 643 (nnmail-article-group 'nnbabyl-active-number)))
diff --git a/lisp/hippie-exp.el b/lisp/hippie-exp.el
index 68c8f70cae3..2533587bcc5 100644
--- a/lisp/hippie-exp.el
+++ b/lisp/hippie-exp.el
@@ -716,8 +716,7 @@ string). It returns t if a new completion is found, nil otherwise."
716(defun he-line-beg (strip-prompt) 716(defun he-line-beg (strip-prompt)
717 (save-excursion 717 (save-excursion
718 (if (re-search-backward (he-line-search-regexp "" strip-prompt) 718 (if (re-search-backward (he-line-search-regexp "" strip-prompt)
719 (save-excursion (beginning-of-line) 719 (line-beginning-position) t)
720 (point)) t)
721 (match-beginning 2) 720 (match-beginning 2)
722 (point)))) 721 (point))))
723 722
@@ -1184,5 +1183,4 @@ string). It returns t if a new completion is found, nil otherwise."
1184 1183
1185(provide 'hippie-exp) 1184(provide 'hippie-exp)
1186 1185
1187;; arch-tag: 5e6e00bf-b061-4a7a-9b46-de0ae105ab99
1188;;; hippie-exp.el ends here 1186;;; hippie-exp.el ends here
diff --git a/lisp/info.el b/lisp/info.el
index 163ca258159..3e3ecc131cf 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -888,17 +888,16 @@ Value is the position at which a match was found, or nil if not found."
888 (let ((case-fold-search case-fold) 888 (let ((case-fold-search case-fold)
889 found) 889 found)
890 (save-excursion 890 (save-excursion
891 (when (Info-node-at-bob-matching regexp) 891 (if (Info-node-at-bob-matching regexp)
892 (setq found (point))) 892 (setq found (point))
893 (while (and (not found) 893 (while (and (not found)
894 (search-forward "\n\^_" nil t)) 894 (search-forward "\n\^_" nil t))
895 (forward-line 1) 895 (forward-line 1)
896 (let ((beg (point))) 896 (let ((beg (point)))
897 (forward-line 1) 897 (forward-line 1)
898 (when (re-search-backward regexp beg t) 898 (if (re-search-backward regexp beg t)
899 (beginning-of-line) 899 (setq found (line-beginning-position)))))))
900 (setq found (point))))) 900 found))
901 found)))
902 901
903(defun Info-find-node-in-buffer (regexp) 902(defun Info-find-node-in-buffer (regexp)
904 "Find a node or anchor in the current buffer. 903 "Find a node or anchor in the current buffer.
@@ -2323,11 +2322,8 @@ new buffer."
2323 completions default alt-default (start-point (point)) str i bol eol) 2322 completions default alt-default (start-point (point)) str i bol eol)
2324 (save-excursion 2323 (save-excursion
2325 ;; Store end and beginning of line. 2324 ;; Store end and beginning of line.
2326 (end-of-line) 2325 (setq eol (line-end-position)
2327 (setq eol (point)) 2326 bol (line-beginning-position))
2328 (beginning-of-line)
2329 (setq bol (point))
2330
2331 (goto-char (point-min)) 2327 (goto-char (point-min))
2332 (while (re-search-forward "\\*note[ \n\t]+\\([^:]*\\):" nil t) 2328 (while (re-search-forward "\\*note[ \n\t]+\\([^:]*\\):" nil t)
2333 (setq str (match-string-no-properties 1)) 2329 (setq str (match-string-no-properties 1))
@@ -2843,12 +2839,9 @@ parent node."
2843 (virtual-end 2839 (virtual-end
2844 (and Info-scroll-prefer-subnodes 2840 (and Info-scroll-prefer-subnodes
2845 (save-excursion 2841 (save-excursion
2846 (beginning-of-line) 2842 (setq current-point (line-beginning-position))
2847 (setq current-point (point))
2848 (goto-char (point-min)) 2843 (goto-char (point-min))
2849 (search-forward "\n* Menu:" 2844 (search-forward "\n* Menu:" current-point t)))))
2850 current-point
2851 t)))))
2852 (if (or virtual-end 2845 (if (or virtual-end
2853 (pos-visible-in-window-p (point-min) nil t)) 2846 (pos-visible-in-window-p (point-min) nil t))
2854 (Info-last-preorder) 2847 (Info-last-preorder)
diff --git a/lisp/mail/mspools.el b/lisp/mail/mspools.el
index 670439ff953..3ca0750aaf6 100644
--- a/lisp/mail/mspools.el
+++ b/lisp/mail/mspools.el
@@ -1,7 +1,7 @@
1;;; mspools.el --- show mail spools waiting to be read 1;;; mspools.el --- show mail spools waiting to be read
2 2
3;; Copyright (C) 1997, 2001, 2002, 2003, 2004, 2005, 3;; Copyright (C) 1997, 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;; Author: Stephen Eglen <stephen@gnu.org> 6;; Author: Stephen Eglen <stephen@gnu.org>
7;; Maintainer: Stephen Eglen <stephen@gnu.org> 7;; Maintainer: Stephen Eglen <stephen@gnu.org>
@@ -280,10 +280,7 @@ Buffer is not displayed if SHOW is non-nil."
280 )) 280 ))
281 281
282 (message "folder %s spool %s" folder-name spool-name) 282 (message "folder %s spool %s" folder-name spool-name)
283 (if (eq (count-lines (point-min) 283 (if (eq (count-lines (point-min) (point-at-eol))
284 (save-excursion
285 (end-of-line)
286 (point)))
287 mspools-files-len) 284 mspools-files-len)
288 (forward-line (- 1 mspools-files-len)) ;back to top of list 285 (forward-line (- 1 mspools-files-len)) ;back to top of list
289 ;; else just on to next line 286 ;; else just on to next line
@@ -323,11 +320,7 @@ Buffer is not displayed if SHOW is non-nil."
323 320
324(defun mspools-get-spool-name () 321(defun mspools-get-spool-name ()
325 "Return the name of the spool on the current line." 322 "Return the name of the spool on the current line."
326 (let ((line-num (1- (count-lines (point-min) 323 (let ((line-num (1- (count-lines (point-min) (point-at-eol)))))
327 (save-excursion
328 (end-of-line)
329 (point))
330 ))))
331 (car (nth line-num mspools-files)))) 324 (car (nth line-num mspools-files))))
332 325
333;;; Spools mode functions 326;;; Spools mode functions
@@ -411,5 +404,4 @@ nil."
411 404
412(provide 'mspools) 405(provide 'mspools)
413 406
414;; arch-tag: 8990b3ee-68c8-4892-98f1-51a735c8bac6
415;;; mspools.el ends here 407;;; mspools.el ends here
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index 0f4768b0b6a..40d6b94cb40 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -1149,8 +1149,7 @@ external program defined by `sendmail-program'."
1149 ;; should override any specified in the message itself. 1149 ;; should override any specified in the message itself.
1150 (when where-content-type 1150 (when where-content-type
1151 (goto-char where-content-type) 1151 (goto-char where-content-type)
1152 (beginning-of-line) 1152 (delete-region (point-at-bol)
1153 (delete-region (point)
1154 (progn (forward-line 1) (point))))))) 1153 (progn (forward-line 1) (point)))))))
1155 ;; Insert an extra newline if we need it to work around 1154 ;; Insert an extra newline if we need it to work around
1156 ;; Sun's bug that swallows newlines. 1155 ;; Sun's bug that swallows newlines.
diff --git a/lisp/mouse-drag.el b/lisp/mouse-drag.el
index 4dc57529385..e024b2aa551 100644
--- a/lisp/mouse-drag.el
+++ b/lisp/mouse-drag.el
@@ -1,7 +1,7 @@
1;;; mouse-drag.el --- use mouse-2 to do a new style of scrolling 1;;; mouse-drag.el --- use mouse-2 to do a new style of scrolling
2 2
3;; Copyright (C) 1996, 1997, 2001, 2002, 2003, 2004, 3;; Copyright (C) 1996, 1997, 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: John Heidemann <johnh@ISI.EDU> 6;; Author: John Heidemann <johnh@ISI.EDU>
7;; Keywords: mouse 7;; Keywords: mouse
@@ -163,7 +163,7 @@ Basically, we check for existing horizontal scrolling."
163 mouse-drag-electric-col-scrolling 163 mouse-drag-electric-col-scrolling
164 (save-excursion ;; on a long line? 164 (save-excursion ;; on a long line?
165 (let 165 (let
166 ((beg (progn (beginning-of-line) (point))) 166 ((beg (line-beginning-position))
167 (end (progn (end-of-line) (point)))) 167 (end (progn (end-of-line) (point))))
168 (if (> (- end beg) (window-width)) 168 (if (> (- end beg) (window-width))
169 (setq truncate-lines t) 169 (setq truncate-lines t)
@@ -326,5 +326,4 @@ To test this function, evaluate:
326 326
327(provide 'mouse-drag) 327(provide 'mouse-drag)
328 328
329;; arch-tag: e47354ff-82f5-42c4-b3dc-88dd9c04b770
330;;; mouse-drag.el ends here 329;;; mouse-drag.el ends here
diff --git a/lisp/net/eudc.el b/lisp/net/eudc.el
index 384ddbbecf2..282a60a8288 100644
--- a/lisp/net/eudc.el
+++ b/lisp/net/eudc.el
@@ -830,10 +830,7 @@ see `eudc-inline-expansion-servers'"
830 (let* ((end (point)) 830 (let* ((end (point))
831 (beg (save-excursion 831 (beg (save-excursion
832 (if (re-search-backward "\\([:,]\\|^\\)[ \t]*" 832 (if (re-search-backward "\\([:,]\\|^\\)[ \t]*"
833 (save-excursion 833 (point-at-bol) 'move)
834 (beginning-of-line)
835 (point))
836 'move)
837 (goto-char (match-end 0))) 834 (goto-char (match-end 0)))
838 (point))) 835 (point)))
839 (query-words (split-string (buffer-substring beg end) "[ \t]+")) 836 (query-words (split-string (buffer-substring beg end) "[ \t]+"))
@@ -1295,5 +1292,4 @@ This does nothing except loading eudc by autoload side-effect."
1295 1292
1296(provide 'eudc) 1293(provide 'eudc)
1297 1294
1298;; arch-tag: e18872b6-db83-400b-869d-be54e9a4160c
1299;;; eudc.el ends here 1295;;; eudc.el ends here
diff --git a/lisp/net/ldap.el b/lisp/net/ldap.el
index 17f6acce0f4..066dbd8bea0 100644
--- a/lisp/net/ldap.el
+++ b/lisp/net/ldap.el
@@ -579,9 +579,7 @@ an alist of attribute/value pairs."
579 (while (progn 579 (while (progn
580 (skip-chars-forward " \t\n") 580 (skip-chars-forward " \t\n")
581 (not (eobp))) 581 (not (eobp)))
582 (setq dn (buffer-substring (point) (save-excursion 582 (setq dn (buffer-substring (point) (point-at-eol)))
583 (end-of-line)
584 (point))))
585 (forward-line 1) 583 (forward-line 1)
586 (while (looking-at "^\\([A-Za-z][-A-Za-z0-9]*\ 584 (while (looking-at "^\\([A-Za-z][-A-Za-z0-9]*\
587\\|[0-9]+\\(?:\\.[0-9]+\\)*\\)\\(;[-A-Za-z0-9]+\\)*[=:\t ]+\ 585\\|[0-9]+\\(?:\\.[0-9]+\\)*\\)\\(;[-A-Za-z0-9]+\\)*[=:\t ]+\
@@ -617,5 +615,4 @@ an alist of attribute/value pairs."
617 615
618(provide 'ldap) 616(provide 'ldap)
619 617
620;; arch-tag: 47913a76-6155-42e6-ac58-6d28b5d50eb0
621;;; ldap.el ends here 618;;; ldap.el ends here
diff --git a/lisp/net/quickurl.el b/lisp/net/quickurl.el
index 4a8625ae745..4e99f542b32 100644
--- a/lisp/net/quickurl.el
+++ b/lisp/net/quickurl.el
@@ -1,7 +1,7 @@
1;;; quickurl.el --- insert an URL based on text at point in buffer 1;;; quickurl.el --- insert an URL based on text at point in buffer
2 2
3;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 3;; Copyright (C) 1999, 2000, 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: Dave Pearson <davep@davep.org> 6;; Author: Dave Pearson <davep@davep.org>
7;; Maintainer: Dave Pearson <davep@davep.org> 7;; Maintainer: Dave Pearson <davep@davep.org>
@@ -506,9 +506,7 @@ TYPE dictates what will be inserted, options are:
506 `with-lookup' - Insert \"lookup <URL:url>\" 506 `with-lookup' - Insert \"lookup <URL:url>\"
507 `with-desc' - Insert \"description <URL:url>\" 507 `with-desc' - Insert \"description <URL:url>\"
508 `lookup' - Insert the lookup for that URL" 508 `lookup' - Insert the lookup for that URL"
509 (let ((url (nth (save-excursion 509 (let ((url (nth (count-lines (point-min) (line-beginning-position))
510 (beginning-of-line)
511 (count-lines (point-min) (point)))
512 quickurl-urls))) 510 quickurl-urls)))
513 (if url 511 (if url
514 (with-current-buffer quickurl-list-last-buffer 512 (with-current-buffer quickurl-list-last-buffer
@@ -542,5 +540,4 @@ TYPE dictates what will be inserted, options are:
542 540
543(provide 'quickurl) 541(provide 'quickurl)
544 542
545;; arch-tag: a8183ea5-80c2-4082-a7d1-b0fdf2da467e
546;;; quickurl.el ends here 543;;; quickurl.el ends here
diff --git a/lisp/progmodes/ada-mode.el b/lisp/progmodes/ada-mode.el
index d0c9722c764..fe97b1e8a57 100644
--- a/lisp/progmodes/ada-mode.el
+++ b/lisp/progmodes/ada-mode.el
@@ -2472,8 +2472,7 @@ and the offset."
2472 (if (and ada-indent-is-separate 2472 (if (and ada-indent-is-separate
2473 (save-excursion 2473 (save-excursion
2474 (goto-char (match-end 0)) 2474 (goto-char (match-end 0))
2475 (ada-goto-next-non-ws (save-excursion (end-of-line) 2475 (ada-goto-next-non-ws (point-at-eol))
2476 (point)))
2477 (looking-at "\\<abstract\\>\\|\\<separate\\>"))) 2476 (looking-at "\\<abstract\\>\\|\\<separate\\>")))
2478 (save-excursion 2477 (save-excursion
2479 (ada-goto-stmt-start) 2478 (ada-goto-stmt-start)
@@ -2580,10 +2579,7 @@ and the offset."
2580 (forward-line -1) 2579 (forward-line -1)
2581 (beginning-of-line) 2580 (beginning-of-line)
2582 (while (and (not pos) 2581 (while (and (not pos)
2583 (search-forward "--" 2582 (search-forward "--" (point-at-eol) t))
2584 (save-excursion
2585 (end-of-line) (point))
2586 t))
2587 (unless (ada-in-string-p) 2583 (unless (ada-in-string-p)
2588 (setq pos (point)))) 2584 (setq pos (point))))
2589 pos)) 2585 pos))
@@ -5285,11 +5281,7 @@ Use \\[widen] to go back to the full visibility for the buffer."
5285 (widen) 5281 (widen)
5286 (forward-line 1) 5282 (forward-line 1)
5287 (ada-previous-procedure) 5283 (ada-previous-procedure)
5288 5284 (setq end (point-at-bol))
5289 (save-excursion
5290 (beginning-of-line)
5291 (setq end (point)))
5292
5293 (ada-move-to-end) 5285 (ada-move-to-end)
5294 (end-of-line) 5286 (end-of-line)
5295 (narrow-to-region end (point)) 5287 (narrow-to-region end (point))
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el
index c47c6274cbf..fca09145839 100644
--- a/lisp/progmodes/cperl-mode.el
+++ b/lisp/progmodes/cperl-mode.el
@@ -2984,8 +2984,7 @@ Will not look before LIM."
2984 (looking-at "sub\\>"))) 2984 (looking-at "sub\\>")))
2985 (setq p (nth 1 ; start of innermost containing list 2985 (setq p (nth 1 ; start of innermost containing list
2986 (parse-partial-sexp 2986 (parse-partial-sexp
2987 (save-excursion (beginning-of-line) 2987 (point-at-bol)
2988 (point))
2989 (point))))) 2988 (point)))))
2990 (progn 2989 (progn
2991 (goto-char (1+ p)) ; enclosing block on the same line 2990 (goto-char (1+ p)) ; enclosing block on the same line
@@ -4048,10 +4047,7 @@ the sections using `cperl-pod-head-face', `cperl-pod-face',
4048 "") 4047 "")
4049 tb (match-beginning 0)) 4048 tb (match-beginning 0))
4050 (setq argument nil) 4049 (setq argument nil)
4051 (put-text-property (save-excursion 4050 (put-text-property (point-at-bol) b 'first-format-line 't)
4052 (beginning-of-line)
4053 (point))
4054 b 'first-format-line 't)
4055 (if cperl-pod-here-fontify 4051 (if cperl-pod-here-fontify
4056 (while (and (eq (forward-line) 0) 4052 (while (and (eq (forward-line) 0)
4057 (not (looking-at "^[.;]$"))) 4053 (not (looking-at "^[.;]$")))
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el
index 96f36340fd9..0d11fd6423d 100644
--- a/lisp/progmodes/etags.el
+++ b/lisp/progmodes/etags.el
@@ -1133,9 +1133,7 @@ error message."
1133 ;; Naive match found. Qualify the match. 1133 ;; Naive match found. Qualify the match.
1134 (and (funcall (car order) pattern) 1134 (and (funcall (car order) pattern)
1135 ;; Make sure it is not a previous qualified match. 1135 ;; Make sure it is not a previous qualified match.
1136 (not (member (set-marker match-marker (save-excursion 1136 (not (member (set-marker match-marker (point-at-bol))
1137 (beginning-of-line)
1138 (point)))
1139 tag-lines-already-matched)) 1137 tag-lines-already-matched))
1140 (throw 'qualified-match-found nil)) 1138 (throw 'qualified-match-found nil))
1141 (if next-line-after-failure-p 1139 (if next-line-after-failure-p
@@ -1313,13 +1311,11 @@ buffer-local values of tags table format variables."
1313 1311
1314 ;; Find the end of the tag and record the whole tag text. 1312 ;; Find the end of the tag and record the whole tag text.
1315 (search-forward "\177") 1313 (search-forward "\177")
1316 (setq tag-text (buffer-substring (1- (point)) 1314 (setq tag-text (buffer-substring (1- (point)) (point-at-bol)))
1317 (save-excursion (beginning-of-line)
1318 (point))))
1319 ;; If use-explicit is non nil and explicit tag is present, use it as part of 1315 ;; If use-explicit is non nil and explicit tag is present, use it as part of
1320 ;; return value. Else just skip it. 1316 ;; return value. Else just skip it.
1321 (setq explicit-start (point)) 1317 (setq explicit-start (point))
1322 (when (and (search-forward "\001" (save-excursion (forward-line 1) (point)) t) 1318 (when (and (search-forward "\001" (point-at-bol 2) t)
1323 use-explicit) 1319 use-explicit)
1324 (setq tag-text (buffer-substring explicit-start (1- (point))))) 1320 (setq tag-text (buffer-substring explicit-start (1- (point)))))
1325 1321
diff --git a/lisp/progmodes/fortran.el b/lisp/progmodes/fortran.el
index 91cfb646b66..c8bbbf48343 100644
--- a/lisp/progmodes/fortran.el
+++ b/lisp/progmodes/fortran.el
@@ -1315,8 +1315,7 @@ Directive lines are treated as comments."
1315 (if i 1315 (if i
1316 (save-excursion 1316 (save-excursion
1317 (goto-char i) 1317 (goto-char i)
1318 (beginning-of-line) 1318 (= (line-beginning-position) p)))))
1319 (= (point) p)))))
1320 1319
1321;; Used in hs-special-modes-alist. 1320;; Used in hs-special-modes-alist.
1322(defun fortran-end-of-block (&optional num) 1321(defun fortran-end-of-block (&optional num)
@@ -2207,5 +2206,4 @@ arg DO-SPACE prevents stripping the whitespace."
2207 2206
2208(provide 'fortran) 2207(provide 'fortran)
2209 2208
2210;; arch-tag: 74935096-21c4-4cab-8ee5-6ef16090dc04
2211;;; fortran.el ends here 2209;;; fortran.el ends here
diff --git a/lisp/progmodes/idlw-shell.el b/lisp/progmodes/idlw-shell.el
index 21566912710..87eb3689f3f 100644
--- a/lisp/progmodes/idlw-shell.el
+++ b/lisp/progmodes/idlw-shell.el
@@ -2591,9 +2591,7 @@ If in the IDL shell buffer, returns `idlwave-shell-pc-frame'."
2591 (list (idlwave-shell-file-name (buffer-file-name)) 2591 (list (idlwave-shell-file-name (buffer-file-name))
2592 (save-restriction 2592 (save-restriction
2593 (widen) 2593 (widen)
2594 (save-excursion 2594 (1+ (count-lines 1 (point-at-bol)))))))
2595 (beginning-of-line)
2596 (1+ (count-lines 1 (point))))))))
2597 2595
2598(defun idlwave-shell-current-module () 2596(defun idlwave-shell-current-module ()
2599 "Return the name of the module for the current file. 2597 "Return the name of the module for the current file.
@@ -3645,7 +3643,7 @@ Existing overlays are recycled, in order to minimize consumption."
3645 (while (setq bp (pop bp-list)) 3643 (while (setq bp (pop bp-list))
3646 (save-excursion 3644 (save-excursion
3647 (idlwave-shell-goto-frame (car bp)) 3645 (idlwave-shell-goto-frame (car bp))
3648 (let* ((end (progn (end-of-line 1) (point))) 3646 (let* ((end (point-at-eol))
3649 (beg (progn (beginning-of-line 1) (point))) 3647 (beg (progn (beginning-of-line 1) (point)))
3650 (condition (idlwave-shell-bp-get bp 'condition)) 3648 (condition (idlwave-shell-bp-get bp 'condition))
3651 (count (idlwave-shell-bp-get bp 'count)) 3649 (count (idlwave-shell-bp-get bp 'count))
@@ -3999,8 +3997,7 @@ of the form:
3999 (append 3997 (append
4000 ;; compiled procedures 3998 ;; compiled procedures
4001 (progn 3999 (progn
4002 (beginning-of-line) 4000 (narrow-to-region cpro (point-at-bol))
4003 (narrow-to-region cpro (point))
4004 (goto-char (point-min)) 4001 (goto-char (point-min))
4005 (idlwave-shell-sources-grep)) 4002 (idlwave-shell-sources-grep))
4006 ;; compiled functions 4003 ;; compiled functions
diff --git a/lisp/progmodes/idlwave.el b/lisp/progmodes/idlwave.el
index 40c7f2c58e7..736d2c56345 100644
--- a/lisp/progmodes/idlwave.el
+++ b/lisp/progmodes/idlwave.el
@@ -2097,7 +2097,7 @@ Returns non-nil if abbrev is left expanded."
2097Moves to end of line if there is no comment delimiter. 2097Moves to end of line if there is no comment delimiter.
2098Ignores comment delimiters in strings. 2098Ignores comment delimiters in strings.
2099Returns point if comment found and nil otherwise." 2099Returns point if comment found and nil otherwise."
2100 (let ((eos (progn (end-of-line) (point))) 2100 (let ((eos (point-at-eol))
2101 (data (match-data)) 2101 (data (match-data))
2102 found) 2102 found)
2103 ;; Look for first comment delimiter not in a string 2103 ;; Look for first comment delimiter not in a string
@@ -3310,10 +3310,7 @@ ignored."
3310 (setq fill-prefix-reg 3310 (setq fill-prefix-reg
3311 (concat 3311 (concat
3312 (setq fill-prefix 3312 (setq fill-prefix
3313 (regexp-quote 3313 (regexp-quote (buffer-substring (point-at-bol) (point))))
3314 (buffer-substring (save-excursion
3315 (beginning-of-line) (point))
3316 (point))))
3317 "[^;]")) 3314 "[^;]"))
3318 3315
3319 ;; Mark the beginning and end of the paragraph 3316 ;; Mark the beginning and end of the paragraph
@@ -3668,7 +3665,7 @@ constants - a double quote followed by an octal digit."
3668 ;; Because single and double quotes can quote each other we must 3665 ;; Because single and double quotes can quote each other we must
3669 ;; search for the string start from the beginning of line. 3666 ;; search for the string start from the beginning of line.
3670 (let* ((start (point)) 3667 (let* ((start (point))
3671 (eol (progn (end-of-line) (point))) 3668 (eol (point-at-eol))
3672 (bq (progn (beginning-of-line) (point))) 3669 (bq (progn (beginning-of-line) (point)))
3673 (endq (point)) 3670 (endq (point))
3674 (data (match-data)) 3671 (data (match-data))
diff --git a/lisp/progmodes/meta-mode.el b/lisp/progmodes/meta-mode.el
index 70b38dc3999..0011dd17f66 100644
--- a/lisp/progmodes/meta-mode.el
+++ b/lisp/progmodes/meta-mode.el
@@ -1,7 +1,7 @@
1;;; meta-mode.el --- major mode for editing Metafont or MetaPost sources 1;;; meta-mode.el --- major mode for editing Metafont or MetaPost sources
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: Ulrik Vieth <vieth@thphy.uni-duesseldorf.de> 6;; Author: Ulrik Vieth <vieth@thphy.uni-duesseldorf.de>
7;; Version: 1.0 7;; Version: 1.0
@@ -577,7 +577,7 @@ If the list was changed, sort the list and remove duplicates first."
577 (let ((indent (meta-indent-calculate))) 577 (let ((indent (meta-indent-calculate)))
578 (save-excursion 578 (save-excursion
579 (if (/= (current-indentation) indent) 579 (if (/= (current-indentation) indent)
580 (let ((beg (progn (beginning-of-line) (point))) 580 (let ((beg (line-beginning-position))
581 (end (progn (back-to-indentation) (point)))) 581 (end (progn (back-to-indentation) (point))))
582 (delete-region beg end) 582 (delete-region beg end)
583 (indent-to indent)))) 583 (indent-to indent))))
@@ -1084,5 +1084,4 @@ Turning on MetaPost mode calls the value of the variable
1084(provide 'meta-mode) 1084(provide 'meta-mode)
1085(run-hooks 'meta-mode-load-hook) 1085(run-hooks 'meta-mode-load-hook)
1086 1086
1087;; arch-tag: ec2916b2-3a83-4cf7-962d-d8019370c006
1088;;; meta-mode.el ends here 1087;;; meta-mode.el ends here
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el
index d41a81e38a6..1f085045192 100644
--- a/lisp/progmodes/sh-script.el
+++ b/lisp/progmodes/sh-script.el
@@ -1,7 +1,8 @@
1;;; sh-script.el --- shell-script editing commands for Emacs 1;;; sh-script.el --- shell-script editing commands for Emacs
2 2
3;; Copyright (C) 1993, 1994, 1995, 1996, 1997, 1999, 2001, 2002, 2003, 3;; Copyright (C) 1993, 1994, 1995, 1996, 1997, 1999, 2001, 2002, 2003,
4;; 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 4;; 2004, 2005, 2006, 2007, 2008, 2009, 2010
5;; Free Software Foundation, Inc.
5 6
6;; Author: Daniel Pfeiffer <occitan@esperanto.org> 7;; Author: Daniel Pfeiffer <occitan@esperanto.org>
7;; Version: 2.0f 8;; Version: 2.0f
@@ -2136,11 +2137,7 @@ Return new point if successful, nil if an error occurred."
2136(defun sh-handle-prev-do () 2137(defun sh-handle-prev-do ()
2137 (cond 2138 (cond
2138 ((save-restriction 2139 ((save-restriction
2139 (narrow-to-region 2140 (narrow-to-region (point) (line-beginning-position))
2140 (point)
2141 (save-excursion
2142 (beginning-of-line)
2143 (point)))
2144 (sh-goto-match-for-done)) 2141 (sh-goto-match-for-done))
2145 (sh-debug "match for done found on THIS line") 2142 (sh-debug "match for done found on THIS line")
2146 (list '(+ sh-indent-after-loop-construct))) 2143 (list '(+ sh-indent-after-loop-construct)))
@@ -3840,5 +3837,4 @@ shell command and conveniently use this command."
3840 3837
3841(provide 'sh-script) 3838(provide 'sh-script)
3842 3839
3843;; arch-tag: eccd8b72-f337-4fc2-ae86-18155a69d937
3844;;; sh-script.el ends here 3840;;; sh-script.el ends here
diff --git a/lisp/progmodes/tcl.el b/lisp/progmodes/tcl.el
index 8f80d13bab6..10fe0e7885e 100644
--- a/lisp/progmodes/tcl.el
+++ b/lisp/progmodes/tcl.el
@@ -1208,8 +1208,7 @@ See also `tcl-simple-scan-for-comment', a
1208simpler version that is often right, and works in Emacs 18." 1208simpler version that is often right, and works in Emacs 18."
1209 (let ((bol (save-excursion 1209 (let ((bol (save-excursion
1210 (goto-char end) 1210 (goto-char end)
1211 (beginning-of-line) 1211 (line-beginning-position)))
1212 (point)))
1213 real-comment 1212 real-comment
1214 last-cstart) 1213 last-cstart)
1215 (while (and (not last-cstart) (< (point) end)) 1214 (while (and (not last-cstart) (< (point) end))
@@ -1557,5 +1556,4 @@ The first line is assumed to look like \"#!.../program ...\"."
1557 1556
1558(provide 'tcl) 1557(provide 'tcl)
1559 1558
1560;; arch-tag: 8a032554-c3ef-422e-b84c-acec0522179d
1561;;; tcl.el ends here 1559;;; tcl.el ends here
diff --git a/lisp/progmodes/vhdl-mode.el b/lisp/progmodes/vhdl-mode.el
index 3847e3c56e4..c7814fed8a0 100644
--- a/lisp/progmodes/vhdl-mode.el
+++ b/lisp/progmodes/vhdl-mode.el
@@ -12115,9 +12115,7 @@ options vhdl-upper-case-{keywords,types,attributes,enum-values}."
12115 "Return the line number of the line containing point." 12115 "Return the line number of the line containing point."
12116 (save-restriction 12116 (save-restriction
12117 (widen) 12117 (widen)
12118 (save-excursion 12118 (1+ (count-lines (point-min) (point-at-bol)))))
12119 (beginning-of-line)
12120 (1+ (count-lines (point-min) (point))))))
12121 12119
12122(defun vhdl-line-kill-entire (&optional arg) 12120(defun vhdl-line-kill-entire (&optional arg)
12123 "Delete entire line." 12121 "Delete entire line."
@@ -12134,8 +12132,7 @@ options vhdl-upper-case-{keywords,types,attributes,enum-values}."
12134 "Copy current line." 12132 "Copy current line."
12135 (interactive "p") 12133 (interactive "p")
12136 (save-excursion 12134 (save-excursion
12137 (beginning-of-line) 12135 (let ((position (point-at-bol)))
12138 (let ((position (point)))
12139 (forward-line (or arg 1)) 12136 (forward-line (or arg 1))
12140 (copy-region-as-kill position (point))))) 12137 (copy-region-as-kill position (point)))))
12141 12138
diff --git a/lisp/progmodes/xscheme.el b/lisp/progmodes/xscheme.el
index 0324bc3c5b2..217424b9424 100644
--- a/lisp/progmodes/xscheme.el
+++ b/lisp/progmodes/xscheme.el
@@ -701,12 +701,7 @@ parse an expression from the beginning of the line and send that instead."
701 "Send the current line to the Scheme process. 701 "Send the current line to the Scheme process.
702Useful for working with debugging Scheme under adb." 702Useful for working with debugging Scheme under adb."
703 (interactive) 703 (interactive)
704 (let ((line 704 (let ((line (buffer-substring (line-beginning-position) (line-end-position))))
705 (save-excursion
706 (beginning-of-line)
707 (let ((start (point)))
708 (end-of-line)
709 (buffer-substring start (point))))))
710 (end-of-line) 705 (end-of-line)
711 (insert ?\n) 706 (insert ?\n)
712 (xscheme-send-string-2 line))) 707 (xscheme-send-string-2 line)))
@@ -1224,5 +1219,4 @@ the remaining input.")
1224 1219
1225(provide 'xscheme) 1220(provide 'xscheme)
1226 1221
1227;; arch-tag: cfc14adc-2917-409e-ad16-432e8d0017de
1228;;; xscheme.el ends here 1222;;; xscheme.el ends here
diff --git a/lisp/simple.el b/lisp/simple.el
index a68fd923241..329284807d2 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -5060,16 +5060,12 @@ If optional arg REALLY-WORD is non-nil, it finds just a word."
5060 ;; Point is neither within nor adjacent to a word. 5060 ;; Point is neither within nor adjacent to a word.
5061 (not strict)) 5061 (not strict))
5062 ;; Look for preceding word in same line. 5062 ;; Look for preceding word in same line.
5063 (skip-syntax-backward not-syntaxes 5063 (skip-syntax-backward not-syntaxes (line-beginning-position))
5064 (save-excursion (beginning-of-line)
5065 (point)))
5066 (if (bolp) 5064 (if (bolp)
5067 ;; No preceding word in same line. 5065 ;; No preceding word in same line.
5068 ;; Look for following word in same line. 5066 ;; Look for following word in same line.
5069 (progn 5067 (progn
5070 (skip-syntax-forward not-syntaxes 5068 (skip-syntax-forward not-syntaxes (line-end-position))
5071 (save-excursion (end-of-line)
5072 (point)))
5073 (setq start (point)) 5069 (setq start (point))
5074 (skip-syntax-forward syntaxes) 5070 (skip-syntax-forward syntaxes)
5075 (setq end (point))) 5071 (setq end (point)))
diff --git a/lisp/speedbar.el b/lisp/speedbar.el
index cb5a8d5c0d3..f3b7531ba24 100644
--- a/lisp/speedbar.el
+++ b/lisp/speedbar.el
@@ -3986,13 +3986,10 @@ TEXT is the buffer's name, TOKEN and INDENT are unused."
3986 (speedbar-unhighlight-one-tag-line) 3986 (speedbar-unhighlight-one-tag-line)
3987 (setq speedbar-highlight-one-tag-line 3987 (setq speedbar-highlight-one-tag-line
3988 (speedbar-make-overlay (line-beginning-position) 3988 (speedbar-make-overlay (line-beginning-position)
3989 (save-excursion (end-of-line) 3989 (1+ (line-end-position))))
3990 (forward-char 1)
3991 (point))))
3992 (speedbar-overlay-put speedbar-highlight-one-tag-line 'face 3990 (speedbar-overlay-put speedbar-highlight-one-tag-line 'face
3993 'speedbar-highlight-face) 3991 'speedbar-highlight-face)
3994 (add-hook 'pre-command-hook 'speedbar-unhighlight-one-tag-line) 3992 (add-hook 'pre-command-hook 'speedbar-unhighlight-one-tag-line))
3995 )
3996 3993
3997(defun speedbar-unhighlight-one-tag-line () 3994(defun speedbar-unhighlight-one-tag-line ()
3998 "Unhighlight the currently highlighted line." 3995 "Unhighlight the currently highlighted line."
diff --git a/lisp/term.el b/lisp/term.el
index 6d922356236..464ff40c23c 100644
--- a/lisp/term.el
+++ b/lisp/term.el
@@ -2611,10 +2611,7 @@ See `term-prompt-regexp'."
2611 2611
2612(defun term-move-columns (delta) 2612(defun term-move-columns (delta)
2613 (setq term-current-column (max 0 (+ (term-current-column) delta))) 2613 (setq term-current-column (max 0 (+ (term-current-column) delta)))
2614 (let (point-at-eol) 2614 (let ((point-at-eol (line-end-position)))
2615 (save-excursion
2616 (end-of-line)
2617 (setq point-at-eol (point)))
2618 (move-to-column term-current-column t) 2615 (move-to-column term-current-column t)
2619 ;; If move-to-column extends the current line it will use the face 2616 ;; If move-to-column extends the current line it will use the face
2620 ;; from the last character on the line, set the face for the chars 2617 ;; from the last character on the line, set the face for the chars
@@ -3792,10 +3789,8 @@ if KIND is 1, erase from home to point; else erase from home to point-max."
3792 (term-vertical-motion 1) 3789 (term-vertical-motion 1)
3793 (when (bolp) 3790 (when (bolp)
3794 (backward-char)) 3791 (backward-char))
3795 (setq save-eol (point)) 3792 (setq save-eol (point)
3796 (save-excursion 3793 pnt-at-eol (line-end-position))
3797 (end-of-line)
3798 (setq pnt-at-eol (point)))
3799 (move-to-column (+ (term-start-line-column) (- term-width count)) t) 3794 (move-to-column (+ (term-start-line-column) (- term-width count)) t)
3800 ;; If move-to-column extends the current line it will use the face 3795 ;; If move-to-column extends the current line it will use the face
3801 ;; from the last character on the line, set the face for the chars 3796 ;; from the last character on the line, set the face for the chars
diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el
index be3fd5a1789..2dd7b1e2c95 100644
--- a/lisp/textmodes/fill.el
+++ b/lisp/textmodes/fill.el
@@ -1,7 +1,8 @@
1;;; fill.el --- fill commands for Emacs -*- coding: utf-8 -*- 1;;; fill.el --- fill commands for Emacs -*- coding: utf-8 -*-
2 2
3;; Copyright (C) 1985, 1986, 1992, 1994, 1995, 1996, 1997, 1999, 2001, 2002, 3;; Copyright (C) 1985, 1986, 1992, 1994, 1995, 1996, 1997, 1999, 2001,
4;; 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 4;; 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
5;; Free Software Foundation, Inc.
5 6
6;; Maintainer: FSF 7;; Maintainer: FSF
7;; Keywords: wp 8;; Keywords: wp
@@ -137,7 +138,7 @@ The fill column to use for a line is the first column at which the column
137number equals or exceeds the local fill-column - right-margin difference." 138number equals or exceeds the local fill-column - right-margin difference."
138 (save-excursion 139 (save-excursion
139 (if fill-column 140 (if fill-column
140 (let* ((here (progn (beginning-of-line) (point))) 141 (let* ((here (line-beginning-position))
141 (here-col 0) 142 (here-col 0)
142 (eol (progn (end-of-line) (point))) 143 (eol (progn (end-of-line) (point)))
143 margin fill-col change col) 144 margin fill-col change col)
@@ -1517,5 +1518,4 @@ Also, if CITATION-REGEXP is non-nil, don't fill header lines."
1517 "") 1518 "")
1518 string)) 1519 string))
1519 1520
1520;; arch-tag: 727ad455-1161-4fa9-8df5-0f74b179216d
1521;;; fill.el ends here 1521;;; fill.el ends here
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
index afd39a709e1..9a494897b74 100644
--- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
@@ -2912,8 +2912,7 @@ Return nil if spell session is quit,
2912 (min skip-region-start ispell-region-end) 2912 (min skip-region-start ispell-region-end)
2913 (marker-position ispell-region-end)))) 2913 (marker-position ispell-region-end))))
2914 (let* ((ispell-start (point)) 2914 (let* ((ispell-start (point))
2915 (ispell-end (save-excursion 2915 (ispell-end (min (point-at-eol) reg-end))
2916 (end-of-line) (min (point) reg-end)))
2917 (string (ispell-get-line 2916 (string (ispell-get-line
2918 ispell-start ispell-end in-comment))) 2917 ispell-start ispell-end in-comment)))
2919 (if in-comment ; account for comment chars added 2918 (if in-comment ; account for comment chars added
diff --git a/lisp/vc/emerge.el b/lisp/vc/emerge.el
index b32eed01c81..ee34944e448 100644
--- a/lisp/vc/emerge.el
+++ b/lisp/vc/emerge.el
@@ -2474,10 +2474,8 @@ merge buffers."
2474(defvar emerge-line-diff) 2474(defvar emerge-line-diff)
2475 2475
2476(defun emerge-line-number-in-buf (begin-marker end-marker) 2476(defun emerge-line-number-in-buf (begin-marker end-marker)
2477 (let (temp) 2477 ;; FIXME point-min rather than 1? widen?
2478 (setq temp (save-excursion 2478 (let ((temp (1+ (count-lines 1 (line-beginning-position)))))
2479 (beginning-of-line)
2480 (1+ (count-lines 1 (point)))))
2481 (if valid-diff 2479 (if valid-diff
2482 (progn 2480 (progn
2483 (if (> (point) (aref emerge-line-diff begin-marker)) 2481 (if (> (point) (aref emerge-line-diff begin-marker))