unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Strange behavior of (beginning-of-defun 0)
@ 2017-02-08  5:29 Marcin Borkowski
  2017-02-22  9:13 ` Marcin Borkowski
  0 siblings, 1 reply; 2+ messages in thread
From: Marcin Borkowski @ 2017-02-08  5:29 UTC (permalink / raw)
  To: Emacs developers

Hi all,

put this in an Elisp buffer:

--8<---------------cut here---------------start------------->8---
(defun a ()
  nil)
-!-(defun b ()
  nil)
--8<---------------cut here---------------end--------------->8---

put the point where the -!- is (of course, "-!-" is only a marker and
should not be in the buffer;-)) and say M-: (beginning-of-defun 0) (or
C-u 0 C-M-a).  The point goes up one line.

Is that intended?  Is the behavior of (beginning-of-defun 0) defined at
all?

Best,

--
Marcin Borkowski



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-02-22  9:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-08  5:29 Strange behavior of (beginning-of-defun 0) Marcin Borkowski
2017-02-22  9:13 ` Marcin Borkowski

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).