[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

call-interactively 3rd arg cannot be a string

From: Drew Adams
Subject: call-interactively 3rd arg cannot be a string
Date: Sun, 24 Sep 2006 02:15:31 -0700

The doc string for `call-interactively' says that the third arg is, by
default, the value of (this-command-keys), which sometimes returns a
string and sometimes a vector.  According to the manual, it returns "a
string if all events in the sequence were characters that fit in a

However, `call-interactively' barfs if this third arg is a string.

emacs -Q
M-: (call-interactively 'ignore nil "^M") ; where ^M is input by C-q C-m

gives an error (wrong-type-argument vectorp "

It should work with string args also, because a typical use might be
to save the value of (this-command-keys) at some point, and then use
it later with `call-interactively'. (Although
`this-command-keys-vector' could be used instead.)

If it is decided that it should not work with strings, then the doc
string and manual need to be corrected to not give the impression that
it should.

In GNU Emacs (i386-msvc-nt5.1.2600)
 of 2006-07-19 on BOS-CTHEWLAP2
X server distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-msvc (12.00)'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ENU
  locale-coding-system: cp1252
  default-enable-multibyte-characters: t

Major mode: Dired by name

Minor modes in effect:
  encoded-kbd-mode: t
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  line-number-mode: t

Recent input:
<help-echo> <help-echo> <help-echo> <help-echo> <menu-bar>
<help-menu> <report-emacs-bug>

Recent messages:
(C:\Emacs-22-2006-07-19-Fran\bin\emacs.exe -q --no-site-file --debug-init
Loading encoded-kb...done
For information about the GNU Project and its goals, type C-h C-p.
Loading dired...
Loading regexp-opt...done
Loading dired...done
Loading emacsbug...done

reply via email to

[Prev in Thread] Current Thread [Next in Thread]