unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: 17247@debbugs.gnu.org
Subject: bug#17247: 24.4.50; end-of-defun bug in elisp
Date: Wed, 23 Apr 2014 09:19:33 +0200	[thread overview]
Message-ID: <53576985.9090305@easy-emacs.de> (raw)
In-Reply-To: <m3ha5zqe23.fsf@gmail.com>

Am 12.04.2014 08:04, schrieb Leo Liu:
>
> 1. In a fresh elisp buffer insert the following lines
>
> ;;;; start
> (tan 2)
>
> (sin 2)
> (cos 2)
> ;;;; end
>
> 2. goto end of buffer and execute (end-of-defun -1) a few times
>
> Bug: can not move pass (sin 2)
>
> Leo
>
>
>
>

May confirm that for 24.3.90.1-pretest

Looks like line 407

         (beginning-of-defun-raw (- arg))

must read

  (beginning-of-defun-raw (abs arg))

because it's already decided at that point going backward, so the arg must be positiv for a "beginning-..."
function.


Andreas










  reply	other threads:[~2014-04-23  7:19 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-12  6:04 bug#17247: 24.4.50; end-of-defun bug in elisp Leo Liu
2014-04-23  7:19 ` Andreas Röhler [this message]
2014-05-20  4:01   ` Dmitry Gutov
2014-05-20  7:59     ` Andreas Röhler
2014-05-20 12:12       ` Dmitry Gutov
2014-05-20 15:59         ` Andreas Röhler
2014-05-20 16:39           ` Dmitry Gutov
2014-05-20 14:18       ` Stefan Monnier
2014-05-20 16:33         ` Andreas Röhler
2014-05-20 14:20     ` Stefan Monnier
2014-05-20 16:32       ` Dmitry Gutov
2014-05-20 18:56         ` Stefan Monnier
2014-05-21  2:47           ` Dmitry Gutov

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53576985.9090305@easy-emacs.de \
    --to=andreas.roehler@easy-emacs.de \
    --cc=17247@debbugs.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 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).