Mercurial > emacs
comparison lisp/simple.el @ 82950:ed8435ec5652 before-merge-multi-tty-to-trunk
(invisible-p): Remove: implemented in C now.
(line-move-invisible-p): Remove obsolete alias.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Wed, 29 Aug 2007 01:14:48 +0000 |
parents | 92ccd83174e6 |
children | a73440d2f146 b83d0dadb2a7 |
comparison
equal
deleted
inserted
replaced
82949:9547b9f35042 | 82950:ed8435ec5652 |
---|---|
3637 "*Non-nil means \\[next-line] and \\[previous-line] ignore invisible lines. | 3637 "*Non-nil means \\[next-line] and \\[previous-line] ignore invisible lines. |
3638 Outline mode sets this." | 3638 Outline mode sets this." |
3639 :type 'boolean | 3639 :type 'boolean |
3640 :group 'editing-basics) | 3640 :group 'editing-basics) |
3641 | 3641 |
3642 (defun invisible-p (pos) | |
3643 "Return non-nil if the character after POS is currently invisible." | |
3644 (let ((prop | |
3645 (get-char-property pos 'invisible))) | |
3646 (if (eq buffer-invisibility-spec t) | |
3647 prop | |
3648 (or (memq prop buffer-invisibility-spec) | |
3649 (assq prop buffer-invisibility-spec))))) | |
3650 (define-obsolete-function-alias 'line-move-invisible-p 'invisible-p) | |
3651 | |
3652 ;; Returns non-nil if partial move was done. | 3642 ;; Returns non-nil if partial move was done. |
3653 (defun line-move-partial (arg noerror to-end) | 3643 (defun line-move-partial (arg noerror to-end) |
3654 (if (< arg 0) | 3644 (if (< arg 0) |
3655 ;; Move backward (up). | 3645 ;; Move backward (up). |
3656 ;; If already vscrolled, reduce vscroll | 3646 ;; If already vscrolled, reduce vscroll |