Subject: 23.1; M-x locate runs synchronously

From: Tom Tromey <[email-masked]>
Date: Fri, 04 Sep 2009 13:15:50 -0600

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 [email-masked] mailing list,
and to the gnu.emacs.bug news group.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

Today I ran M-x locate.
This took a little while -- long enough to bother me that Emacs was
locked up for the entire time it was running.

I think it would be preferable to run locate in asynchronously.

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
/usr/share/emacs/23.1/etc/DEBUG for instructions.

In GNU Emacs 23.1.1 (i386-redhat-linux-gnu, GTK+ Version 2.16.5)
 of 2009-08-24 on x86-2.fedora.phx.redhat.com
Windowing system distributor `The X.Org Foundation', version 11.0.10601901
configured using `configure  '--build=i386-redhat-linux-gnu' '--host=i386-redhat-linux-gnu' '--target=i586-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-dbus' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xft' '--with-xpm' '--with-x-toolkit=gtk' 'build_alias=i386-redhat-linux-gnu' 'host_alias=i386-redhat-linux-gnu' 'target_alias=i586-redhat-linux-gnu' 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i586 -mtune=generic -fasynchronous-unwind-tables''

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: en_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Texinfo

Minor modes in effect:
  shell-dirtrack-mode: t
  diff-auto-refine-mode: t
  auto-fill-function: do-auto-fill
  erc-list-mode: t
  erc-menu-mode: t
  erc-autojoin-mode: t
  erc-ring-mode: t
  erc-pcomplete-mode: t
  erc-track-mode: t
  erc-track-minor-mode: t
  erc-match-mode: t
  erc-button-mode: t
  erc-fill-mode: t
  erc-stamp-mode: t
  erc-netsplit-mode: t
  erc-spelling-mode: t
  erc-truncate-mode: t
  flyspell-mode: t
  erc-status-mode: t
  erc-services-mode: t
  erc-networks-mode: t
  erc-irccontrols-mode: t
  erc-noncommands-mode: t
  erc-move-to-prompt-mode: t
  erc-readonly-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<switch-frame> <down-mouse-1> <mouse-movement> <mouse-movement> 
<drag-mouse-1> <down-mouse-1> <mouse-1> C-x C-e C-a 
C-x b SPC * h t <tab> <tab> <tab> < <tab> <return> 
M-v M-v C-z o C-x b C-g <switch-frame> <next> <next> 
<prior> C-x k <return> C-x b SPC * h t <tab> <return> 
C-x k <return> <f10> M-v C-l C-u C-n C-u C-n C-l C-n 
C-n C-l M-> p m <tab> y e a h , SPC e x c e p t SPC 
o f t e n y o u <backspace> <backspace> SPC <backspace> 
<backspace> SPC y o u SPC w a n SPC t C-t t o SPC g 
o SPC d e b u g SPC <M-backspace> <M-backspace> s e 
t SPC a SPC b r e a k p o i n t SPC a n d SPC d e b 
u g SPC a n SPC e x p l i c i t SPC c a l l . SPC SPC 
a n SPC o p t i o n SPC m i g h t SPC b e SPC n i c 
e , SPC I SPC d u n n o . <backspace> <return> <f10> 
<f10> <f10> <f10> <f10> <f10> <f10> M-x e m m s - p 
a u s e <return> C-z o C-z o <f10> C-c b C-z o C-a 
<switch-frame> <switch-frame> <switch-frame> <f10> 
<f10> <f10> <f10> <f10> <switch-frame> <switch-frame> 
M-x l o c a t e <return> g n u - s C-t m l . e l <return> 
C-f C-z o C-z o C-z o C-h f l o c a t e <return> C-x 
o C-x 1 C-c b M-x s <backspace> e m a c s - <M-backspace> 
r e p r <backspace> o r t - e m <tab> b <tab> <ret
urn>

Recent messages:
Contacting host: localhost:3128
Reading [text/html]... 1k of 1k (101%)
Reading... done.
#<buffer  *http localhost:3128*<2>>
Making completion list...
call-interactively: Beginning of buffer
Quit
call-interactively: End of buffer
Mark set
Type C-x 1 to delete the help window, C-M-v to scroll help.

Tom