all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Cc: Michael Albinus <michael.albinus@gmx.de>
Subject: Re: [Emacs-diffs] master ef75c3b: Optimize `file-equal-p' and `file-in-directory-p' in Tramp
Date: Wed, 11 Nov 2015 09:40:07 -0500	[thread overview]
Message-ID: <jwvpozgppp6.fsf-monnier+emacsdiffs@gnu.org> (raw)
In-Reply-To: <E1ZwSwD-0005m3-U8@vcs.savannah.gnu.org> (Michael Albinus's message of "Wed, 11 Nov 2015 10:47:38 +0000")

> +  (when (string-equal
> +	 (file-remote-p (expand-file-name filename1))
> +	 (file-remote-p (expand-file-name filename2)))

The above args to string-equal aren't always strings: why not use
`equal' instead?
(string-equal nil "nil") is non-nil, so I think the code will work
correctly but only because file-remote-p should hopefully never return
"nil".


        Stefan



       reply	other threads:[~2015-11-11 14:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20151111104737.22161.11802@vcs.savannah.gnu.org>
     [not found] ` <E1ZwSwD-0005m3-U8@vcs.savannah.gnu.org>
2015-11-11 14:40   ` Stefan Monnier [this message]
2015-11-11 15:38     ` [Emacs-diffs] master ef75c3b: Optimize `file-equal-p' and `file-in-directory-p' in Tramp Michael Albinus
2015-11-11 16:07       ` Stefan Monnier
2015-11-11 16:46         ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvpozgppp6.fsf-monnier+emacsdiffs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=michael.albinus@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.