comparison lisp/term.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 2b266010d0b7
comparison
equal deleted inserted replaced
111444:60f509c70b61 111445:56b71cddc9c5
2609 2609
2610 ;; Move DELTA column right (or left if delta < 0 limiting at column 0). 2610 ;; Move DELTA column right (or left if delta < 0 limiting at column 0).
2611 2611
2612 (defun term-move-columns (delta) 2612 (defun term-move-columns (delta)
2613 (setq term-current-column (max 0 (+ (term-current-column) delta))) 2613 (setq term-current-column (max 0 (+ (term-current-column) delta)))
2614 (let (point-at-eol) 2614 (let ((point-at-eol (line-end-position)))
2615 (save-excursion
2616 (end-of-line)
2617 (setq point-at-eol (point)))
2618 (move-to-column term-current-column t) 2615 (move-to-column term-current-column t)
2619 ;; If move-to-column extends the current line it will use the face 2616 ;; If move-to-column extends the current line it will use the face
2620 ;; from the last character on the line, set the face for the chars 2617 ;; from the last character on the line, set the face for the chars
2621 ;; to default. 2618 ;; to default.
2622 (when (> (point) point-at-eol) 2619 (when (> (point) point-at-eol)
3790 (defun term-insert-spaces (count) 3787 (defun term-insert-spaces (count)
3791 (let ((save-point (point)) (save-eol) (pnt-at-eol)) 3788 (let ((save-point (point)) (save-eol) (pnt-at-eol))
3792 (term-vertical-motion 1) 3789 (term-vertical-motion 1)
3793 (when (bolp) 3790 (when (bolp)
3794 (backward-char)) 3791 (backward-char))
3795 (setq save-eol (point)) 3792 (setq save-eol (point)
3796 (save-excursion 3793 pnt-at-eol (line-end-position))
3797 (end-of-line)
3798 (setq pnt-at-eol (point)))
3799 (move-to-column (+ (term-start-line-column) (- term-width count)) t) 3794 (move-to-column (+ (term-start-line-column) (- term-width count)) t)
3800 ;; If move-to-column extends the current line it will use the face 3795 ;; If move-to-column extends the current line it will use the face
3801 ;; from the last character on the line, set the face for the chars 3796 ;; from the last character on the line, set the face for the chars
3802 ;; to default. 3797 ;; to default.
3803 (when (>= (point) pnt-at-eol) 3798 (when (>= (point) pnt-at-eol)