all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#11241: 24.1.50; emacs-lock is ill uncompiled (lexical binding problem?)
@ 2012-04-14  1:26 Michael Heerdegen
  2012-04-14  2:06 ` Juanma Barranquero
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Heerdegen @ 2012-04-14  1:26 UTC (permalink / raw)
  To: 11241

Hello,

steps to reproduce:

1. emacs -Q
2. load emacs-lock.el  (the source, not the compiled file)
3. In any buffer: M-x emacs-lock-mode

==>

Debugger entered--Lisp error: (void-variable arg)
  (emacs-lock--set-mode mode arg)
  (lambda (mode) (emacs-lock--set-mode mode arg))(t)
  (let ((last-message (current-message))) ((lambda (mode) (emacs-lock--set-mode mode arg)) (if (eq arg (quote toggle)) (not emacs-lock-mode) (> (prefix-numeric-value arg) 0))) (when emacs-lock-mode (setq emacs-lock--old-mode emacs-lock-mode) (setq emacs-lock--try-unlocking (and (if (eq emacs-lock-unlockable-modes t) (emacs-lock-live-process-p (current-buffer)) (assq major-mode emacs-lock-unlockable-modes)) t))) (run-hooks (quote emacs-lock-mode-hook) (if emacs-lock-mode (quote emacs-lock-mode-on-hook) (quote emacs-lock-mode-off-hook))) (if (called-interactively-p (quote any)) (progn nil (unless (and (current-message) (not (equal last-message (current-message)))) (message "Emacs-Lock mode %sabled" (if emacs-lock-mode "en" "dis"))))))
  emacs-lock-mode(toggle)
  call-interactively(emacs-lock-mode t nil)
  execute-extended-command(nil)
  call-interactively(execute-extended-command nil nil)

`arg' is free in the anonymous mode setter function in the definition
of `emacs-lock-mode':

| :variable (emacs-lock-mode .
|                              (lambda (mode)
|                                (emacs-lock--set-mode mode arg)))

Seems this is related to lexical binding.

You don't get that error when you use the compiled code, however.


Regards,

Michael.


In GNU Emacs 24.1.50.1 (i486-pc-linux-gnu, GTK+ Version 3.2.3)
 of 2012-04-10 on zelenka, modified by Debian
 (emacs-snapshot package, version 2:20120410-1)
Windowing system distributor `The X.Org Foundation', version 11.0.11104000
Configured using:
 `configure '--build' 'i486-linux-gnu' '--host' 'i486-linux-gnu'
 '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib'
 '--localstatedir=/var' '--infodir=/usr/share/info'
 '--mandir=/usr/share/man' '--with-pop=yes'
 '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/24.1.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.1.50/site-lisp:/usr/share/emacs/site-lisp'
 '--without-compress-info' '--with-crt-dir=/usr/lib/i386-linux-gnu/'
 '--with-x=yes' '--with-x-toolkit=gtk3' '--with-imagemagick=yes'
 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu'
 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2''






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

end of thread, other threads:[~2012-04-14 13:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-14  1:26 bug#11241: 24.1.50; emacs-lock is ill uncompiled (lexical binding problem?) Michael Heerdegen
2012-04-14  2:06 ` Juanma Barranquero
2012-04-14 12:47   ` Stefan Monnier
2012-04-14 13:31     ` Juanma Barranquero
2012-04-14 13:35       ` Juanma Barranquero

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.