Mercurial > emacs
comparison lisp/emacs-lisp/chart.el @ 111433:05dc9dca8729
Replace end-of-line, save-excursion etc with point-at-eol, point-at-bol.
* lisp/mh-e/mh-seq.el (mh-read-msg-list): Use point-at-eol.
* lisp/gnus/gnus-bookmark.el (gnus-bookmark-bmenu-show-infos)
(gnus-bookmark-kill-line): Use point-at-eol.
* lisp/cedet/ede/proj-elisp.el (ede-proj-flush-autoconf): Use point-at-bol.
* lisp/emacs-lisp/chart.el (chart-zap-chars):
* lisp/play/decipher.el (decipher-set-map):
* lisp/progmodes/ada-mode.el (ada-get-current-indent)
(ada-search-ignore-string-comment, ada-tab-hard, ada-untab-hard):
* lisp/progmodes/ada-prj.el (ada-prj-load-from-file, ada-prj-display-help):
* lisp/progmodes/ada-xref.el (ada-initialize-runtime-library)
(ada-get-all-references):
* lisp/progmodes/cperl-mode.el (cperl-electric-paren)
(cperl-electric-rparen, cperl-electric-keyword, cperl-electric-else)
(cperl-linefeed, cperl-sniff-for-indent, cperl-to-comment-or-eol)
(cperl-find-pods-heres, cperl-indent-exp, cperl-fix-line-spacing)
(cperl-word-at-point-hard):
* lisp/progmodes/idlw-shell.el (idlwave-shell-move-or-history)
(idlwave-shell-filename-string, idlwave-shell-batch-command)
(idlwave-shell-display-line):
* lisp/progmodes/idlwave.el (idlwave-show-begin, idlwave-fill-paragraph)
(idlwave-calc-hanging-indent, idlwave-auto-fill, idlwave-template):
* lisp/progmodes/js.el (js--re-search-forward-inner)
(js--re-search-backward-inner):
* lisp/progmodes/vhdl-mode.el (vhdl-align-region-1, vhdl-align-region-2)
(vhdl-fix-clause, vhdl-compose-configuration-architecture):
* lisp/progmodes/ruby-mode.el (ruby-parse-partial, eval-when-compile):
* lisp/textmodes/flyspell.el (flyspell-process-localwords):
* lisp/textmodes/ispell.el (ispell-buffer-local-parsing)
(ispell-buffer-local-dict, ispell-buffer-local-words):
Use point-at-bol and point-at-eol.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Sat, 06 Nov 2010 18:36:33 -0700 |
parents | cc035ccb9275 |
children | 6e613fbf73d7 |
comparison
equal
deleted
inserted
replaced
111432:8de1e4554e5e | 111433:05dc9dca8729 |
---|---|
1 ;;; chart.el --- Draw charts (bar charts, etc) | 1 ;;; chart.el --- Draw charts (bar charts, etc) |
2 | 2 |
3 ;; Copyright (C) 1996, 1998, 1999, 2001, 2004, 2005, 2007, 2008, 2009, 2010 | 3 ;; Copyright (C) 1996, 1998, 1999, 2001, 2004, 2005, 2007, 2008, 2009, |
4 ;; Free Software Foundation, Inc. | 4 ;; 2010 Free Software Foundation, Inc. |
5 | 5 |
6 ;; Author: Eric M. Ludlam <zappo@gnu.org> | 6 ;; Author: Eric M. Ludlam <zappo@gnu.org> |
7 ;; Version: 0.2 | 7 ;; Version: 0.2 |
8 ;; Keywords: OO, chart, graph | 8 ;; Keywords: OO, chart, graph |
9 | 9 |
523 (remove-text-properties p (point) '(face)))))) | 523 (remove-text-properties p (point) '(face)))))) |
524 | 524 |
525 (defun chart-zap-chars (n) | 525 (defun chart-zap-chars (n) |
526 "Zap up to N chars without deleting EOLs." | 526 "Zap up to N chars without deleting EOLs." |
527 (if (not (eobp)) | 527 (if (not (eobp)) |
528 (if (< n (- (save-excursion (end-of-line) (point)) (point))) | 528 (if (< n (- (point-at-eol) (point))) |
529 (delete-char n) | 529 (delete-char n) |
530 (delete-region (point) (save-excursion (end-of-line) (point)))))) | 530 (delete-region (point) (point-at-eol))))) |
531 | 531 |
532 (defun chart-display-label (label dir zone start end &optional face) | 532 (defun chart-display-label (label dir zone start end &optional face) |
533 "Display LABEL in direction DIR in column/row ZONE between START and END. | 533 "Display LABEL in direction DIR in column/row ZONE between START and END. |
534 Optional argument FACE is the property we wish to place on this text." | 534 Optional argument FACE is the property we wish to place on this text." |
535 (if (eq dir 'horizontal) | 535 (if (eq dir 'horizontal) |
744 )) | 744 )) |
745 | 745 |
746 | 746 |
747 (provide 'chart) | 747 (provide 'chart) |
748 | 748 |
749 ;; arch-tag: 43847e44-5b45-465e-adc9-e505490a6b59 | |
750 ;;; chart.el ends here | 749 ;;; chart.el ends here |