comparison lisp/mail/mspools.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 6e6f966c3473
children 417b1e4d63cd
comparison
equal deleted inserted replaced
111444:60f509c70b61 111445:56b71cddc9c5
1 ;;; mspools.el --- show mail spools waiting to be read 1 ;;; mspools.el --- show mail spools waiting to be read
2 2
3 ;; Copyright (C) 1997, 2001, 2002, 2003, 2004, 2005, 3 ;; Copyright (C) 1997, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
4 ;; 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 4 ;; 2009, 2010 Free Software Foundation, Inc.
5 5
6 ;; Author: Stephen Eglen <stephen@gnu.org> 6 ;; Author: Stephen Eglen <stephen@gnu.org>
7 ;; Maintainer: Stephen Eglen <stephen@gnu.org> 7 ;; Maintainer: Stephen Eglen <stephen@gnu.org>
8 ;; Created: 22 Jan 1997 8 ;; Created: 22 Jan 1997
9 ;; Keywords: mail 9 ;; Keywords: mail
278 (delete-char 1) 278 (delete-char 1)
279 (setq buffer-read-only t) 279 (setq buffer-read-only t)
280 )) 280 ))
281 281
282 (message "folder %s spool %s" folder-name spool-name) 282 (message "folder %s spool %s" folder-name spool-name)
283 (if (eq (count-lines (point-min) 283 (if (eq (count-lines (point-min) (point-at-eol))
284 (save-excursion
285 (end-of-line)
286 (point)))
287 mspools-files-len) 284 mspools-files-len)
288 (forward-line (- 1 mspools-files-len)) ;back to top of list 285 (forward-line (- 1 mspools-files-len)) ;back to top of list
289 ;; else just on to next line 286 ;; else just on to next line
290 (forward-line 1)) 287 (forward-line 1))
291 288
321 ;(mspools-get-folder-from-spool "happy.spool") 318 ;(mspools-get-folder-from-spool "happy.spool")
322 ;(mspools-get-folder-from-spool "happy.sp") 319 ;(mspools-get-folder-from-spool "happy.sp")
323 320
324 (defun mspools-get-spool-name () 321 (defun mspools-get-spool-name ()
325 "Return the name of the spool on the current line." 322 "Return the name of the spool on the current line."
326 (let ((line-num (1- (count-lines (point-min) 323 (let ((line-num (1- (count-lines (point-min) (point-at-eol)))))
327 (save-excursion
328 (end-of-line)
329 (point))
330 ))))
331 (car (nth line-num mspools-files)))) 324 (car (nth line-num mspools-files))))
332 325
333 ;;; Spools mode functions 326 ;;; Spools mode functions
334 327
335 (defun mspools-revert-buffer (ignore noconfirm) 328 (defun mspools-revert-buffer (ignore noconfirm)
409 ;; else SPOOL is empty 402 ;; else SPOOL is empty
410 nil))) 403 nil)))
411 404
412 (provide 'mspools) 405 (provide 'mspools)
413 406
414 ;; arch-tag: 8990b3ee-68c8-4892-98f1-51a735c8bac6
415 ;;; mspools.el ends here 407 ;;; mspools.el ends here