all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: <12232@debbugs.gnu.org>
Subject: bug#12232: 24.1.50; regression: repeat.el commit 2012-05-05 breaks repeating commands
Date: Sun, 16 Sep 2012 16:31:10 -0700	[thread overview]
Message-ID: <369FB5C211D4407489000C7115235169@us.oracle.com> (raw)
In-Reply-To: <4C0A1DE8E67F4B1CA042021E47552C18@us.oracle.com>

> > Stefan, could you please take a look at this?
> > 
> > This comment in the version of repeat.el before your change 
> > might be pertinent, as it refers to a symptom (nesting exceeding 
> > `max-lisp-eval-depth') similar to what I am seeing now:
> > 
> >  ;; A simple recursion here gets into trouble with 
> >  ;; max-lisp-eval-depth on long sequences of repetitions
> >  ;; of a command like `forward-word' (only 32 repetitions
> >  ;; are possible given the default value of 200 for
> >  ;; max-lisp-eval-depth), but if I now locally disable 
> >  ;; the repeat char I can iterate indefinitely here
> >  ;; around a single level of recursion.
> 
> The problem arises when I add this binding to the let:
>  (repeat-message-function 'ignore)
> 
> I.e.,
> (defun repeat-command (command)
>   "Repeat COMMAND."
>  (interactive)
>  (let ((repeat-previous-repeated-command  command)
>        (repeat-message-function           'ignore) ; <=====
>        (last-repeatable-command           'repeat))
>    (repeat nil)))
>  
> (defun backward-char-repeat ()
>   "Like `backward-char'..."
>   (interactive)
>   (repeat-command 'backward-char))
>  
> (define-key ctl-x-map [up] 'backward-char-repeat)
> 
> The binding of `repeat-message-function' to `ignore' is to 
> suppress a repeat message.  If I need to do that differently
> from now on, please advise how - IOW, how to work around
> this `max-lisp-eval-depth' bug.  Thx.


ping







  reply	other threads:[~2012-09-16 23:31 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-19  2:55 bug#12232: 24.1.50; regression: repeat.el commit 2012-05-05 breaks repeating commands Drew Adams
2012-08-24 14:57 ` Drew Adams
2012-09-03 15:33   ` Drew Adams
2012-09-04  3:53     ` Drew Adams
2012-09-16 23:31       ` Drew Adams [this message]
2012-09-24  0:48         ` Drew Adams
2012-10-19  1:54           ` Drew Adams
2012-10-19 14:16             ` Stefan Monnier
2012-10-19 14:32               ` Drew Adams
2012-10-23 16:58       ` Stefan Monnier
2012-10-23 17:08         ` Drew Adams

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=369FB5C211D4407489000C7115235169@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=12232@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 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.