Mercurial > emacs
comparison lisp/progmodes/dcl-mode.el @ 111429:249a1455856a
Use line-end-position rather than end-of-line, etc.
* textmodes/texnfo-upd.el (texinfo-start-menu-description)
(texinfo-update-menu-region-beginning, texinfo-menu-first-node)
(texinfo-delete-existing-pointers, texinfo-find-pointer)
(texinfo-clean-up-node-line, texinfo-insert-node-lines)
(texinfo-multiple-files-update):
* textmodes/table.el (table--probe-cell-left-up)
(table--probe-cell-right-bottom):
* textmodes/picture.el (picture-tab-search):
* textmodes/page-ext.el (pages-copy-header-and-position)
(pages-directory-for-addresses):
* progmodes/vera-mode.el (vera-get-offset):
* progmodes/simula.el (simula-calculate-indent):
* progmodes/python.el (python-pdbtrack-overlay-arrow):
* progmodes/prolog.el (end-of-prolog-clause):
* progmodes/perl-mode.el (perl-calculate-indent, perl-indent-exp):
* progmodes/icon.el (indent-icon-exp):
* progmodes/etags.el (tag-re-match-p):
* progmodes/ebrowse.el (ebrowse-show-file-name-at-point):
* progmodes/ebnf2ps.el (ebnf-begin-file):
* progmodes/dcl-mode.el (dcl-back-to-indentation-1)
(dcl-save-local-variable):
* play/life.el (life-setup):
* play/gametree.el (gametree-looking-at-ply):
* nxml/nxml-maint.el (nxml-insert-target-repertoire-glyph-set):
* mail/sendmail.el (mail-mode-auto-fill):
* emacs-lisp/lisp-mode.el (calculate-lisp-indent):
* emacs-lisp/edebug.el (edebug-overlay-arrow):
* emacs-lisp/checkdoc.el (checkdoc-this-string-valid):
* woman.el (woman-parse-numeric-value, woman2-TH, woman2-SH)
(woman-tab-to-tab-stop, WoMan-warn-ignored):
* type-break.el (type-break-file-keystroke-count):
* term.el (term-replace-by-expanded-history-before-point)
(term-skip-prompt, term-extract-string):
* speedbar.el (speedbar-edit-line, speedbar-expand-line)
(speedbar-contract-line, speedbar-toggle-line-expansion)
(speedbar-parse-c-or-c++tag, speedbar-parse-tex-string)
(speedbar-buffer-revert-buffer, speedbar-highlight-one-tag-line):
* sort.el (sort-skip-fields):
* skeleton.el (skeleton-internal-list):
* simple.el (line-move-finish, line-move-to-column):
* shell.el (shell-forward-command):
* misc.el (copy-from-above-command):
* makesum.el (double-column):
* ebuff-menu.el (electric-buffer-update-highlight):
* dired.el (dired-move-to-end-of-filename):
* dframe.el (dframe-popup-kludge):
* bookmark.el (bookmark-kill-line, bookmark-bmenu-show-filenames):
* arc-mode.el (archive-get-lineno):
Use line-end-position and line-beginning-position.
* net/ange-ftp.el, progmodes/hideif.el, reposition.el:
Same, but only in comments.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Sat, 06 Nov 2010 13:23:42 -0700 |
parents | bf6806de6892 |
children | b47e85affa59 |
comparison
equal
deleted
inserted
replaced
111428:043aac1cda3c | 111429:249a1455856a |
---|---|
1 ;;; dcl-mode.el --- major mode for editing DCL command files | 1 ;;; dcl-mode.el --- major mode for editing DCL command files |
2 | 2 |
3 ;; Copyright (C) 1997, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 | 3 ;; Copyright (C) 1997, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, |
4 ;; Free Software Foundation, Inc. | 4 ;; 2009, 2010 Free Software Foundation, Inc. |
5 | 5 |
6 ;; Author: Odd Gripenstam <gripenstamol@decus.se> | 6 ;; Author: Odd Gripenstam <gripenstamol@decus.se> |
7 ;; Maintainer: Odd Gripenstam <gripenstamol@decus.se> | 7 ;; Maintainer: Odd Gripenstam <gripenstamol@decus.se> |
8 ;; Keywords: DCL editing major-mode languages | 8 ;; Keywords: DCL editing major-mode languages |
9 | 9 |
819 ;; 3 2 1 | 819 ;; 3 2 1 |
820 ;; | 820 ;; |
821 ;; text | 821 ;; text |
822 ;; 1 | 822 ;; 1 |
823 | 823 |
824 (let* ((default-limit (save-excursion (end-of-line) (1+ (point)))) | 824 (let* ((default-limit (1+ (line-end-position))) |
825 (limit (or limit default-limit)) | 825 (limit (or limit default-limit)) |
826 (last-good-point (point)) | 826 (last-good-point (point)) |
827 (opoint (point))) | 827 (opoint (point))) |
828 ;; Move over blanks | 828 ;; Move over blanks |
829 (back-to-indentation) | 829 (back-to-indentation) |
1781 ;; The prefix is what comes before "local variables:" in its line. | 1781 ;; The prefix is what comes before "local variables:" in its line. |
1782 ;; The suffix is what comes after "local variables:" in its line. | 1782 ;; The suffix is what comes after "local variables:" in its line. |
1783 (skip-chars-forward " \t") | 1783 (skip-chars-forward " \t") |
1784 (or (eolp) | 1784 (or (eolp) |
1785 (setq suffix-string (buffer-substring (point) | 1785 (setq suffix-string (buffer-substring (point) |
1786 (progn (end-of-line) (point))))) | 1786 (line-end-position)))) |
1787 (goto-char (match-beginning 0)) | 1787 (goto-char (match-beginning 0)) |
1788 (or (bolp) | 1788 (or (bolp) |
1789 (setq prefix-string | 1789 (setq prefix-string |
1790 (buffer-substring (point) | 1790 (buffer-substring (point) |
1791 (progn (beginning-of-line) (point))))) | 1791 (progn (beginning-of-line) (point))))) |
2212 | 2212 |
2213 (provide 'dcl-mode) | 2213 (provide 'dcl-mode) |
2214 | 2214 |
2215 (run-hooks 'dcl-mode-load-hook) ; for your customizations | 2215 (run-hooks 'dcl-mode-load-hook) ; for your customizations |
2216 | 2216 |
2217 ;; arch-tag: e00d421b-f26c-483e-a8bd-af412ea7764a | |
2218 ;;; dcl-mode.el ends here | 2217 ;;; dcl-mode.el ends here |