From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: npostavs@users.sourceforge.net Newsgroups: gmane.emacs.bugs Subject: bug#28227: 26.0.50; Tramp tests are slow Date: Wed, 30 Aug 2017 22:26:33 -0400 Message-ID: <87lgm079ra.fsf@users.sourceforge.net> References: <878ti81xwb.fsf@chinook> <87lgm8dqev.fsf@detlef> <874lsok15a.fsf@runbox.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1504146322 2070 195.159.176.226 (31 Aug 2017 02:25:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 31 Aug 2017 02:25:22 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux) Cc: Michael Albinus , 28227@debbugs.gnu.org To: Gemini Lasswell Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 31 04:25:16 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dnFAK-0008Bv-KR for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 Aug 2017 04:25:08 +0200 Original-Received: from localhost ([::1]:53610 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dnFAQ-0004KZ-1a for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Aug 2017 22:25:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44142) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dnFAJ-0004Hv-NU for bug-gnu-emacs@gnu.org; Wed, 30 Aug 2017 22:25:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dnFAG-0001C7-Jg for bug-gnu-emacs@gnu.org; Wed, 30 Aug 2017 22:25:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55192) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dnFAG-0001By-FT for bug-gnu-emacs@gnu.org; Wed, 30 Aug 2017 22:25:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dnFAE-0004fp-Cc for bug-gnu-emacs@gnu.org; Wed, 30 Aug 2017 22:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 31 Aug 2017 02:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28227 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28227-submit@debbugs.gnu.org id=B28227.150414630117962 (code B ref 28227); Thu, 31 Aug 2017 02:25:02 +0000 Original-Received: (at 28227) by debbugs.gnu.org; 31 Aug 2017 02:25:01 +0000 Original-Received: from localhost ([127.0.0.1]:35640 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dnFAD-0004fX-Ih for submit@debbugs.gnu.org; Wed, 30 Aug 2017 22:25:01 -0400 Original-Received: from mail-io0-f181.google.com ([209.85.223.181]:34514) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dnFAB-0004fK-6h for 28227@debbugs.gnu.org; Wed, 30 Aug 2017 22:24:59 -0400 Original-Received: by mail-io0-f181.google.com with SMTP id n71so14660795iod.1 for <28227@debbugs.gnu.org>; Wed, 30 Aug 2017 19:24:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=M3RO56e71ndiqpjvAkIOMR5I7sYyfsYU0/M4CoeXxc4=; b=Y7Oxt4Qt9bxc0JS/YptrOBD+51DkGLbsgJuV5PHXTzKWB+eYZU+ZNqrmpZc5COO+gK /aOxalw11mF4KKL309UjPAOVVnWomKcegRPz/bJRYnYr70jVuQMc0JBx2HurFHr/f/An +QoPuDfYse63oecigUH6+lulWf9gVkhZNP5AR1kWPyIiDzb50CJRBbTMRTKmIs91ymIu ENAA3l2RseqcJWiEGQ3pzPac0FqEmByXYphKHkNlzjmoseqdx9LeEeaYZnxHT/4JeeQU GLDStMGKUQzYa9O1LT7emhdtJOLJ1PeoB8pq65rPARvUTdNoQZz1eSYeb+K+cziucfi0 cH8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=M3RO56e71ndiqpjvAkIOMR5I7sYyfsYU0/M4CoeXxc4=; b=omIDsinH9cb1num4BcqlZYFJ3vqTuROXHs1OmcXb6br3TtmG7q64ABkYOZ+tE+vzY+ Gq/4iVuIazfaBTBzo7s1iVibHdfWINuo0u3sNPCeUkfOP5HaMlf83X19xRHwr8D9TK3t fOUEl5pzeYqLXrDqx/d0/oTeISnIjMfvo/kuZ4b88i7qZh8xj48Rjg3i8dLuQAcn5spN JS2aEc4SUqHQLnHVBw7jEJUXRohCb3FsVUygmtO4Mrx+8ZBKD+cy0nVlexqKheACSFpw 5F/G9/qGJcKBpBpZlvBfDbjikzVM0J08m2rqMEAM9q2LZ48VCnH7A18UMiAVoyhScTJ/ OVRQ== X-Gm-Message-State: AHYfb5iP+1NOvIyT8XcTK8mkKxphH6TthDytBz8FCoFGpRHNkGk1xegj JDUGS3Iue+zRBAOSKbc= X-Received: by 10.36.69.32 with SMTP id y32mr3484724ita.28.1504146293352; Wed, 30 Aug 2017 19:24:53 -0700 (PDT) Original-Received: from zony ([45.2.119.49]) by smtp.googlemail.com with ESMTPSA id z140sm149094itb.30.2017.08.30.19.24.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 30 Aug 2017 19:24:52 -0700 (PDT) In-Reply-To: <874lsok15a.fsf@runbox.com> (Gemini Lasswell's message of "Wed, 30 Aug 2017 18:20:08 -0700") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:136400 Archived-At: Gemini Lasswell writes: > +(defmacro tramp-lookup-syntax (alist) > + "Look up a syntax string in ALIST according to `tramp-compat-tramp-syntax.' > +Raise an error if `tramp-syntax' is invalid." > + `(let ((result (cdr (assq (tramp-compat-tramp-syntax) ,alist)))) > + (or result > + (error "Wrong `tramp-syntax' %s" tramp-syntax)))) Was there a reason to defmacro instead of defun here? If it's performance, perhaps defsubst could work instead? (also, the let-binding seems redundant)