diff options
| author | Glenn Morris | 2010-11-08 21:33:07 -0800 |
|---|---|---|
| committer | Glenn Morris | 2010-11-08 21:33:07 -0800 |
| commit | 9b026d9f13d4a7694e9dfebce171564cf8ec2dd4 (patch) | |
| tree | 121689d8882db5afa0b45d393f9fd0656fb5cc2e /lisp/calc | |
| parent | 44d51d846021b503fa5e8fe9683efd243c9b24f0 (diff) | |
| download | emacs-9b026d9f13d4a7694e9dfebce171564cf8ec2dd4.tar.gz emacs-9b026d9f13d4a7694e9dfebce171564cf8ec2dd4.zip | |
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.
Diffstat (limited to 'lisp/calc')
| -rw-r--r-- | lisp/calc/calc-keypd.el | 9 | ||||
| -rw-r--r-- | lisp/calc/calc-yank.el | 12 |
2 files changed, 7 insertions, 14 deletions
diff --git a/lisp/calc/calc-keypd.el b/lisp/calc/calc-keypd.el index e4dc5f5a88b..f0a37ad3b74 100644 --- a/lisp/calc/calc-keypd.el +++ b/lisp/calc/calc-keypd.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; calc-keypd.el --- mouse-capable keypad input for Calc | 1 | ;;; calc-keypd.el --- mouse-capable keypad input for Calc |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1990, 1991, 1992, 1993, 2001, 2002, 2003, 2004, | 3 | ;; Copyright (C) 1990, 1991, 1992, 1993, 2001, 2002, 2003, 2004, 2005, |
| 4 | ;; 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | 4 | ;; 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: David Gillespie <daveg@synaptics.com> | 6 | ;; Author: David Gillespie <daveg@synaptics.com> |
| 7 | ;; Maintainer: Jay Belanger <jay.p.belanger@gmail.com> | 7 | ;; Maintainer: Jay Belanger <jay.p.belanger@gmail.com> |
| @@ -390,9 +390,7 @@ | |||
| 390 | (interactive) | 390 | (interactive) |
| 391 | (unless (eq major-mode 'calc-keypad-mode) | 391 | (unless (eq major-mode 'calc-keypad-mode) |
| 392 | (error "Must be in *Calc Keypad* buffer for this command")) | 392 | (error "Must be in *Calc Keypad* buffer for this command")) |
| 393 | (let* ((row (save-excursion | 393 | (let* ((row (count-lines (point-min) (point-at-bol))) |
| 394 | (beginning-of-line) | ||
| 395 | (count-lines (point-min) (point)))) | ||
| 396 | (y (/ row 2)) | 394 | (y (/ row 2)) |
| 397 | (x (/ (current-column) (if (>= y 4) 6 5))) | 395 | (x (/ (current-column) (if (>= y 4) 6 5))) |
| 398 | radix frac inv | 396 | radix frac inv |
| @@ -619,5 +617,4 @@ | |||
| 619 | 617 | ||
| 620 | (provide 'calc-keypd) | 618 | (provide 'calc-keypd) |
| 621 | 619 | ||
| 622 | ;; arch-tag: 4ba0d360-2bb6-40b8-adfa-eb373765b3f9 | ||
| 623 | ;;; calc-keypd.el ends here | 620 | ;;; calc-keypd.el ends here |
diff --git a/lisp/calc/calc-yank.el b/lisp/calc/calc-yank.el index 63b3cb03322..0588f31de15 100644 --- a/lisp/calc/calc-yank.el +++ b/lisp/calc/calc-yank.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; calc-yank.el --- kill-ring functionality for Calc | 1 | ;;; calc-yank.el --- kill-ring functionality for Calc |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1990, 1991, 1992, 1993, 2001, 2002, 2003, 2004, | 3 | ;; Copyright (C) 1990, 1991, 1992, 1993, 2001, 2002, 2003, 2004, 2005, |
| 4 | ;; 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | 4 | ;; 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: David Gillespie <daveg@synaptics.com> | 6 | ;; Author: David Gillespie <daveg@synaptics.com> |
| 7 | ;; Maintainer: Jay Belanger <jay.p.belanger@gmail.com> | 7 | ;; Maintainer: Jay Belanger <jay.p.belanger@gmail.com> |
| @@ -282,11 +282,8 @@ With prefix arg, also delete the region." | |||
| 282 | (setq single t) | 282 | (setq single t) |
| 283 | (setq arg (prefix-numeric-value arg)) | 283 | (setq arg (prefix-numeric-value arg)) |
| 284 | (if (= arg 0) | 284 | (if (= arg 0) |
| 285 | (save-excursion | 285 | (setq top (point-at-bol) |
| 286 | (beginning-of-line) | 286 | bot (point-at-eol)) |
| 287 | (setq top (point)) | ||
| 288 | (end-of-line) | ||
| 289 | (setq bot (point))) | ||
| 290 | (save-excursion | 287 | (save-excursion |
| 291 | (setq top (point)) | 288 | (setq top (point)) |
| 292 | (forward-line arg) | 289 | (forward-line arg) |
| @@ -713,5 +710,4 @@ To cancel the edit, simply kill the *Calc Edit* buffer." | |||
| 713 | ;; generated-autoload-file: "calc-loaddefs.el" | 710 | ;; generated-autoload-file: "calc-loaddefs.el" |
| 714 | ;; End: | 711 | ;; End: |
| 715 | 712 | ||
| 716 | ;; arch-tag: ca61019e-caca-4daa-b32c-b6afe372d5b5 | ||
| 717 | ;;; calc-yank.el ends here | 713 | ;;; calc-yank.el ends here |