* Icicle mode and supercite (gnus) - Lisp error on attribution completion
@ 2007-05-24 5:11 Anupam Sengupta
2007-05-24 15:27 ` Icicle mode and supercite (gnus) - Lisp error on attributioncompletion Drew Adams
0 siblings, 1 reply; 2+ messages in thread
From: Anupam Sengupta @ 2007-05-24 5:11 UTC (permalink / raw)
To: help-gnu-emacs
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("\b.\f.ÅÆ Ç#.\x17.ÈÉ\nÊ.\vËBÌ&.\x14Ê." [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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-05-24 15:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-24 5:11 Icicle mode and supercite (gnus) - Lisp error on attribution completion Anupam Sengupta
2007-05-24 15:27 ` Icicle mode and supercite (gnus) - Lisp error on attributioncompletion Drew Adams
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).