comparison lisp/cedet/semantic/lex.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 93141d34a175
children 417b1e4d63cd
comparison
equal deleted inserted replaced
111444:60f509c70b61 111445:56b71cddc9c5
1425 (if (eq (point) comment-start-point) 1425 (if (eq (point) comment-start-point)
1426 ;; In this case our start-skip string failed 1426 ;; In this case our start-skip string failed
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)))
1437 (if (eq (point) comment-start-point) 1434 (if (eq (point) comment-start-point)
1438 (error "Strange comment syntax prevents lexical analysis")) 1435 (error "Strange comment syntax prevents lexical analysis"))
1995 (if (eq (point) comment-start-point) 1992 (if (eq (point) comment-start-point)
1996 ;; In this case our start-skip string failed 1993 ;; In this case our start-skip string failed
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
2007 (bolp)) 2001 (bolp))
2008 (backward-char 1))) 2002 (backward-char 1)))
2047 ;; Local variables: 2041 ;; Local variables:
2048 ;; generated-autoload-file: "loaddefs.el" 2042 ;; generated-autoload-file: "loaddefs.el"
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