Mercurial > emacs
comparison lisp/progmodes/etags.el @ 111445:56b71cddc9c5
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.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Mon, 08 Nov 2010 21:33:07 -0800 |
parents | 249a1455856a |
children | b47e85affa59 |
comparison
equal
deleted
inserted
replaced
111444:60f509c70b61 | 111445:56b71cddc9c5 |
---|---|
1131 (while order | 1131 (while order |
1132 (while (funcall search-forward-func pattern nil t) | 1132 (while (funcall search-forward-func pattern nil t) |
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 |
1142 (forward-line 1))) | 1140 (forward-line 1))) |
1143 ;; Try the next flavor of match. | 1141 ;; Try the next flavor of match. |
1311 line nil | 1309 line nil |
1312 startpos (point-min)) | 1310 startpos (point-min)) |
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 |
1326 | 1322 |
1327 (if (looking-at "[0-9]") | 1323 (if (looking-at "[0-9]") |