Mercurial > emacs
comparison lisp/allout.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 | b757d9aee37e |
children | c7ebfc6cd27a |
comparison
equal
deleted
inserted
replaced
111444:60f509c70b61 | 111445:56b71cddc9c5 |
---|---|
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> |
8 ;; Created: Dec 1991 -- first release to usenet | 8 ;; Created: Dec 1991 -- first release to usenet |
9 ;; Version: 2.2.1 | 9 ;; Version: 2.2.1 |
4723 (let ((inhibit-field-text-motion t) | 4723 (let ((inhibit-field-text-motion t) |
4724 file-name) | 4724 file-name) |
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) |
4732 (buffer-substring (match-beginning 1) | 4732 (buffer-substring (match-beginning 1) |
4733 (match-end 1))))))) | 4733 (match-end 1))))))) |
5670 across LaTeX processing, within the context of a `verbatim' | 5670 across LaTeX processing, within the context of a `verbatim' |
5671 environment. Leaves point at the end of the line." | 5671 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 ;;"\\\\\\|\\{\\|\\}\\|\\_\\|\\$\\|\\\"\\|\\&\\|\\^\\|\\-\\|\\*\\|#" |
5680 end ; bounded by end-of-line | 5679 end ; bounded by end-of-line |
5681 1) ; no matches, move to end & return nil | 5680 1) ; no matches, move to end & return nil |
6939 (previous-property-change (point)) | 6938 (previous-property-change (point)) |
6940 (previous-char-property-change (point)))) | 6939 (previous-char-property-change (point)))) |
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. |
6948 \(This disregards invisible newlines such as those | 6947 \(This disregards invisible newlines such as those |
6949 which are part of the text that an image rests on.) | 6948 which are part of the text that an image rests on.) |
7145 ;; - and closes the last topic (this local-variables section). | 7144 ;; - and closes the last topic (this local-variables section). |
7146 ;;Local variables: | 7145 ;;Local variables: |
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 |