all messages for Emacs-related lists mirrored at yhetil.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 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.