Mercurial > emacs
comparison lisp/progmodes/ada-mode.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 | 05dc9dca8729 |
children | b47e85affa59 |
comparison
equal
deleted
inserted
replaced
111444:60f509c70b61 | 111445:56b71cddc9c5 |
---|---|
2470 (looking-at "is\\>")) | 2470 (looking-at "is\\>")) |
2471 | 2471 |
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) |
2480 (list (progn (back-to-indentation) (point)) 'ada-indent)) | 2479 (list (progn (back-to-indentation) (point)) 'ada-indent)) |
2481 (save-excursion | 2480 (save-excursion |
2578 (if (and ada-indent-align-comments | 2577 (if (and ada-indent-align-comments |
2579 (save-excursion | 2578 (save-excursion |
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)) |
2590 (list (- pos 2) 0) | 2586 (list (- pos 2) 0) |
2591 | 2587 |
5283 (save-excursion | 5279 (save-excursion |
5284 (let (end) | 5280 (let (end) |
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)) |
5296 (message | 5288 (message |
5297 "Use M-x widen to get back to full visibility in the buffer")))) | 5289 "Use M-x widen to get back to full visibility in the buffer")))) |