comparison lisp/progmodes/idlw-shell.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 046351ea9819
comparison
equal deleted inserted replaced
111444:60f509c70b61 111445:56b71cddc9c5
2589 (idlwave-shell-pc-frame) 2589 (idlwave-shell-pc-frame)
2590 ;; In source 2590 ;; In source
2591 (list (idlwave-shell-file-name (buffer-file-name)) 2591 (list (idlwave-shell-file-name (buffer-file-name))
2592 (save-restriction 2592 (save-restriction
2593 (widen) 2593 (widen)
2594 (save-excursion 2594 (1+ (count-lines 1 (point-at-bol)))))))
2595 (beginning-of-line)
2596 (1+ (count-lines 1 (point))))))))
2597 2595
2598 (defun idlwave-shell-current-module () 2596 (defun idlwave-shell-current-module ()
2599 "Return the name of the module for the current file. 2597 "Return the name of the module for the current file.
2600 Returns nil if unable to obtain a module name." 2598 Returns nil if unable to obtain a module name."
2601 (if (eq (current-buffer) (get-buffer (idlwave-shell-buffer))) 2599 (if (eq (current-buffer) (get-buffer (idlwave-shell-buffer)))
3643 (mapcar 'list (mapcar 'car idlwave-shell-bp-glyph)) 3641 (mapcar 'list (mapcar 'car idlwave-shell-bp-glyph))
3644 (list (list 'bp)))) 3642 (list (list 'bp))))
3645 (while (setq bp (pop bp-list)) 3643 (while (setq bp (pop bp-list))
3646 (save-excursion 3644 (save-excursion
3647 (idlwave-shell-goto-frame (car bp)) 3645 (idlwave-shell-goto-frame (car bp))
3648 (let* ((end (progn (end-of-line 1) (point))) 3646 (let* ((end (point-at-eol))
3649 (beg (progn (beginning-of-line 1) (point))) 3647 (beg (progn (beginning-of-line 1) (point)))
3650 (condition (idlwave-shell-bp-get bp 'condition)) 3648 (condition (idlwave-shell-bp-get bp 'condition))
3651 (count (idlwave-shell-bp-get bp 'count)) 3649 (count (idlwave-shell-bp-get bp 'count))
3652 (disabled (idlwave-shell-bp-get bp 'disabled)) 3650 (disabled (idlwave-shell-bp-get bp 'disabled))
3653 (type (if idlwave-shell-bp-glyph 3651 (type (if idlwave-shell-bp-glyph
3997 (setq cfun (point)) 3995 (setq cfun (point))
3998 (setq idlwave-shell-sources-alist 3996 (setq idlwave-shell-sources-alist
3999 (append 3997 (append
4000 ;; compiled procedures 3998 ;; compiled procedures
4001 (progn 3999 (progn
4002 (beginning-of-line) 4000 (narrow-to-region cpro (point-at-bol))
4003 (narrow-to-region cpro (point))
4004 (goto-char (point-min)) 4001 (goto-char (point-min))
4005 (idlwave-shell-sources-grep)) 4002 (idlwave-shell-sources-grep))
4006 ;; compiled functions 4003 ;; compiled functions
4007 (progn 4004 (progn
4008 (widen) 4005 (widen)