--- Begin Message ---
Subject: |
table-capture error prompting for columns |
Date: |
Mon, 29 Dec 2008 19:49:12 -0600 |
In table-capture, the prompt for "Number of columns" fails with:
"string-to-number: Wrong type argument: symbolp, (quote
table-capture-columns-history)"
Here is a patch.
Ed Swarthout
Austin, TX
In GNU Emacs 22.2.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2008-11-09 on raven, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.10402000
configured using `configure '--build=i486-linux-gnu' '--host=i486-linux-gnu'
'--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib'
'--localstatedir=/var/lib' '--infodir=/usr/share/info'
'--mandir=/usr/share/man' '--with-pop=yes'
'--enable-locallisppath=/etc/emacs22:/etc/emacs:/usr/local/share/emacs/22.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/22.2/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/22.2/leim'
'--with-x=yes' '--with-x-toolkit=athena' '--with-toolkit-scroll-bars'
'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g
-O2' 'LDFLAGS=-g' 'CPPFLAGS=''
Recent input:
<help-echo> <help-echo> C-x C-f <backspace> <backspace>
/ t m p / t a b <tab> - <tab> <return> C-SPC <down>
<down> <down> M-x M-p t a b l e - c a p t <tab> <return>
, <return> <return> <return> <return> <help-echo> M-x
r e p o r t - e m a c s - b u g <return>
Recent messages:
("/usr/bin/emacs" "-q" "--no-site-file")
For information about GNU Emacs and the GNU system, type C-h C-a.
Mark set
next-history-element: Beginning of history; no preceding item
Loading table...done
string-to-number: Wrong type argument: symbolp, (quote
table-capture-columns-history)
Loading emacsbug...done
Patch:
*** table.el.~1.36.~ 2008-06-14 18:39:07.000000000 -0500
--- table.el 2008-12-29 12:59:39.739210077 -0600
***************
*** 3738,3744 ****
(table--read-from-minibuffer '("Minimum cell width" .
table-capture-min-cell-width-history)))
(if (and (not (string= col-delim-regexp "")) (string= row-delim-regexp
""))
(string-to-number
! (table--read-from-minibuffer '("Number of columns" .
'table-capture-columns-history)))
nil)
)))
(if (> beg end) (let ((tmp beg)) (setq beg end) (setq end tmp)))
--- 3738,3744 ----
(table--read-from-minibuffer '("Minimum cell width" .
table-capture-min-cell-width-history)))
(if (and (not (string= col-delim-regexp "")) (string= row-delim-regexp
""))
(string-to-number
! (table--read-from-minibuffer '("Number of columns" .
table-capture-columns-history)))
nil)
)))
(if (> beg end) (let ((tmp beg)) (setq beg end) (setq end tmp)))
--- End Message ---
--- Begin Message ---
Subject: |
Re: table-capture error prompting for columns |
Date: |
Tue, 30 Dec 2008 11:36:01 -0500 |
> In table-capture, the prompt for "Number of columns" fails with:
>
> "string-to-number: Wrong type argument: symbolp, (quote
> table-capture-columns-history)"
>
> Here is a patch.
Applied, thanks.
--- End Message ---