help-gnu-emacs
[Top][All Lists]
Advanced

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

Icicle mode and supercite (gnus) - Lisp error on attribution completion


From: Anupam Sengupta
Subject: Icicle mode and supercite (gnus) - Lisp error on attribution completion
Date: Wed, 23 May 2007 22:11:14 -0700
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (darwin)

When using gnus+supercite along with Icicle mode, the icicle-completion seems to
interact badly with the attribution completion prompt from SuperCite and
generates the lisp error:

(wrong-type-argument listp 0)

The error does not appear at all if icicle-mode is turned off, and all
citation/follow-up in Gnus works correctly as expected.

The issue /may/ be with the mini-buffer completion feature of Icicle, whose
interaction with the SuperCite prompt for Attribution completion does not work
too well.

------ DEBUG-TRACE FOLLOWS -----

After (setq debug-on-error t) and trying a followup in Gnus (for any message), I
got the following backtrace: 

Debugger entered--Lisp error: (wrong-type-argument listp 0)
  length(("Drew" . 0))
  (> (length initial-input) (- (window-width ...) (length prompt)))
  (or (null icicle-reminder-prompt-flag) (and (wholenump 
icicle-reminder-prompt-flag) (zerop icicle-reminder-prompt-flag)) (> (length 
initial-input) (- ... ...)))
  (cond ((not icicle-mode) (setq icicle-prompt prompt) (setq result ...)) ((or 
... ... ...) (setq icicle-prompt ...) (let ... ...)) (t (setq icicle-prompt 
...) (let ... ...)))
  (let* ((minibuffer-completion-table table) (completing-prompt-prefix-symb 
...) (completing-prompt-prefix ...) result) (when (and ... ... ...) (setq 
minibuffer-completion-table ...)) (cond (... ... ...) (... ... ...) (t ... 
...)) (when require-match (icicle-remove-Completions-window)) result)
  completing-read("Complete attribution name: " (("Drew") ("Adams") 
("drew.adams") ("DA")) nil nil ("Drew" . 0) sc-attribution-confirmation-history)
  byte-code(".\f.ÅÆ    Ç#..ÈÉ\nÊ.ËBÌ&.Ê." [sc-attrib-or-cite citation 
query-alist initial choice read-string "Enter citation prefix: " 
sc-citation-confirmation-history completing-read "Complete attribution name: " 
nil 0 sc-attribution-confirmation-history] 7)
  sc-select-attribution()
  sc-cite-original()
  run-hooks(mail-citation-hook)
  message-cite-original()
  message-yank-original()
  gnus-inews-yank-articles((29550))
  ...
  <snipped other Gnus functions>
  ...

------ END OF DEBUG-TRACE -------

can anyone help here?

Thanks!
-- 
Anupam


reply via email to

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