From fad29ecccf0a0f59911b3fb0bb23eaab81ba52cd Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Wed, 15 Mar 2023 12:22:48 +0100 Subject: Replace equalp with equal. --- init.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.org b/init.org index 559bc88..69c289f 100644 --- a/init.org +++ b/init.org @@ -569,13 +569,13 @@ TRAMP is a really convenient way to edit files on remote systems from within the I’m not using this yet. I’d like to figure out how to make TRAMP use =ssh1= as a proxy only when I’m not connected to the institute’s network. -#+BEGIN_SRC elisp :noweb-ref nil +#+BEGIN_SRC elisp (defun at-work-p () "Tell me if I’m connected to the network at work." (with-temp-buffer (call-process "ip" nil t nil "route" "list" "root" "141.80/16") ;; There is no output when there is no route with this prefix. - (not (equalp (point-min) (point-max))))) + (not (equal (point-min) (point-max))))) #+END_SRC * Shell -- cgit v1.2.3