Mercurial > emacs
comparison lisp/progmodes/ada-xref.el @ 111433:05dc9dca8729
Replace end-of-line, save-excursion etc with point-at-eol, point-at-bol.
* lisp/mh-e/mh-seq.el (mh-read-msg-list): Use point-at-eol.
* lisp/gnus/gnus-bookmark.el (gnus-bookmark-bmenu-show-infos)
(gnus-bookmark-kill-line): Use point-at-eol.
* lisp/cedet/ede/proj-elisp.el (ede-proj-flush-autoconf): Use point-at-bol.
* lisp/emacs-lisp/chart.el (chart-zap-chars):
* lisp/play/decipher.el (decipher-set-map):
* lisp/progmodes/ada-mode.el (ada-get-current-indent)
(ada-search-ignore-string-comment, ada-tab-hard, ada-untab-hard):
* lisp/progmodes/ada-prj.el (ada-prj-load-from-file, ada-prj-display-help):
* lisp/progmodes/ada-xref.el (ada-initialize-runtime-library)
(ada-get-all-references):
* lisp/progmodes/cperl-mode.el (cperl-electric-paren)
(cperl-electric-rparen, cperl-electric-keyword, cperl-electric-else)
(cperl-linefeed, cperl-sniff-for-indent, cperl-to-comment-or-eol)
(cperl-find-pods-heres, cperl-indent-exp, cperl-fix-line-spacing)
(cperl-word-at-point-hard):
* lisp/progmodes/idlw-shell.el (idlwave-shell-move-or-history)
(idlwave-shell-filename-string, idlwave-shell-batch-command)
(idlwave-shell-display-line):
* lisp/progmodes/idlwave.el (idlwave-show-begin, idlwave-fill-paragraph)
(idlwave-calc-hanging-indent, idlwave-auto-fill, idlwave-template):
* lisp/progmodes/js.el (js--re-search-forward-inner)
(js--re-search-backward-inner):
* lisp/progmodes/vhdl-mode.el (vhdl-align-region-1, vhdl-align-region-2)
(vhdl-fix-clause, vhdl-compose-configuration-architecture):
* lisp/progmodes/ruby-mode.el (ruby-parse-partial, eval-when-compile):
* lisp/textmodes/flyspell.el (flyspell-process-localwords):
* lisp/textmodes/ispell.el (ispell-buffer-local-parsing)
(ispell-buffer-local-dict, ispell-buffer-local-words):
Use point-at-bol and point-at-eol.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Sat, 06 Nov 2010 18:36:33 -0700 |
parents | 280c8ae2476d |
children | 2b266010d0b7 |
comparison
equal
deleted
inserted
replaced
111432:8de1e4554e5e | 111433:05dc9dca8729 |
---|---|
1 ;; ada-xref.el --- for lookup and completion in Ada mode | 1 ;; ada-xref.el --- for lookup and completion in Ada mode |
2 | 2 |
3 ;; Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, | 3 ;; Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 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 ;; Author: Markus Heritsch <Markus.Heritsch@studbox.uni-stuttgart.de> | 7 ;; Author: Markus Heritsch <Markus.Heritsch@studbox.uni-stuttgart.de> |
7 ;; Rolf Ebert <ebert@inf.enst.fr> | 8 ;; Rolf Ebert <ebert@inf.enst.fr> |
8 ;; Emmanuel Briot <briot@gnat.com> | 9 ;; Emmanuel Briot <briot@gnat.com> |
9 ;; Maintainer: Stephen Leake <stephen_leake@stephe-leake.org> | 10 ;; Maintainer: Stephen Leake <stephen_leake@stephe-leake.org> |
322 (if (looking-at "<Current_Directory>") | 323 (if (looking-at "<Current_Directory>") |
323 (add-to-list 'ada-xref-runtime-library-specs-path ".") | 324 (add-to-list 'ada-xref-runtime-library-specs-path ".") |
324 (add-to-list 'ada-xref-runtime-library-specs-path | 325 (add-to-list 'ada-xref-runtime-library-specs-path |
325 (buffer-substring-no-properties | 326 (buffer-substring-no-properties |
326 (point) | 327 (point) |
327 (save-excursion (end-of-line) (point))))) | 328 (point-at-eol)))) |
328 (forward-line 1)) | 329 (forward-line 1)) |
329 | 330 |
330 ;; Object path | 331 ;; Object path |
331 | 332 |
332 (search-forward "Object Search Path:") | 333 (search-forward "Object Search Path:") |
336 (if (looking-at "<Current_Directory>") | 337 (if (looking-at "<Current_Directory>") |
337 (add-to-list 'ada-xref-runtime-library-ali-path ".") | 338 (add-to-list 'ada-xref-runtime-library-ali-path ".") |
338 (add-to-list 'ada-xref-runtime-library-ali-path | 339 (add-to-list 'ada-xref-runtime-library-ali-path |
339 (buffer-substring-no-properties | 340 (buffer-substring-no-properties |
340 (point) | 341 (point) |
341 (save-excursion (end-of-line) (point))))) | 342 (point-at-eol)))) |
342 (forward-line 1)) | 343 (forward-line 1)) |
343 ) | 344 ) |
344 (kill-buffer nil)))) | 345 (kill-buffer nil)))) |
345 | 346 |
346 (set 'ada-xref-runtime-library-specs-path | 347 (set 'ada-xref-runtime-library-specs-path |
1815 ;; Now that we have found a suitable line in the .ali file, get the | 1816 ;; Now that we have found a suitable line in the .ali file, get the |
1816 ;; information available | 1817 ;; information available |
1817 (beginning-of-line) | 1818 (beginning-of-line) |
1818 (if declaration-found | 1819 (if declaration-found |
1819 (let ((current-line (buffer-substring | 1820 (let ((current-line (buffer-substring |
1820 (point) (save-excursion (end-of-line) (point))))) | 1821 (point) (point-at-eol)))) |
1821 (save-excursion | 1822 (save-excursion |
1822 (forward-line 1) | 1823 (forward-line 1) |
1823 (beginning-of-line) | 1824 (beginning-of-line) |
1824 (while (looking-at "^\\.\\(.*\\)") | 1825 (while (looking-at "^\\.\\(.*\\)") |
1825 (set 'current-line (concat current-line (match-string 1))) | 1826 (set 'current-line (concat current-line (match-string 1))) |
2377 'error-message | 2378 'error-message |
2378 "File not found in src-dir (check project file): ") | 2379 "File not found in src-dir (check project file): ") |
2379 | 2380 |
2380 (provide 'ada-xref) | 2381 (provide 'ada-xref) |
2381 | 2382 |
2382 ;; arch-tag: 415a39fe-577b-4676-b3b1-6ff6db7ca24e | |
2383 ;;; ada-xref.el ends here | 2383 ;;; ada-xref.el ends here |