comparison lisp/progmodes/sh-script.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 b10051866f51
children b47e85affa59
comparison
equal deleted inserted replaced
111444:60f509c70b61 111445:56b71cddc9c5
1 ;;; sh-script.el --- shell-script editing commands for Emacs 1 ;;; sh-script.el --- shell-script editing commands for Emacs
2 2
3 ;; Copyright (C) 1993, 1994, 1995, 1996, 1997, 1999, 2001, 2002, 2003, 3 ;; Copyright (C) 1993, 1994, 1995, 1996, 1997, 1999, 2001, 2002, 2003,
4 ;; 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 4 ;; 2004, 2005, 2006, 2007, 2008, 2009, 2010
5 ;; Free Software Foundation, Inc.
5 6
6 ;; Author: Daniel Pfeiffer <occitan@esperanto.org> 7 ;; Author: Daniel Pfeiffer <occitan@esperanto.org>
7 ;; Version: 2.0f 8 ;; Version: 2.0f
8 ;; Maintainer: FSF 9 ;; Maintainer: FSF
9 ;; Keywords: languages, unix 10 ;; Keywords: languages, unix
2134 (list '(+ sh-indent-for-do)))) 2135 (list '(+ sh-indent-for-do))))
2135 2136
2136 (defun sh-handle-prev-do () 2137 (defun sh-handle-prev-do ()
2137 (cond 2138 (cond
2138 ((save-restriction 2139 ((save-restriction
2139 (narrow-to-region 2140 (narrow-to-region (point) (line-beginning-position))
2140 (point)
2141 (save-excursion
2142 (beginning-of-line)
2143 (point)))
2144 (sh-goto-match-for-done)) 2141 (sh-goto-match-for-done))
2145 (sh-debug "match for done found on THIS line") 2142 (sh-debug "match for done found on THIS line")
2146 (list '(+ sh-indent-after-loop-construct))) 2143 (list '(+ sh-indent-after-loop-construct)))
2147 ((sh-goto-match-for-done) 2144 ((sh-goto-match-for-done)
2148 (sh-debug "match for done found on PREV line") 2145 (sh-debug "match for done found on PREV line")
3838 (delete-region (1+ (point)) 3835 (delete-region (1+ (point))
3839 (progn (skip-chars-backward " \t") (point))))))) 3836 (progn (skip-chars-backward " \t") (point)))))))
3840 3837
3841 (provide 'sh-script) 3838 (provide 'sh-script)
3842 3839
3843 ;; arch-tag: eccd8b72-f337-4fc2-ae86-18155a69d937
3844 ;;; sh-script.el ends here 3840 ;;; sh-script.el ends here