Mercurial > emacs
comparison lisp/progmodes/meta-mode.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 | 1d1d5d9bd884 |
children | ad9b9822ca68 |
comparison
equal
deleted
inserted
replaced
111444:60f509c70b61 | 111445:56b71cddc9c5 |
---|---|
1 ;;; meta-mode.el --- major mode for editing Metafont or MetaPost sources | 1 ;;; meta-mode.el --- major mode for editing Metafont or MetaPost sources |
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: Ulrik Vieth <vieth@thphy.uni-duesseldorf.de> | 6 ;; Author: Ulrik Vieth <vieth@thphy.uni-duesseldorf.de> |
7 ;; Version: 1.0 | 7 ;; Version: 1.0 |
8 ;; Keywords: Metafont, MetaPost, tex, languages | 8 ;; Keywords: Metafont, MetaPost, tex, languages |
9 | 9 |
575 "Indent the line containing point as Metafont or MetaPost source." | 575 "Indent the line containing point as Metafont or MetaPost source." |
576 (interactive) | 576 (interactive) |
577 (let ((indent (meta-indent-calculate))) | 577 (let ((indent (meta-indent-calculate))) |
578 (save-excursion | 578 (save-excursion |
579 (if (/= (current-indentation) indent) | 579 (if (/= (current-indentation) indent) |
580 (let ((beg (progn (beginning-of-line) (point))) | 580 (let ((beg (line-beginning-position)) |
581 (end (progn (back-to-indentation) (point)))) | 581 (end (progn (back-to-indentation) (point)))) |
582 (delete-region beg end) | 582 (delete-region beg end) |
583 (indent-to indent)))) | 583 (indent-to indent)))) |
584 (if (< (current-column) indent) | 584 (if (< (current-column) indent) |
585 (back-to-indentation)))) | 585 (back-to-indentation)))) |
1082 ;;; Just in case ... | 1082 ;;; Just in case ... |
1083 | 1083 |
1084 (provide 'meta-mode) | 1084 (provide 'meta-mode) |
1085 (run-hooks 'meta-mode-load-hook) | 1085 (run-hooks 'meta-mode-load-hook) |
1086 | 1086 |
1087 ;; arch-tag: ec2916b2-3a83-4cf7-962d-d8019370c006 | |
1088 ;;; meta-mode.el ends here | 1087 ;;; meta-mode.el ends here |