--- Begin Message ---
Subject: |
pcomplete bug with special display buffers |
Date: |
Sat, 17 Feb 2007 13:14:44 +0100 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.93 (gnu/linux) |
Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.
Your bug report will be posted to the address@hidden mailing list.
Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:
Hello,
to reproduce the bug:
$ emacs -Q
and eval (setq special-display-regexps '("^\\*Completions\\*$"))
then use some Emacs program that uses pcomplete.el e.g. M-x eshell
and use the completion feature (press TAB at least two times) on
some not unique string, e.g. in eshell just hit TAB
Debugger entered--Lisp error: (wrong-type-argument window-live-p nil)
select-window(nil)
byte-code(<stripped as this confuses gnus to much>)
pcomplete-show-completions(("fold" "font2c" "font2psf" "fontinst" "fontname"
"fontprop" "formail"))
pcomplete-stub("fo" ("fold" "font2c" "font2psf" "fontinst" "fontname"
"fontprop" "formail"))
pcomplete-do-complete("fo" ("fold" "font2c" "font2psf" "fontinst" "fontname"
"fontprop" "formail"))
byte-code(<stripped as this confuses gnus to much>)
pcomplete(1)
call-interactively(pcomplete)
Fix:
*** pcomplete.el 24 Jan 2007 06:19:37 +0100 1.25
--- pcomplete.el 17 Feb 2007 13:11:18 +0100
***************
*** 982,988 ****
;; Needed on a terminal
(event-matches-key-specifier-p event 9))
(save-selected-window
! (select-window (get-buffer-window "*Completions*"))
(if (pos-visible-in-window-p (point-max))
(goto-char (point-min))
(scroll-up)))
--- 982,988 ----
;; Needed on a terminal
(event-matches-key-specifier-p event 9))
(save-selected-window
! (select-window (get-buffer-window "*Completions*" t))
(if (pos-visible-in-window-p (point-max))
(goto-char (point-min))
(scroll-up)))
If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
`bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/home/dhansen/share/emacs/22.0.93/etc/DEBUG for instructions.
In GNU Emacs 22.0.93.1 (i686-pc-linux-gnu, X toolkit)
of 2007-01-30 on robotron
X server distributor `The X.Org Foundation', version 11.0.70101000
configured using `configure '--disable-sound' '--prefix=/home/dhansen'
'--without-toolkit-scroll-bars' '--disable-pop''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: en_US.UTF-8
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8
default-enable-multibyte-characters: t
Major mode: Emacs-Lisp
Minor modes in effect:
shell-dirtrack-mode: t
erc-menu-mode: t
erc-ring-mode: t
erc-pcomplete-mode: t
erc-netsplit-mode: t
erc-spelling-mode: t
erc-truncate-mode: t
paredit-mode: t
jabber-activity-mode: t
erc-services-mode: t
erc-autojoin-mode: t
erc-track-mode: t
erc-match-mode: t
erc-button-mode: t
erc-fill-mode: t
erc-stamp-mode: t
erc-smiley-mode: t
erc-irccontrols-mode: t
erc-noncommands-mode: t
erc-readonly-mode: t
erc-scrolltobottom-mode: t
eldoc-mode: t
which-function-mode: t
show-paren-mode: t
iswitchb-mode: t
tooltip-mode: t
mouse-wheel-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
unify-8859-on-encoding-mode: t
utf-translate-cjk-mode: t
auto-compression-mode: t
line-number-mode: t
abbrev-mode: 1
hs-minor-mode: t
Recent input:
<tab> <tab> C-n C-n <tab> <return> C-n C-n C-n C-n
C-n C-n C-n C-n C-n C-n C-l C-n C-n C-n C-n C-p C-p
C-p C-p C-s s e l e C-n C-l M-f M-f C-h f C-g C-x 1
C-z e m <backspace> <backspace> ~ . <backspace> / b
i n <tab> e m <tab> SPC - Q SPC <return> <C-tab> C-x
b d o t <return> M-< C-s s p e c i C-a C-M-SPC M-w
C-x b <return> C-x b <return> C-n <switch-frame> <switch-frame>
C-x 1 M-x r e p <tab> o <tab> r <tab> b <tab> <ret
urn>
Recent messages:
uncompressing pcomplete.el.gz...done
Fontifying pcomplete.el.gz... (regexps...................)
uncompressing pcomplete.el.gz...done
Mark saved where search started
Quit
Partially completed
Mark set
Mark saved where search started
Mark set
Making completion list... [2 times]
--- End Message ---