[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/emacs-lisp/lisp.el
From: |
Kai Großjohann |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/emacs-lisp/lisp.el |
Date: |
Sun, 17 Feb 2002 10:07:35 -0500 |
Index: emacs/lisp/emacs-lisp/lisp.el
diff -c emacs/lisp/emacs-lisp/lisp.el:1.45 emacs/lisp/emacs-lisp/lisp.el:1.46
*** emacs/lisp/emacs-lisp/lisp.el:1.45 Fri Feb 15 03:53:15 2002
--- emacs/lisp/emacs-lisp/lisp.el Sun Feb 17 10:07:35 2002
***************
*** 259,275 ****
If this command is repeated, marks more defuns after the ones
already marked."
(interactive)
! (let (here)
! (when (and (eq last-command this-command) (mark t))
! (setq here (point))
! (goto-char (mark)))
! (push-mark (point))
! (end-of-defun)
! (push-mark (point) nil t)
! (if here
! (goto-char here)
! (beginning-of-defun)
! (re-search-backward "^\n" (- (point) 1) t))))
(defun narrow-to-defun (&optional arg)
"Make text outside current defun invisible.
--- 259,276 ----
If this command is repeated, marks more defuns after the ones
already marked."
(interactive)
! (cond ((and (eq last-command this-command) (mark t))
! (set-mark
! (save-excursion
! (goto-char (mark))
! (end-of-defun)
! (point))))
! (t
! (push-mark (point))
! (end-of-defun)
! (push-mark (point) nil t)
! (beginning-of-defun)
! (re-search-backward "^\n" (- (point) 1) t))))
(defun narrow-to-defun (&optional arg)
"Make text outside current defun invisible.