From unknown Sun Aug 10 16:51:35 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#17284 <17284@debbugs.gnu.org> To: bug#17284 <17284@debbugs.gnu.org> Subject: Status: 24.3.90; Host name completion in shell mode take 45 seconds Reply-To: bug#17284 <17284@debbugs.gnu.org> Date: Sun, 10 Aug 2025 23:51:35 +0000 retitle 17284 24.3.90; Host name completion in shell mode take 45 seconds reassign 17284 emacs submitter 17284 Svend Sorensen severity 17284 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 17 13:48:30 2014 Received: (at submit) by debbugs.gnu.org; 17 Apr 2014 17:48:30 +0000 Received: from localhost ([127.0.0.1]:50909 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WaqQH-0003Wp-N1 for submit@debbugs.gnu.org; Thu, 17 Apr 2014 13:48:30 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37333) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WaqQE-0003WZ-VY for submit@debbugs.gnu.org; Thu, 17 Apr 2014 13:48:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WaqQ2-0002s3-69 for submit@debbugs.gnu.org; Thu, 17 Apr 2014 13:48:21 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,HTML_MESSAGE autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:35111) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WaqQ2-0002rz-3I for submit@debbugs.gnu.org; Thu, 17 Apr 2014 13:48:14 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39053) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WaqPv-0006cG-PS for bug-gnu-emacs@gnu.org; Thu, 17 Apr 2014 13:48:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WaqPp-0002qF-Dd for bug-gnu-emacs@gnu.org; Thu, 17 Apr 2014 13:48:07 -0400 Received: from mail-lb0-f178.google.com ([209.85.217.178]:50824) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WaqPp-0002pv-1O for bug-gnu-emacs@gnu.org; Thu, 17 Apr 2014 13:48:01 -0400 Received: by mail-lb0-f178.google.com with SMTP id s7so654521lbd.9 for ; Thu, 17 Apr 2014 10:47:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=zuoUN7Hpp9OU9Uh8HrtW0K1yb6RJYaF6Y2kc80mwhNg=; b=f5imCroIr04By2ff/xscylPSxXfdwzVD3MYMG7jOY+p3s8bSkJMwuM1f/mfoTr6hmZ OrcWgBjdwvotfvn+cgWwvnsqcjqcU3vEeDQNBveJ7Mrl20+Iwz/3KKwuXtLUBxhIf9UI /ZuGUpON5NBAJgmrOvFW2rHWyr/ckU8bwSJJ9mBZLSxmVZutfVU8GISzcLIeQat19PjI 5UlXtUW2/38OGN0jJ/qPgqXLlLXSKSQrHInpP/d0FwrCQrDurerHhIdaovJFp3rjqzjZ odh12shrcw487WqdMoPHZtJlNyAg9yzZRzeZqjgNjV6pFhF9QJJx4yK7JpfZCNqoQ6Gc +dtw== X-Gm-Message-State: ALoCoQnUNCFa5Yb6V38On7+8ttYbNiEsEWSpNxqmTpGDni8fNRwWs81zx62bALU+TYdo/s5GDBqh MIME-Version: 1.0 X-Received: by 10.112.222.225 with SMTP id qp1mr1540346lbc.59.1397756878812; Thu, 17 Apr 2014 10:47:58 -0700 (PDT) Received: by 10.152.168.7 with HTTP; Thu, 17 Apr 2014 10:47:58 -0700 (PDT) X-Originating-IP: [64.124.61.215] Date: Thu, 17 Apr 2014 10:47:58 -0700 Message-ID: Subject: 24.3.90; Host name completion in shell mode take 45 seconds From: Svend Sorensen To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=001a113476de3e8aa404f740a259 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --001a113476de3e8aa404f740a259 Content-Type: text/plain; charset=UTF-8 emacs -Q M-x shell ssh s This hangs for 45 seconds before completions are listed. Emacs is unresponsive during this time. In GNU Emacs 24.3.90.1 (x86_64-apple-darwin13.1.0, NS apple-appkit-1265.19) of 2014-04-17 on svesorm0.corp.w3data.com Windowing system distributor `Apple', version 10.3.1265 Configured using: `configure --prefix=/usr/local/Cellar/emacs/HEAD --without-dbus --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs/HEAD/share/info/emacs --without-gnutls --with-ns --disable-ns-self-contained' Important settings: value of $LC_ALL: en_US.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x r e p o r t - b u g Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process cocoa ns multi-tty emacs) Memory information: ((conses 16 71390 7340) (symbols 48 17149 0) (miscs 40 37 118) (strings 32 9729 5058) (string-bytes 1 258860) (vectors 16 8834) (vector-slots 8 359444 17254) (floats 8 53 168) (intervals 56 180 19) (buffers 960 11)) --001a113476de3e8aa404f740a259 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
emacs -Q
M-x shell
= ssh s<tab>

This hangs for 45 seconds before = completions are listed. Emacs is
unresponsive during this time.



In GNU Emacs 24.3.90.1 (x= 86_64-apple-darwin13.1.0, NS apple-appkit-1265.19)
=C2=A0of 2014-= 04-17 on svesorm0.corp.w3data.c= om
Windowing system distributor `Apple', version 10.3.1265
= Configured using:
=C2=A0`configure --prefix=3D/usr/local/Cellar/e= macs/HEAD --without-dbus
=C2=A0--enable-locallisppath=3D/usr/loca= l/share/emacs/site-lisp
=C2=A0--infodir=3D/usr/local/Cellar/emacs/HEAD/share/info/emacs
<= div>=C2=A0--without-gnutls --with-ns --disable-ns-self-contained'
=

Important settings:
=C2=A0 value of $LC_ALL: = en_US.UTF-8
=C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 locale-coding-syst= em: utf-8-unix

Major mode: Lisp Interaction
<= div>
Minor modes in effect:
=C2=A0 tooltip-mode: t<= /div>
=C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t
<= div>=C2=A0 blink-cursor-mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode:= t
=C2=A0 auto-compression-mode: t
=C2=A0 line-number-m= ode: t
=C2=A0 transient-mark-mode: t

Rec= ent input:
M-x r e p o r t - b u g <return>

Recent mess= ages:
For information about GNU Emacs and the GNU system, type C-= h C-a.

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr em= acsbug message format-spec rfc822 mml
easymenu mml-sec mm-decode = mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailh= eader sendmail rfc2047 rfc2045 ietf-drums
mm-util help-fns mail-prsvr mail-utils time-date tooltip electric
uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar d= nd
fontset image regexp-opt fringe tabulated-list newcomment lisp= -mode
prog-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core frame cham geor= gian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao ko= rean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abb= rev
minibuffer nadvice loaddefs button faces cus-face macroexp fi= les
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-proces= s
cocoa ns multi-tty emacs)

Memory infor= mation:
((conses 16 71390 7340)
=C2=A0(symbols 48 17149 0)
=C2=A0(miscs 40 37 118)
=C2=A0(strings 32 9729 5058)
= =C2=A0(string-bytes 1 258860)
=C2=A0(vectors 16 8834)
= =C2=A0(vector-slots 8 359444 17254)
=C2=A0(floats 8 53 168)
=C2=A0(intervals 56 180 19)
=C2=A0(buffers 960 11))

--001a113476de3e8aa404f740a259-- From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 02 13:36:24 2015 Received: (at 17284) by debbugs.gnu.org; 2 Apr 2015 17:36:24 +0000 Received: from localhost ([127.0.0.1]:43478 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ydj2V-0002Q4-MY for submit@debbugs.gnu.org; Thu, 02 Apr 2015 13:36:23 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:36098) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ydj2T-0002Pn-Bg for 17284@debbugs.gnu.org; Thu, 02 Apr 2015 13:36:21 -0400 Received: by padcy3 with SMTP id cy3so90399857pad.3 for <17284@debbugs.gnu.org>; Thu, 02 Apr 2015 10:36:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-type; bh=6Q8abdWeNshzbkxiogHKepHEe/SSo0IvxVctzT2WkUA=; b=KVq0FJeAxWn0C5qjv5QrxluDRDrJnXvFwpp9HsroAE2RIeuzjr2naQb4zMyqA4/axw D7A/F7fypzRyMVYlQNfIMCMvZBaO3j3jxJysztaTxzhvbeIZqowaq8ihZ5CFKjeR8Kk4 rCwy6rvo6YWblr1CJZzcA5Ilz59aCa6Kh/+3PFMo1GfVxfSLfCTsSjuGDFJlU2sWVD/U 8Oc/aFw4KmCHQX6zpoRnsRR/13jFvNpfiySSj5VZYJ92HMKUZ3OLqq9AzBwRNJs5MNN7 7vklFlWTaVCuO8nhQR/JracToob89S+ExDr+S242EorzZVtclcV/okQavYw+ZwTj7sUe 3yBA== X-Gm-Message-State: ALoCoQk4eHiZwgxtF3UD15vpSnCMf+Bp3oKsaindxaLPG39V+TFNKkN/07+qEuD+lIWhiNYI8ZhP X-Received: by 10.66.65.234 with SMTP id a10mr48242651pat.120.1427996175183; Thu, 02 Apr 2015 10:36:15 -0700 (PDT) Received: from svesorm0.corp.w3data.com ([64.124.61.215]) by mx.google.com with ESMTPSA id 5sm5824646pdg.45.2015.04.02.10.36.13 for <17284@debbugs.gnu.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Apr 2015 10:36:13 -0700 (PDT) From: Svend Sorensen To: 17284@debbugs.gnu.org Subject: Host name completion in shell mode take 45 seconds Date: Thu, 02 Apr 2015 10:36:09 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 17284 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) This delay is happening in the pcmpl-ssh-known-hosts function, during the second while: (while (and (looking-back ",") (re-search-forward host-re (line-end-position) t)) (add-to-list 'ssh-hosts-list (concat (match-string 1) (match-string 2)))) If I remove this, I get back a list of hosts immediately. My known_hosts file has 3600 lines. From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 03 01:38:44 2015 Received: (at 17284) by debbugs.gnu.org; 3 Apr 2015 05:38:44 +0000 Received: from localhost ([127.0.0.1]:43576 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YduJY-0003tn-7s for submit@debbugs.gnu.org; Fri, 03 Apr 2015 01:38:44 -0400 Received: from mxin.ulb.ac.be ([164.15.128.112]:11935) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YduJV-0003tc-6d for 17284@debbugs.gnu.org; Fri, 03 Apr 2015 01:38:42 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAMomHlWkD4Xx/2dsb2JhbABchDmyQAEBAQEBAQaZJQKCAwEBAQEBAX6EHwEFeRAIAyElDwEESROIGgEUtkKQNAGGCQEBAQEGAQEBAR6GD4IzgmeEeQeELQEEmmqHAo1JIoNxPDGCQwEBAQ Received: from mathsrv4.ulb.ac.be (HELO localhost) ([164.15.133.241]) by smtp.ulb.ac.be with ESMTP; 03 Apr 2015 07:38:39 +0200 From: Nicolas Richard To: Svend Sorensen Subject: Re: bug#17284: Host name completion in shell mode take 45 seconds References: Date: Fri, 03 Apr 2015 07:39:52 +0200 In-Reply-To: (Svend Sorensen's message of "Thu, 02 Apr 2015 10:36:09 -0700") Message-ID: <87a8ypixcn.fsf@yahoo.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 17284 Cc: 17284@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Svend Sorensen writes: > (while (and (looking-back ",") > (re-search-forward host-re (line-end-position) t)) > (add-to-list 'ssh-hosts-list (concat (match-string 1) > (match-string 2)))) > > If I remove this, I get back a list of hosts immediately. > > My known_hosts file has 3600 lines. Hello, Does it help to replace (looking-back ",") by (eq ?, (char-before)) ? Nicolas. From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 03 05:09:17 2015 Received: (at 17284) by debbugs.gnu.org; 3 Apr 2015 09:09:17 +0000 Received: from localhost ([127.0.0.1]:43726 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YdxbI-0000fn-NQ for submit@debbugs.gnu.org; Fri, 03 Apr 2015 05:09:16 -0400 Received: from mail-lb0-f181.google.com ([209.85.217.181]:34290) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YdxbG-0000fZ-49 for 17284@debbugs.gnu.org; Fri, 03 Apr 2015 05:09:14 -0400 Received: by lboc7 with SMTP id c7so75563947lbo.1 for <17284@debbugs.gnu.org>; Fri, 03 Apr 2015 02:09:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=mTb6QHEpi1oK/lwTl6IKj2TvFj31Q+xyNvdnF8azJrs=; b=LY4niCQxY3sVJwL+CEQX5ZcCUhhXkufhUwiDIvHIkug/0eZrKjvY8qw31FyTC9GdZS SUkAJMZ2V8xGs/5J49Lzz4M+H7hrtubUPokQZl5afmQ7nljANZv/75SNnWHEcTFu+dam 8mvLWnd/7xDfF87TA3MCe1zDkVO40YIsXyYV8838kXq3r5SofNduIlFsbyKR3oeRvl2T zg0TV8dpIQNydWoq9Qp3QCiDQQzwlo83ZdWuuT3CoWvzNMFL3v8ZH+qzgeX3LoxD+J5Z gLjsuNq+XEs3VXTZmCUEyqNjay6iviInJ/uneCghI5HEsDdSEJSaEAPRvgBAj6L9AqHc XjeA== X-Gm-Message-State: ALoCoQlU6aqvUNAFGUfI2ABbiE2qCZyrgJYx3WEcmX0JZ1lL+RVauCnovdi9iyNB7z30F4YNFRfC MIME-Version: 1.0 X-Received: by 10.112.210.201 with SMTP id mw9mr1344898lbc.13.1428052148061; Fri, 03 Apr 2015 02:09:08 -0700 (PDT) Received: by 10.152.245.167 with HTTP; Fri, 3 Apr 2015 02:09:08 -0700 (PDT) X-Originating-IP: [73.181.201.142] In-Reply-To: <87a8ypixcn.fsf@yahoo.fr> References: <87a8ypixcn.fsf@yahoo.fr> Date: Fri, 3 Apr 2015 02:09:08 -0700 Message-ID: Subject: Re: bug#17284: Host name completion in shell mode take 45 seconds From: Svend Sorensen To: Nicolas Richard Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 17284 Cc: 17284@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Thu, Apr 2, 2015 at 10:39 PM, Nicolas Richard wrote: > > Does it help to replace (looking-back ",") by (eq ?, (char-before)) ? The function runs quickly with that change. From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 03 06:35:12 2015 Received: (at 17284) by debbugs.gnu.org; 3 Apr 2015 10:35:12 +0000 Received: from localhost ([127.0.0.1]:43748 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YdywS-0002nC-Ar for submit@debbugs.gnu.org; Fri, 03 Apr 2015 06:35:12 -0400 Received: from mxin.ulb.ac.be ([164.15.128.112]:21026) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YdywQ-0002n1-2g for 17284@debbugs.gnu.org; Fri, 03 Apr 2015 06:35:10 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8BACdsHlWkD4Xx/2dsb2JhbAANTxqEH4MVrycBAQEBAQEGmSUCgXcBAQEBAQGFHQEBBCMPAUUBEAsYAgIFFgsCAgkDAgECAUUGDQEFAgEBiBYBA7NWcIFrkCkBhgkBAQEBAQEBAQEBAQEBAQEBAQEagSGEboIzgmeCR4FNZQeCaIFFAQSFEAqJQYpIgUeHAocahi+EE22BAoFBAQEB Received: from mathsrv4.ulb.ac.be (HELO [172.19.79.241]) ([164.15.133.241]) by smtp.ulb.ac.be with ESMTP; 03 Apr 2015 12:35:08 +0200 Message-ID: <551E6D24.4020408@yahoo.fr> Date: Fri, 03 Apr 2015 12:36:20 +0200 From: Nicolas Richard User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Svend Sorensen Subject: Re: bug#17284: Host name completion in shell mode take 45 seconds References: <87a8ypixcn.fsf@yahoo.fr> In-Reply-To: X-TagToolbar-Keys: D20150403123620720 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 17284 Cc: 17284@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Le 03/04/2015 11:09, Svend Sorensen a écrit : > On Thu, Apr 2, 2015 at 10:39 PM, Nicolas Richard > wrote: >> >> Does it help to replace (looking-back ",") by (eq ?, (char-before)) ? > > The function runs quickly with that change. Thanks. I'm still not confident enough to push my commits without approval from actual devs so here's what I suggest: Commit fd89dbb0e9658874f71a75f0b84ce2f1a3021252 References: yf/bug-17284 Author: Nicolas Richard AuthorDate: Fri Apr 3 12:28:40 2015 +0200 Commit: Nicolas Richard CommitDate: Fri Apr 3 12:33:42 2015 +0200 pcmpl-ssh-known-hosts: Use `char-before' instead of `looking-back'. Fixes: debbugs:17284 * lisp/pcmpl-unix.el (pcmpl-ssh-known-hosts): Use `char-before' instead of `looking-back'. 1 parent commit, 2 merged branches, 1 containing branch Parent | 0b914ba ; Tweak the previous change Merged | emacs-24 yf/bug-17284 Containing | yf/bug-17284 Follows | emacs-24.5-rc1 (4152) 2 files changed, 6 insertions(+), 1 deletion(-) lisp/ChangeLog | 5 +++++ lisp/pcmpl-unix.el | 2 +- modified lisp/ChangeLog @@ -1,3 +1,8 @@ +2015-04-03 Nicolas Richard + + * pcmpl-unix.el (pcmpl-ssh-known-hosts): Use `char-before' instead + of `looking-back' (bug#17284). + 2015-04-03 Dmitry Gutov * progmodes/js.el (js-indent-line): Do nothing when bol is inside modified lisp/pcmpl-unix.el @@ -157,7 +157,7 @@ (defun pcmpl-ssh-known-hosts () (while (re-search-forward (concat "^ *" host-re) nil t) (add-to-list 'ssh-hosts-list (concat (match-string 1) (match-string 2))) - (while (and (looking-back ",") + (while (and (eq (char-before) ?,) (re-search-forward host-re (line-end-position) t)) (add-to-list 'ssh-hosts-list (concat (match-string 1) (match-string 2))))) -- Nico. From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 03 07:12:24 2015 Received: (at 17284) by debbugs.gnu.org; 3 Apr 2015 11:12:24 +0000 Received: from localhost ([127.0.0.1]:43758 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YdzWS-0003fe-9J for submit@debbugs.gnu.org; Fri, 03 Apr 2015 07:12:24 -0400 Received: from mout.gmx.net ([212.227.15.19]:61145) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YdzWP-0003fK-Nm for 17284@debbugs.gnu.org; Fri, 03 Apr 2015 07:12:22 -0400 Received: from [91.113.0.12] ([91.113.0.12]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0LqRKT-1Z9BPS1Q0n-00e3g9; Fri, 03 Apr 2015 13:12:15 +0200 Message-ID: <551E7587.4000103@gmx.at> Date: Fri, 03 Apr 2015 13:12:07 +0200 From: martin rudalics MIME-Version: 1.0 To: Nicolas Richard , Svend Sorensen Subject: Re: bug#17284: Host name completion in shell mode take 45 seconds References: <87a8ypixcn.fsf@yahoo.fr> <551E6D24.4020408@yahoo.fr> In-Reply-To: <551E6D24.4020408@yahoo.fr> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:hKP9fsUdTw87DtMFY62n5k4jg/p0/J0zvKR2g3a9xBCOJeauuvW LJ4AMIyZbgG0hO802WL7Uago9zi5rW9XDy/lWlrSWorUB9Dd20BR1dUw/HeFeSAYpzFK2fK Z+55HIAmhEIh+Tq68iMUFL/LEOV52aEj9yssBLCrWg4kfhbJERe7yl8LEwfgCxB2bv4PhHF tLLEGVKtmyppp2sOfGbPw== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 17284 Cc: 17284@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) > pcmpl-ssh-known-hosts: Use `char-before' instead of `looking-back'. Couldn't the byte-compiler warn when `looking-back' is used without specifying LIMIT? Making LIMIT non-optional seems too harsh. martin From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 03 07:42:38 2015 Received: (at 17284) by debbugs.gnu.org; 3 Apr 2015 11:42:38 +0000 Received: from localhost ([127.0.0.1]:43764 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ydzzi-0005o1-Be for submit@debbugs.gnu.org; Fri, 03 Apr 2015 07:42:38 -0400 Received: from mail-wg0-f45.google.com ([74.125.82.45]:35337) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ydzzf-0005nj-Ah for 17284@debbugs.gnu.org; Fri, 03 Apr 2015 07:42:36 -0400 Received: by wgdm6 with SMTP id m6so109173429wgd.2 for <17284@debbugs.gnu.org>; Fri, 03 Apr 2015 04:42:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=y3IM9+ewvEdyyI6LWDuma/3fhJBZMKKftevHsBkWcJY=; b=KJoONOIRdmg81A3Q3wnnpp/5odAsFE5M7OyJ6nH0iDTaw7VkvL49XMas84xno06txa DdWc8bZW/tJVHjtnKkgzizE0JOvJw7WOMKMFr+iKetC+2HZveBitNhsNchq3UyZ4Y+l9 uEqNnp2BHWYhfS0RWur4vW/YHX0r4Q57h0aje0Tfw9v065o8ep4veg7KV7SbutYs5zfN 6nsRLxE7CTrTSLCSU878FlCSzdSBHcVDk6lfXz2x5iL6nyHKfVIkpy/fxVeTVMCvo931 QeFuWw6Lve6zrIUGjYPLUneroYR9CF/9J4Er7m5RgE5UttNluO1KV9GltLXUqVtUMf7J eSQQ== X-Received: by 10.194.75.168 with SMTP id d8mr4134969wjw.87.1428061349510; Fri, 03 Apr 2015 04:42:29 -0700 (PDT) Received: from [192.168.1.3] ([82.102.93.54]) by mx.google.com with ESMTPSA id p9sm11196701wje.12.2015.04.03.04.42.28 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Apr 2015 04:42:28 -0700 (PDT) Message-ID: <551E7CA2.8060707@yandex.ru> Date: Fri, 03 Apr 2015 14:42:26 +0300 From: Dmitry Gutov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:36.0) Gecko/20100101 Thunderbird/36.0 MIME-Version: 1.0 To: Nicolas Richard , Svend Sorensen Subject: Re: bug#17284: Host name completion in shell mode take 45 seconds References: <87a8ypixcn.fsf@yahoo.fr> <551E6D24.4020408@yahoo.fr> In-Reply-To: <551E6D24.4020408@yahoo.fr> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 17284 Cc: 17284@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) On 04/03/2015 01:36 PM, Nicolas Richard wrote: > I'm still not confident enough to push my commits without approval from > actual devs so here's what I suggest: Looks good to me. From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 03 07:57:32 2015 Received: (at 17284-done) by debbugs.gnu.org; 3 Apr 2015 11:57:33 +0000 Received: from localhost ([127.0.0.1]:43772 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ye0E8-0006Bc-2P for submit@debbugs.gnu.org; Fri, 03 Apr 2015 07:57:32 -0400 Received: from mxin.ulb.ac.be ([164.15.128.112]:20824) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ye0E5-0006BS-Sv for 17284-done@debbugs.gnu.org; Fri, 03 Apr 2015 07:57:30 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArMBAEF/HlWkD4Xx/2dsb2JhbAANT4dOrycBAQEBAQEGmRsKAoF5AQEBAQEBhR0BAQQjVQEQCw4MAgUWCwICCQMCAQIBRQYBDAEHAQGIFgGzYnCBa5AfAYYJAQEBAQEBAQEBAQEBAQEBAQEBARmBIYRugjOCZ4R5B4JogUUBBI5bjA+HAo1JhBODMAEBAQ Received: from mathsrv4.ulb.ac.be (HELO [172.19.79.241]) ([164.15.133.241]) by smtp.ulb.ac.be with ESMTP; 03 Apr 2015 13:57:27 +0200 Message-ID: <551E806F.4080103@yahoo.fr> Date: Fri, 03 Apr 2015 13:58:39 +0200 From: Nicolas Richard User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Dmitry Gutov , Svend Sorensen Subject: Re: bug#17284: Host name completion in shell mode take 45 seconds References: <87a8ypixcn.fsf@yahoo.fr> <551E6D24.4020408@yahoo.fr> <551E7CA2.8060707@yandex.ru> In-Reply-To: <551E7CA2.8060707@yandex.ru> X-TagToolbar-Keys: D20150403135839699 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 17284-done Cc: 17284-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Thanks. Pushed as 7c691f3 and marking this bug as done. Nicolas. From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 03 09:28:56 2015 Received: (at 17284) by debbugs.gnu.org; 3 Apr 2015 13:28:57 +0000 Received: from localhost ([127.0.0.1]:43808 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ye1eZ-0001Wc-0O for submit@debbugs.gnu.org; Fri, 03 Apr 2015 09:28:55 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:53898) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ye1eU-0001WG-HF for 17284@debbugs.gnu.org; Fri, 03 Apr 2015 09:28:51 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnEFAGvvdVRBbthL/2dsb2JhbAA3gVOfQYIugQiBdQEBBAFWIxALNBIUGA0kiBOiEYk8gygJAwECgz4DDwECBwICg1MEqDuBOA X-IPAS-Result: AnEFAGvvdVRBbthL/2dsb2JhbAA3gVOfQYIugQiBdQEBBAFWIxALNBIUGA0kiBOiEYk8gygJAwECgz4DDwECBwICg1MEqDuBOA X-IronPort-AV: E=Sophos;i="5.01,1,1400040000"; d="scan'208";a="115339919" Received: from 65-110-216-75.cpe.pppoe.ca (HELO pastel.home) ([65.110.216.75]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 03 Apr 2015 09:28:44 -0400 Received: by pastel.home (Postfix, from userid 20848) id 86C66103F; Fri, 3 Apr 2015 09:28:44 -0400 (EDT) From: Stefan Monnier To: martin rudalics Subject: Re: bug#17284: Host name completion in shell mode take 45 seconds Message-ID: References: <87a8ypixcn.fsf@yahoo.fr> <551E6D24.4020408@yahoo.fr> <551E7587.4000103@gmx.at> Date: Fri, 03 Apr 2015 09:28:44 -0400 In-Reply-To: <551E7587.4000103@gmx.at> (martin rudalics's message of "Fri, 03 Apr 2015 13:12:07 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 17284 Cc: Svend Sorensen , Nicolas Richard , 17284@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) >> pcmpl-ssh-known-hosts: Use `char-before' instead of `looking-back'. > Couldn't the byte-compiler warn when `looking-back' is used without > specifying LIMIT? Making LIMIT non-optional seems too harsh. diff --git a/lisp/subr.el b/lisp/subr.el index 163a1c4..16a3440 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -3485,6 +3484,7 @@ LIMIT. As a general recommendation, try to avoid using `looking-back' wherever possible, since it is slow." + (declare (advertised-calling-convention (regexp limit &optional greedy))) (let ((start (point)) (pos (save-excursion -- Stefan From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 03 12:25:17 2015 Received: (at 17284) by debbugs.gnu.org; 3 Apr 2015 16:25:17 +0000 Received: from localhost ([127.0.0.1]:44111 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ye4PE-0005mx-Ck for submit@debbugs.gnu.org; Fri, 03 Apr 2015 12:25:16 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:45327) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ye4PB-0005mh-Dl for 17284@debbugs.gnu.org; Fri, 03 Apr 2015 12:25:13 -0400 Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t33GP6b5023785 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 3 Apr 2015 16:25:06 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.13.8/8.13.8) with ESMTP id t33GP5BP008737 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 3 Apr 2015 16:25:05 GMT Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id t33GP5r6025647; Fri, 3 Apr 2015 16:25:05 GMT MIME-Version: 1.0 Message-ID: <4982c9c5-f87b-41f0-8e79-30fb65de6e99@default> Date: Fri, 3 Apr 2015 09:25:04 -0700 (PDT) From: Drew Adams To: Svend Sorensen , Nicolas Richard Subject: RE: bug#17284: Host name completion in shell mode take 45 seconds References: <87a8ypixcn.fsf@yahoo.fr> In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Source-IP: userv0022.oracle.com [156.151.31.74] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 17284 Cc: 17284@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) > > > Does it help to replace (looking-back ",") by (eq ?, (char-before)) ? > >=20 > > The function runs quickly with that change. > > Couldn't the byte-compiler warn when `looking-back' is used without > specifying LIMIT? Making LIMIT non-optional seems too harsh. 1. Is it really about LIMIT? Or is it instead about looking back at a literal string of chars? And typically a short string. I'm guessing that that is the use case to pursue here. 2. Instead of (or in addition to) a byte-compiler warning for `looking-back', how about adding a function `chars-before'? Since I use multiple Emacs versions, some quite old, I use this. But I'm sure that a much better (including prettier) definition can be had for recent Emacs. Or (better) define it in C. (defun chars-before (chars) "Return non-nil if the literal string CHARS is right before point." (let* ((len (length chars)) (idx (1- len)) (pt (point))) (catch 'chars-before (dolist (char (append chars ())) (unless (condition-case nil (eq char (char-before (- pt idx))) (error nil)) (throw 'chars-before nil)) (setq idx (1- idx))) t))) Likewise (but may be no better than `looking-at' + `regexp-quote'): (defun chars-after (chars) "Return non-nil if the literal string CHARS is right after point." (let* ((len (length chars)) (idx (1- len)) (pt (point))) (catch 'chars-after (dolist (char (nreverse (append chars ()))) (unless (condition-case nil (eq char (char-after (+ pt idx))) (error nil)) ; e.g. `eobp' (throw 'chars-after nil)) (setq idx (1- idx))) t))) From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 04 04:30:01 2015 Received: (at 17284) by debbugs.gnu.org; 4 Apr 2015 08:30:01 +0000 Received: from localhost ([127.0.0.1]:44327 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YeJSq-0003s4-IS for submit@debbugs.gnu.org; Sat, 04 Apr 2015 04:30:00 -0400 Received: from mout.gmx.net ([212.227.15.15]:64635) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YeJSo-0003rq-BK for 17284@debbugs.gnu.org; Sat, 04 Apr 2015 04:29:59 -0400 Received: from [194.118.143.212] ([194.118.143.212]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MCLcP-1Ymnu937s9-00951D; Sat, 04 Apr 2015 10:29:48 +0200 Message-ID: <551FA0F2.4050104@gmx.at> Date: Sat, 04 Apr 2015 10:29:38 +0200 From: martin rudalics MIME-Version: 1.0 To: Stefan Monnier Subject: Re: bug#17284: Host name completion in shell mode take 45 seconds References: <87a8ypixcn.fsf@yahoo.fr> <551E6D24.4020408@yahoo.fr> <551E7587.4000103@gmx.at> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:rDG3wZSjIUNUAVpsTSyBcSgs4CADlPgATOrxhjOMl87RkVUreDy EDBP3NSMstO3ysS20au5eVPzE56d1u/LyIYedqxGj8csSE/xnV3PN3trb9lAbUUvaPxjFHc pyXqaimds0t54DY7iB7wtaRPL3xdJ+RL9Ph/wvE0VwvPQnsgj/SuTCm5/ylk6O+U45TlI/A jelJItWD6tn2U8MeOp+eQ== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 17284 Cc: Svend Sorensen , Nicolas Richard , 17284@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) > + (declare (advertised-calling-convention (regexp limit &optional greedy))) Exactly! Just that doing this now would probably exasperate bootstrappers. martin From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 04 04:30:17 2015 Received: (at 17284) by debbugs.gnu.org; 4 Apr 2015 08:30:17 +0000 Received: from localhost ([127.0.0.1]:44331 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YeJT6-0003te-Hr for submit@debbugs.gnu.org; Sat, 04 Apr 2015 04:30:17 -0400 Received: from mout.gmx.net ([212.227.15.15]:61529) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YeJT2-0003su-8x for 17284@debbugs.gnu.org; Sat, 04 Apr 2015 04:30:13 -0400 Received: from [194.118.143.212] ([194.118.143.212]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0Lbuo0-1ZL2kP1i8C-00jFS5; Sat, 04 Apr 2015 10:30:01 +0200 Message-ID: <551FA100.2040208@gmx.at> Date: Sat, 04 Apr 2015 10:29:52 +0200 From: martin rudalics MIME-Version: 1.0 To: Drew Adams , Svend Sorensen , Nicolas Richard Subject: Re: bug#17284: Host name completion in shell mode take 45 seconds References: <87a8ypixcn.fsf@yahoo.fr> <4982c9c5-f87b-41f0-8e79-30fb65de6e99@default> In-Reply-To: <4982c9c5-f87b-41f0-8e79-30fb65de6e99@default> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:ttV/3CekbMcTsGkF3e/4+ddTxU+8aqAFu8+rev9duXpQcnCaslw lL3MZMgcfMfKwb/FYMT8jCBYHeJkAbB4b4yTRQTCT38WwCpDG+EbsSntDFASb4AqpIimMDa mb4R3JSDzdxVsZJJJlTovRFLlI6bG3Gm0y+e86ueubgOaNqvZgdKU9EAKRfFLn7cvsM26sq Pxi0zmAaZAL6bu5iinauA== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 17284 Cc: 17284@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) > 1. Is it really about LIMIT? Or is it instead about looking back > at a literal string of chars? And typically a short string. > I'm guessing that that is the use case to pursue here. Right. > 2. Instead of (or in addition to) a byte-compiler warning for > `looking-back', how about adding a function `chars-before'? This would be useful. > Since I use multiple Emacs versions, some quite old, I use this. > But I'm sure that a much better (including prettier) definition > can be had for recent Emacs. Or (better) define it in C. I guess something like (defun string-before-p (string) "Return t if string before `point' equals STRING." (let ((start (- (point) (length string)))) (and (>= start (point-min)) (string-equal (buffer-substring-no-properties start (point)) string)))) would do. And for simpler cases giving `char-before' a second argument to specify the position of the character before `point' might help too. But many occurrences of `looking-back' in the code base are inherently tied to regexps specified via defcustoms or passed as arguments and it doesn't seem easy to get rid of them. Hence we should probably add a TODO item to fix all occurrences of `looking-back' either via the LIMIT argument, by string or character comparison. An appetizing formulation of such an item would be very welcome. martin From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 04 09:54:25 2015 Received: (at 17284) by debbugs.gnu.org; 4 Apr 2015 13:54:25 +0000 Received: from localhost ([127.0.0.1]:44615 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YeOWn-0004l8-0i for submit@debbugs.gnu.org; Sat, 04 Apr 2015 09:54:25 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:51903) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YeOWk-0004kv-LD for 17284@debbugs.gnu.org; Sat, 04 Apr 2015 09:54:23 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgUFAGvvdVRBbthL/2dsb2JhbAA3gVOhb4EIgXYBBVYjEAs0EhQYDSSqJIk8gygJAQIBAoM+Aw8BAgcCAoNTBKg7gTg X-IPAS-Result: AgUFAGvvdVRBbthL/2dsb2JhbAA3gVOhb4EIgXYBBVYjEAs0EhQYDSSqJIk8gygJAQIBAoM+Aw8BAgcCAoNTBKg7gTg X-IronPort-AV: E=Sophos;i="5.01,1,1400040000"; d="scan'208";a="115402893" Received: from 65-110-216-75.cpe.pppoe.ca (HELO pastel.home) ([65.110.216.75]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 04 Apr 2015 09:54:16 -0400 Received: by pastel.home (Postfix, from userid 20848) id 95CCF1F7F; Sat, 4 Apr 2015 09:54:16 -0400 (EDT) From: Stefan Monnier To: martin rudalics Subject: Re: bug#17284: Host name completion in shell mode take 45 seconds Message-ID: References: <87a8ypixcn.fsf@yahoo.fr> <551E6D24.4020408@yahoo.fr> <551E7587.4000103@gmx.at> <551FA0F2.4050104@gmx.at> Date: Sat, 04 Apr 2015 09:54:16 -0400 In-Reply-To: <551FA0F2.4050104@gmx.at> (martin rudalics's message of "Sat, 04 Apr 2015 10:29:38 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 17284 Cc: Svend Sorensen , Nicolas Richard , 17284@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) >> + (declare (advertised-calling-convention (regexp limit &optional greedy))) > Exactly! Just that doing this now would probably exasperate > bootstrappers. I don't think so. It's just going to add a couple more warnings, which can all be fixed trivially. Stefan From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 04 10:46:51 2015 Received: (at 17284) by debbugs.gnu.org; 4 Apr 2015 14:46:51 +0000 Received: from localhost ([127.0.0.1]:44831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YePLX-000631-EJ for submit@debbugs.gnu.org; Sat, 04 Apr 2015 10:46:51 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:41147) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YePLV-00062o-Pb for 17284@debbugs.gnu.org; Sat, 04 Apr 2015 10:46:50 -0400 Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t34EkdAr015949 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 4 Apr 2015 14:46:40 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0022.oracle.com (8.13.8/8.13.8) with ESMTP id t34EkdCc021275 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sat, 4 Apr 2015 14:46:39 GMT Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by userv0122.oracle.com (8.13.8/8.13.8) with ESMTP id t34EkdCB021149; Sat, 4 Apr 2015 14:46:39 GMT MIME-Version: 1.0 Message-ID: Date: Sat, 4 Apr 2015 07:46:40 -0700 (PDT) From: Drew Adams To: martin rudalics , Svend Sorensen , Nicolas Richard Subject: RE: bug#17284: Host name completion in shell mode take 45 seconds References: <87a8ypixcn.fsf@yahoo.fr> <4982c9c5-f87b-41f0-8e79-30fb65de6e99@default> <551FA100.2040208@gmx.at> In-Reply-To: <551FA100.2040208@gmx.at> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Source-IP: userv0022.oracle.com [156.151.31.74] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 17284 Cc: 17284@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) > (defun string-before-p (string) > "Return t if string before `point' equals STRING." > (let ((start (- (point) (length string)))) > (and (>=3D start (point-min)) > =09 (string-equal > =09 (buffer-substring-no-properties start (point)) > =09 string)))) `buffer-substring-no-properties' is defined in C. I can't tell whether this is more efficient because of that or less efficient because it creates a potentially giant string before starting to compare. I was trying to compare starting from the far end, thinking that that might lead to earlier failure detection. But I'll take your word for it that this is probably better. (I guess if we were really worried about the long-string case we could do what Isearch does, for the comparison.) I didn't mention this before, because my implementation of `chars-before' uses `char-before'. But with such a function, if it is defined without using `char-before' then the latter function could be eliminated: (chars-before "a") instead of (char-before ?a). > And for simpler cases giving `char-before' a second argument > to specify the position of the character before `point' might help too. Yes. (And that could apply as well to `chars-before', aka `string-before-p' - optionally specify the start or end position.) > But many occurrences of `looking-back' in the code base are inherently > tied to regexps specified via defcustoms or passed as arguments and it > doesn't seem easy to get rid of them. Hence we should probably add a > TODO item to fix all occurrences of `looking-back' either via the LIMIT > argument, by string or character comparison. An appetizing formulation > of such an item would be very welcome. Yes. And I think you just formulated it, appetizingly enough. ;-) From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 04 12:00:20 2015 Received: (at 17284) by debbugs.gnu.org; 4 Apr 2015 16:00:20 +0000 Received: from localhost ([127.0.0.1]:44856 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YeQUe-0007oi-7m for submit@debbugs.gnu.org; Sat, 04 Apr 2015 12:00:20 -0400 Received: from mout.gmx.net ([212.227.17.22]:49909) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YeQUb-0007oT-GQ for 17284@debbugs.gnu.org; Sat, 04 Apr 2015 12:00:18 -0400 Received: from [178.189.205.199] ([178.189.205.199]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0Lkzph-1ZF8ou25Uz-00amOP; Sat, 04 Apr 2015 18:00:09 +0200 Message-ID: <55200A7E.4050701@gmx.at> Date: Sat, 04 Apr 2015 17:59:58 +0200 From: martin rudalics MIME-Version: 1.0 To: Stefan Monnier Subject: Re: bug#17284: Host name completion in shell mode take 45 seconds References: <87a8ypixcn.fsf@yahoo.fr> <551E6D24.4020408@yahoo.fr> <551E7587.4000103@gmx.at> <551FA0F2.4050104@gmx.at> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:lonqMJmTmUzlVf1AnZwOFQ7oznw7vsLAcr/McGb/L2IcjNTgKCm OAm8y3jn9oM0c1h/iVmgIakLnA+3la76YMsf34jXmlrD2MRhwSvvAhDfSeAYB+P94/scLEC 7IBKn53PUdyTmh6ASrXBamQ9jtCkz2Ma7+iefzEJJ5rcQnPO+UpobfN210+HS4XNn9ZCLRW 4jBotmpL9BhVvcdpWqoSA== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 17284 Cc: Svend Sorensen , Nicolas Richard , 17284@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) > I don't think so. It's just going to add a couple more warnings, which > can all be fixed trivially. Well, I asked for it. Hopefully we're now motivated enough to supply the (hopefully trivial) fixes. martin From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 04 12:00:27 2015 Received: (at 17284) by debbugs.gnu.org; 4 Apr 2015 16:00:27 +0000 Received: from localhost ([127.0.0.1]:44859 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YeQUk-0007p0-Pi for submit@debbugs.gnu.org; Sat, 04 Apr 2015 12:00:27 -0400 Received: from mout.gmx.net ([212.227.17.22]:55720) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YeQUh-0007ob-M8 for 17284@debbugs.gnu.org; Sat, 04 Apr 2015 12:00:24 -0400 Received: from [178.189.205.199] ([178.189.205.199]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0MfzEP-1Z1tK92rMz-00NULj; Sat, 04 Apr 2015 18:00:16 +0200 Message-ID: <55200A87.9050605@gmx.at> Date: Sat, 04 Apr 2015 18:00:07 +0200 From: martin rudalics MIME-Version: 1.0 To: Drew Adams , Svend Sorensen , Nicolas Richard Subject: Re: bug#17284: Host name completion in shell mode take 45 seconds References: <87a8ypixcn.fsf@yahoo.fr> <4982c9c5-f87b-41f0-8e79-30fb65de6e99@default> <551FA100.2040208@gmx.at> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:lxHmJ0hFzBeJ19AGmAn4AFhVW/xGq5lUxYPZuJXU4jfh/3BD0Lq 2cP2MY8RBNaA/WhLvDEodQFmDchYXuAMA2m75MHlr4v6UbBWfDn5/aPXvAJ3a3eTHlaww9O T0cUyppEdhvg1SLIuritRbuabxfQKkmogWMQeQsJ1QiEpHPdilzeXI1AEOSNa5oAyka06L4 9FMf8rxdXTcMHyNKsaLZQ== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 17284 Cc: 17284@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) > `buffer-substring-no-properties' is defined in C. I can't tell > whether this is more efficient because of that or less efficient > because it creates a potentially giant string before starting to > compare. I was trying to compare starting from the far end, > thinking that that might lead to earlier failure detection. I got your idea. But you also said that what we are handling here is "typically a short string" ;-) martin From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 04 17:38:58 2015 Received: (at 17284) by debbugs.gnu.org; 4 Apr 2015 21:38:58 +0000 Received: from localhost ([127.0.0.1]:44955 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YeVmM-0003bs-FA for submit@debbugs.gnu.org; Sat, 04 Apr 2015 17:38:58 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:25180) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YeVmL-0003bX-0s for 17284@debbugs.gnu.org; Sat, 04 Apr 2015 17:38:57 -0400 Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t34LcmpP006092 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 4 Apr 2015 21:38:49 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.13.8/8.13.8) with ESMTP id t34LcmB3003206 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sat, 4 Apr 2015 21:38:48 GMT Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id t34Lcm6o022280; Sat, 4 Apr 2015 21:38:48 GMT MIME-Version: 1.0 Message-ID: <2cf51818-6417-4110-8a4b-15fa4495ad49@default> Date: Sat, 4 Apr 2015 14:38:50 -0700 (PDT) From: Drew Adams To: martin rudalics , Svend Sorensen , Nicolas Richard Subject: RE: bug#17284: Host name completion in shell mode take 45 seconds References: <87a8ypixcn.fsf@yahoo.fr> <4982c9c5-f87b-41f0-8e79-30fb65de6e99@default> <551FA100.2040208@gmx.at> <55200A87.9050605@gmx.at> In-Reply-To: <55200A87.9050605@gmx.at> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Source-IP: aserv0022.oracle.com [141.146.126.234] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 17284 Cc: 17284@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) > > `buffer-substring-no-properties' is defined in C. I can't tell > > whether this is more efficient because of that or less efficient > > because it creates a potentially giant string before starting to > > compare. I was trying to compare starting from the far end, > > thinking that that might lead to earlier failure detection. >=20 > I got your idea. But you also said that what we are handling here is > "typically a short string" ;-) Yes, and I do expect that that's the typical case. The question is whether we want to handle more than this typical case. To be clear, I don't say we that we need to. But if we are going to define this, why not? That's why I suggested that we might even want to define it C, like `char-before'. Whatever others decide about that is fine with me. The suggestion is to add such a function, however it might be implemented. From unknown Sun Aug 10 16:51:35 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 03 May 2015 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 01 22:57:27 2016 Received: (at control) by debbugs.gnu.org; 2 Jan 2016 03:57:27 +0000 Received: from localhost ([127.0.0.1]:34233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aFDJm-00062P-RZ for submit@debbugs.gnu.org; Fri, 01 Jan 2016 22:57:27 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:46455) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aFDJk-00062C-UQ for control@debbugs.gnu.org; Fri, 01 Jan 2016 22:57:25 -0500 Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u023vH4V022636 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Sat, 2 Jan 2016 03:57:18 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.13.8/8.13.8) with ESMTP id u023vHH9007878 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Sat, 2 Jan 2016 03:57:17 GMT Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u023vHYW020498 for ; Sat, 2 Jan 2016 03:57:17 GMT MIME-Version: 1.0 Message-ID: <24de5f0b-64b1-4d7e-89cd-d3dbb4ec24f2@default> Date: Fri, 1 Jan 2016 19:57:16 -0800 (PST) From: Drew Adams To: control@debbugs.gnu.org Subject: unarchive 17284 X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: userv0022.oracle.com [156.151.31.74] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) unarchive 17284 thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 01 22:59:24 2016 Received: (at 17284) by debbugs.gnu.org; 2 Jan 2016 03:59:24 +0000 Received: from localhost ([127.0.0.1]:34238 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aFDLg-00065W-6h for submit@debbugs.gnu.org; Fri, 01 Jan 2016 22:59:24 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:19688) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aFDLe-00065H-GT for 17284@debbugs.gnu.org; Fri, 01 Jan 2016 22:59:22 -0500 Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u023xAmV023896 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sat, 2 Jan 2016 03:59:10 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0022.oracle.com (8.13.8/8.13.8) with ESMTP id u023x9Y6010475 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sat, 2 Jan 2016 03:59:09 GMT Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by userv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u023x8ri018265; Sat, 2 Jan 2016 03:59:08 GMT MIME-Version: 1.0 Message-ID: <5901394d-2898-43a0-9a97-1b66e8ad974e@default> Date: Fri, 1 Jan 2016 19:59:06 -0800 (PST) From: Drew Adams To: martin rudalics , Svend Sorensen , Nicolas Richard Subject: RE: bug#17284: Host name completion in shell mode take 45 seconds References: <87a8ypixcn.fsf@yahoo.fr> <4982c9c5-f87b-41f0-8e79-30fb65de6e99@default> <551FA100.2040208@gmx.at> <55200A87.9050605@gmx.at> <2cf51818-6417-4110-8a4b-15fa4495ad49@default> In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Source-IP: userv0022.oracle.com [156.151.31.74] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 17284 Cc: 17284@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Trying again, after trying to unarchive: > From: Drew Adams Sent: Thursday, December 31, 2015 3:14 PM >=20 > Martin's `string-before-p' Lisp version seems good. > Did such a function ever get added to Emacs? >=20 > Even if something better gets coded in C someday, it might > be good to add the Lisp version now. From unknown Sun Aug 10 16:51:35 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 30 Jan 2016 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator