From: "Andreas Röhler" <andreas.roehler@online.de>
To: emacs-devel@gnu.org
Subject: mark-defun bug
Date: Tue, 1 Apr 2008 14:42:15 +0200 [thread overview]
Message-ID: <200804011442.15821.andreas.roehler@online.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 219 bytes --]
Hi all,
`mark-defun' misses the last char, if a definition is
followed by a buffer-end.
As this bug seems caused by a line not needed, IMO it's
fine to drop it.
Patch attached.
Thanks
Andreas Röhler
[-- Attachment #2: emacs-mark-defun.diff --]
[-- Type: text/x-diff, Size: 489 bytes --]
diff -u -b /old/lisp.el /new/lisp.el
--- /old/lisp.el 2008-03-22 01:10:59.000000000 +0100
+++ /new/lisp.el 2008-04-01 14:15:18.000000000 +0200
@@ -400,8 +400,7 @@
(goto-char opoint)
(end-of-defun)
(push-mark (point) nil t)
- (beginning-of-defun))
- (re-search-backward "^\n" (- (point) 1) t)))))
+ (beginning-of-defun))))))
(defun narrow-to-defun (&optional arg)
"Make text outside current defun invisible.
Diff finished. Tue Apr 1 14:15:45 2008
next reply other threads:[~2008-04-01 12:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-01 12:42 Andreas Röhler [this message]
2008-04-02 8:19 ` mark-defun bug Andreas Röhler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200804011442.15821.andreas.roehler@online.de \
--to=andreas.roehler@online.de \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.