From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 13 13:54:31 2020 Received: (at submit) by debbugs.gnu.org; 13 Nov 2020 18:54:31 +0000 Received: from localhost ([127.0.0.1]:49349 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdeDP-0002yK-1l for submit@debbugs.gnu.org; Fri, 13 Nov 2020 13:54:31 -0500 Received: from lists.gnu.org ([209.51.188.17]:51476) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdeDM-0002yA-B9 for submit@debbugs.gnu.org; Fri, 13 Nov 2020 13:54:29 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50446) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdeDM-0002U6-2i for bug-gnu-emacs@gnu.org; Fri, 13 Nov 2020 13:54:28 -0500 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]:38024) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kdeDK-0003Iv-3W for bug-gnu-emacs@gnu.org; Fri, 13 Nov 2020 13:54:27 -0500 Received: by mail-pg1-x543.google.com with SMTP id j19so1008979pgg.5 for ; Fri, 13 Nov 2020 10:54:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=L5FzFO9EfOV8aHN4jN9sm8/5chsFLOknc3jmSCfnUQ8=; b=bWogUYQfirWnswe1kJV7iVWryqIiVtyCqST6eIiuj7onV0RPbOufmZDA/d6KEUCP75 az/0xEfHlTu+sngIowG+x9n/fRn+MZP0pLEc78Dxxp1+sOo6N4Q9KdY0wHpMp8ZSLEio 5KVo350zNUq233yJTwTPl/Xncd4Lm7UaELVsrPB1ns2atolNAhpdUWl1PpAM61EGtQD5 SsI+MhlBwGrHyBX4zxiiFo73q95KHjKwpsSUKEHOQ/Zop4GCQNiN0Wtp/BmFLfMl1QtD XxjJK1C/UHHSpVxwR7i8HofXyDQMy7gYqN3ka9nRyaYtm8jR/ITvyirLnZR65JCbYKbI OusQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=L5FzFO9EfOV8aHN4jN9sm8/5chsFLOknc3jmSCfnUQ8=; b=qhp34xdiJ03MakvP0jx5D7B67HIran69UT8pRMVCrcpf9Fmk3wwqS0XmvnSQpwL7l1 scS7QXH8p4WkMtG/kLJhxzI5lfSym0jMmhEkCzDyKQaewzVJZtfgxPdxn/kJjV4Mm7zP F2Y2IPvgnL7RrFRpkrrn9HrJFjE0nB+tfJlS4IHo3R0SPNqNld2HE6BsAHhW2Z73WJRT JwbXrajS3Q1OrYycQTKxkYdkgB7AWpsjNEf4slIRFQpjb33PDlZeB6fqo44DXHNr3crD rbUKHuoqe68dPp8zEZRpm2/5+Ax5HFaSxuqjMa3XRliCcEmJW5YjvtspvFT4iit/Wz3c syhg== X-Gm-Message-State: AOAM530XKSmrgAMR8XeITDwy+3yHIgKdzIrCrhmEdoiHF8J5UyVhXcDZ Z02Js16vD1CQkr5fh7YcunYR2o5XxmCwhQ== X-Google-Smtp-Source: ABdhPJzZIbCmAaT+9NlJaphtSo6awa4SSQBBvlI12kXsaXBeCHhm+SVs6NsaIMhaaY5nGTCIIJtkbA== X-Received: by 2002:a17:90a:5908:: with SMTP id k8mr4371722pji.222.1605293664111; Fri, 13 Nov 2020 10:54:24 -0800 (PST) Received: from u0b6eedb2c9435b.ant.amazon.com ([2601:1c0:c:6da:a1b3:7e10:7b06:8308]) by smtp.gmail.com with ESMTPSA id t16sm3712619pga.51.2020.11.13.10.54.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Nov 2020 10:54:23 -0800 (PST) From: Daniel Lenski To: bug-gnu-emacs@gnu.org Subject: [PATCH v2] speedbar bugfix: only replace '~/' when it appears at the beginning of the path Date: Fri, 13 Nov 2020 10:51:38 -0800 Message-Id: <20201113185138.1333727-1-dlenski@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <87y2j5tvql.fsf@igel.home> References: <87y2j5tvql.fsf@igel.home> Received-SPF: pass client-ip=2607:f8b0:4864:20::543; envelope-from=dlenski@gmail.com; helo=mail-pg1-x543.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: Andreas Schwab , Daniel Lenski 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 (--) This makes Speedbar work correctly with remote directories accessed through TRAMP. This bug has apparently been known for a long time: https://cedet-devel.narkive.com/eIs7LoWB/speedbar-and-tramp#post2 Signed-off-by: Daniel Lenski --- lisp/speedbar.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/speedbar.el b/lisp/speedbar.el index 991c8a33d4..3619b23d9e 100644 --- a/lisp/speedbar.el +++ b/lisp/speedbar.el @@ -1874,9 +1874,9 @@ matches the user directory ~, then it is replaced with a ~. INDEX is not used, but is required by the caller." (let* ((tilde (expand-file-name "~/")) (dd (expand-file-name directory)) - (junk (string-match (regexp-quote tilde) dd)) + (junk (string-prefix-p "~/" dd)) (displayme (if junk - (concat "~/" (substring dd (match-end 0))) + (concat "~/" (substring dd 2 nil)) dd)) (p (point))) (if (string-match "^~[/\\]?\\'" displayme) (setq displayme tilde)) -- 2.17.1 From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 14 11:08:16 2020 Received: (at 44622) by debbugs.gnu.org; 14 Nov 2020 16:08:17 +0000 Received: from localhost ([127.0.0.1]:51684 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdy64-0004kx-ML for submit@debbugs.gnu.org; Sat, 14 Nov 2020 11:08:16 -0500 Received: from quimby.gnus.org ([95.216.78.240]:44022) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdy62-0004kj-S9 for 44622@debbugs.gnu.org; Sat, 14 Nov 2020 11:08:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=QtegXwZPLZdD2OnECA3else5LTIR9OEnYKejQvuNwLY=; b=d9AQtxoIMoxzlkKgWnNdjjQWvA JyCCJKaZ7WrgHsgnIU4N1qtootYPKJiMJKIe4zueqvCEzrkakOa9iiNO6cQCCS4wCpTCDAP/NyPJD 4ACXtanOfppjAM3KDHF1ngwAPmlt1Gw/5s/9hroDSkhZliURU4EMNXzH3btjTEvkCs5Q=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kdy5s-0000TF-7D; Sat, 14 Nov 2020 17:08:09 +0100 From: Lars Ingebrigtsen To: Daniel Lenski Subject: Re: bug#44622: [PATCH v2] speedbar bugfix: only replace '~/' when it appears at the beginning of the path References: <87y2j5tvql.fsf@igel.home> <20201113185138.1333727-1-dlenski@gmail.com> X-Now-Playing: Genesis's _Duke_: "Heathaze" Date: Sat, 14 Nov 2020 17:08:03 +0100 In-Reply-To: <20201113185138.1333727-1-dlenski@gmail.com> (Daniel Lenski's message of "Fri, 13 Nov 2020 10:51:38 -0800") Message-ID: <87eekvzzto.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Daniel Lenski writes: > This makes Speedbar work correctly with remote directories accessed > through TRAMP. This bug has apparently been known for a long time: > https://cedet-devel.narkive.com/eIs7LoWB/speedbar-and-tramp [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 44622 Cc: Andreas Schwab , 44622@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: -1.0 (-) Daniel Lenski writes: > This makes Speedbar work correctly with remote directories accessed > through TRAMP. This bug has apparently been known for a long time: > https://cedet-devel.narkive.com/eIs7LoWB/speedbar-and-tramp#post2 Thanks; applied to Emacs 28. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 14 11:08:22 2020 Received: (at control) by debbugs.gnu.org; 14 Nov 2020 16:08:22 +0000 Received: from localhost ([127.0.0.1]:51687 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdy69-0004lI-Tr for submit@debbugs.gnu.org; Sat, 14 Nov 2020 11:08:22 -0500 Received: from quimby.gnus.org ([95.216.78.240]:44036) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdy68-0004kq-F3 for control@debbugs.gnu.org; Sat, 14 Nov 2020 11:08:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=evO3ATU4TQ4/uTNiwgDLNfU/vS75dQK1HouBPMVjDao=; b=nt81IsJUrGUYE2JXmtruQ2+qPJ hQTdeNiRDs5WJqKqq1kbM3VzqvF+DdYzZlbvOh3uU23GAlEu8Mtt9pbTvBtGt3zfs0zAMH8y4Qrub BzFzlfc8ladnlKA4NeyU+vah8IW8EyrZeDiWAcpvV8jXOqT5XL/SI1Qy3vKarWJB8qhQ=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kdy61-0000TN-0x for control@debbugs.gnu.org; Sat, 14 Nov 2020 17:08:15 +0100 Date: Sat, 14 Nov 2020 17:08:12 +0100 Message-Id: <87d00fzztf.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #44622 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 44622 fixed close 44622 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) 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: -1.0 (-) tags 44622 fixed close 44622 28.1 quit From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 14 11:28:42 2020 Received: (at control) by debbugs.gnu.org; 14 Nov 2020 16:28:42 +0000 Received: from localhost ([127.0.0.1]:51754 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdyPq-0007Ow-K6 for submit@debbugs.gnu.org; Sat, 14 Nov 2020 11:28:42 -0500 Received: from quimby.gnus.org ([95.216.78.240]:44658) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdyPp-0007Oi-C2 for control@debbugs.gnu.org; Sat, 14 Nov 2020 11:28:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=m/O4uCR7X8VxvZpZq4dcGSDVV3046bWDpdrBLk9os4U=; b=QU3egkAJn0lHb5oM9punWN2iAW AhT8Goy4f5eEfh+oa7wodqU0gHI+MyK+7r7lK+kCICYJqLDKocPD07xVKp+I2ndeqJj4ChWWbfce+ pjI1UJgdN1KLsBOIIYyRtiI6LJfeH3X5xC+4hZHCytD6bemtvdiV1uVTy1rdGpicJaiE=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kdyPh-0000hq-HN for control@debbugs.gnu.org; Sat, 14 Nov 2020 17:28:35 +0100 Date: Sat, 14 Nov 2020 17:28:32 +0100 Message-Id: <871rgvzyvj.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #44622 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: forcemerge 44622 44608 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) 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: -1.0 (-) forcemerge 44622 44608 quit From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 14 11:31:53 2020 Received: (at submit) by debbugs.gnu.org; 14 Nov 2020 16:31:53 +0000 Received: from localhost ([127.0.0.1]:51759 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdySv-0000eZ-25 for submit@debbugs.gnu.org; Sat, 14 Nov 2020 11:31:53 -0500 Received: from lists.gnu.org ([209.51.188.17]:54868) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdySt-0000ck-2b for submit@debbugs.gnu.org; Sat, 14 Nov 2020 11:31:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43736) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdySs-0000LM-Pj for bug-gnu-emacs@gnu.org; Sat, 14 Nov 2020 11:31:50 -0500 Received: from mail-out.m-online.net ([212.18.0.10]:46004) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdySo-0001gD-IB for bug-gnu-emacs@gnu.org; Sat, 14 Nov 2020 11:31:50 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4CYLSs4nzTz1rsMq; Sat, 14 Nov 2020 17:31:41 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4CYLSs4Ygjz1qyX6; Sat, 14 Nov 2020 17:31:41 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 6d5IeshrTMZU; Sat, 14 Nov 2020 17:31:40 +0100 (CET) X-Auth-Info: qDu1ID8clROfpuuEkkNe6mmSUOPpyivQ6fGlbnkr+Lzpq3sdTdgrOK2//iPDnesN Received: from igel.home (ppp-46-244-179-214.dynamic.mnet-online.de [46.244.179.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Sat, 14 Nov 2020 17:31:40 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id 477B72C334E; Sat, 14 Nov 2020 17:31:40 +0100 (CET) From: Andreas Schwab To: Daniel Lenski Subject: Re: [PATCH v2] speedbar bugfix: only replace '~/' when it appears at the beginning of the path References: <87y2j5tvql.fsf@igel.home> <20201113185138.1333727-1-dlenski@gmail.com> X-Yow: I want DUSTIN HOFFMAN!! .. I want LIBERACE!! YOW!! Date: Sat, 14 Nov 2020 17:31:40 +0100 In-Reply-To: <20201113185138.1333727-1-dlenski@gmail.com> (Daniel Lenski's message of "Fri, 13 Nov 2020 10:51:38 -0800") Message-ID: <87eekvlx1v.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=212.18.0.10; envelope-from=whitebox@nefkom.net; helo=mail-out.m-online.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/14 11:31:41 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -22 X-Spam_score: -2.3 X-Spam_bar: -- X-Spam_report: (-2.3 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit Cc: bug-gnu-emacs@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.1 (--) On Nov 13 2020, Daniel Lenski wrote: > diff --git a/lisp/speedbar.el b/lisp/speedbar.el > index 991c8a33d4..3619b23d9e 100644 > --- a/lisp/speedbar.el > +++ b/lisp/speedbar.el > @@ -1874,9 +1874,9 @@ matches the user directory ~, then it is replaced with a ~. > INDEX is not used, but is required by the caller." > (let* ((tilde (expand-file-name "~/")) > (dd (expand-file-name directory)) > - (junk (string-match (regexp-quote tilde) dd)) > + (junk (string-prefix-p "~/" dd)) That should match tilde, not "~/" (which will never match). Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From unknown Sun Jun 22 11:42:09 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug No longer marked as fixed in versions 28.1 and reopened. Date: Sat, 14 Nov 2020 16:52:02 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug No longer marked as fixed in versions 28.1 and reopened. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 14 11:51:11 2020 Received: (at control) by debbugs.gnu.org; 14 Nov 2020 16:51:11 +0000 Received: from localhost ([127.0.0.1]:51834 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdylb-0001hx-Bg for submit@debbugs.gnu.org; Sat, 14 Nov 2020 11:51:11 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:38680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdylY-0001hn-RA for control@debbugs.gnu.org; Sat, 14 Nov 2020 11:51:10 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4CYLvH4BSvz1qs0H for ; Sat, 14 Nov 2020 17:51:07 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4CYLvH2dpNz1qw5p for ; Sat, 14 Nov 2020 17:51:07 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id Jh0vLQW5P9QA for ; Sat, 14 Nov 2020 17:51:06 +0100 (CET) X-Auth-Info: kLd14cvrEcOBrwxfjlYBkhpTIGVT640m2Xc0XLr4bZE62URA5J16Jz5Wp//lENN1 Received: from igel.home (ppp-46-244-179-214.dynamic.mnet-online.de [46.244.179.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA for ; Sat, 14 Nov 2020 17:51:06 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id 7209C2C3350; Sat, 14 Nov 2020 17:51:06 +0100 (CET) To: control@debbugs.gnu.org From: Andreas Schwab Subject: control message for bug #44622 Message-Id: <20201114165106.7209C2C3350@igel.home> Date: Sat, 14 Nov 2020 17:51:06 +0100 (CET) X-Spam-Score: -0.4 (/) 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: -1.4 (-) reopen 44622 tags 44622 - fixed patch quit From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 31 08:56:22 2021 Received: (at 44622) by debbugs.gnu.org; 31 Jul 2021 12:56:22 +0000 Received: from localhost ([127.0.0.1]:33464 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9oXO-0007Rz-0j for submit@debbugs.gnu.org; Sat, 31 Jul 2021 08:56:22 -0400 Received: from quimby.gnus.org ([95.216.78.240]:53184) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9oXM-0007Rk-6a; Sat, 31 Jul 2021 08:56:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=exXujR9ePLnYZDlp0WfaadSp9Hs4er6ePnf96Kcc88A=; b=TNndxjvxnooDF8hh5IwJjuhJkD HCQ7msgrU/nqqWRy/zZqekEFBigN24R28jlOZoGJATltR6hBl2kdaXMPvdgAzIro+0My+YJRg4uLI vBeSr2E5KHZD/o5Trup45p/VcFZQ78HTMIjFaOi2ry/dyS184EY9AAwq+QqGsZ8l+uA4=; Received: from 2.149.45.105.tmi.telenormobil.no ([2.149.45.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m9oXC-0003l2-Nz; Sat, 31 Jul 2021 14:56:13 +0200 From: Lars Ingebrigtsen To: Daniel Lenski Subject: Re: bug#44608: [PATCH] speedbar bugfix: only replace '~/' when it appears at the beginning of the path References: <87y2j5tvql.fsf@igel.home> <20201113185138.1333727-1-dlenski@gmail.com> <87eekvzzto.fsf@gnus.org> Date: Sat, 31 Jul 2021 14:56:08 +0200 In-Reply-To: <87eekvzzto.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 14 Nov 2020 17:08:03 +0100") Message-ID: <87lf5mhcbb.fsf_-_@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > Daniel Lenski writes: > >> This makes Speedbar work correctly with remote directories accessed >> through TRAMP. This bug has apparently been known for a long time: >> https://ce [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 TVD_RCVD_IP Message was received from an IP address -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 44622 Cc: 44608@debbugs.gnu.org, Andreas Schwab , 44622@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: -3.3 (---) Lars Ingebrigtsen writes: > Daniel Lenski writes: > >> This makes Speedbar work correctly with remote directories accessed >> through TRAMP. This bug has apparently been known for a long time: >> https://cedet-devel.narkive.com/eIs7LoWB/speedbar-and-tramp#post2 > > Thanks; applied to Emacs 28. And now I've reverted it, because it doesn't really look like it could possibly be correct. The URL is dead -- do you have a test case that demonstrates the original problem? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 31 08:56:38 2021 Received: (at control) by debbugs.gnu.org; 31 Jul 2021 12:56:38 +0000 Received: from localhost ([127.0.0.1]:33469 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9oXe-0007Sm-LI for submit@debbugs.gnu.org; Sat, 31 Jul 2021 08:56:38 -0400 Received: from quimby.gnus.org ([95.216.78.240]:53198) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9oXc-0007SZ-Fn for control@debbugs.gnu.org; Sat, 31 Jul 2021 08:56:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=9+xmff7lNkPbnnzTH70FUwjF7HKC/t/rXtGlwrBz7qU=; b=oP34dX+mA5f6ktsIkOILA0+7l9 jUlql8psokDc467YD/7Bnhwh4U/YGgMdScE8PU+sZsBtK21ir92u6rju7IYgNZzxiPOGaWRkfOBPR aroAQBUQcRriNWZlw4EP0wk/zuBLSlB5JdJ9T5uVncQ3NkhMuEj33+GLIaHnN0v6LuSw=; Received: from 2.149.45.105.tmi.telenormobil.no ([2.149.45.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m9oXU-0003lG-CY for control@debbugs.gnu.org; Sat, 31 Jul 2021 14:56:30 +0200 Date: Sat, 31 Jul 2021 14:56:27 +0200 Message-Id: <87k0l6hcas.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #44608 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 44608 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 TVD_RCVD_IP Message was received from an IP address -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 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: -3.3 (---) tags 44608 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 29 16:17:34 2021 Received: (at 44622) by debbugs.gnu.org; 29 Aug 2021 20:17:34 +0000 Received: from localhost ([127.0.0.1]:57485 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKRFC-0008PB-Al for submit@debbugs.gnu.org; Sun, 29 Aug 2021 16:17:34 -0400 Received: from quimby.gnus.org ([95.216.78.240]:55912) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKRF6-0008Hi-RE; Sun, 29 Aug 2021 16:17:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=1SgxLnxnfHV7N8MzSHCneg64y2vdKD5siysLhq0oHYE=; b=V8wnFd/Z2keI9Zpwv6/XsKiy7h OnyTxVoqPJ97SL9Vky/sWoaQThbA9P5Vj4k4nGvlqwB0CDknvKWoo1Q/2JjHNANL82hHgajWx4mc2 2WS6zJWEtncFbc1AnZwU2+5Z0cKznkF4e2QY7lIUEnGYXDzKX/ALyTN3X0QXxBPzDPH4=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mKREv-0003Zx-PF; Sun, 29 Aug 2021 22:17:18 +0200 From: Lars Ingebrigtsen To: Daniel Lenski Subject: Re: bug#44608: [PATCH] speedbar bugfix: only replace '~/' when it appears at the beginning of the path References: <87y2j5tvql.fsf@igel.home> <20201113185138.1333727-1-dlenski@gmail.com> <87eekvzzto.fsf@gnus.org> <87lf5mhcbb.fsf_-_@gnus.org> Date: Sun, 29 Aug 2021 22:17:13 +0200 In-Reply-To: <87lf5mhcbb.fsf_-_@gnus.org> (Lars Ingebrigtsen's message of "Sat, 31 Jul 2021 14:56:08 +0200") Message-ID: <87y28kc8fq.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > And now I've reverted it, because it doesn't really look like it could > possibly be correct. > > The URL is dead -- do you have a test case that demonstrates the > original problem? Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 44622 Cc: 44608@debbugs.gnu.org, Andreas Schwab , 44622@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: -3.3 (---) Lars Ingebrigtsen writes: > And now I've reverted it, because it doesn't really look like it could > possibly be correct. > > The URL is dead -- do you have a test case that demonstrates the > original problem? More information was requested, but no response was given within a month, so I'm closing this bug report. If the problem still exists, please respond to this email and we'll reopen the bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 29 16:17:42 2021 Received: (at control) by debbugs.gnu.org; 29 Aug 2021 20:17:42 +0000 Received: from localhost ([127.0.0.1]:57489 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKRFL-0008WI-2V for submit@debbugs.gnu.org; Sun, 29 Aug 2021 16:17:42 -0400 Received: from quimby.gnus.org ([95.216.78.240]:55926) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKRFB-0008Ke-9D for control@debbugs.gnu.org; Sun, 29 Aug 2021 16:17:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=pdWbnJJQbRfHUjQ4YbTKvW667RktvPNzosO8luNxsf8=; b=Bw5WThPhAwzrbge0Xdtq9Uc5pG 4j7nrjJW8lOhWN6Zu+BvdZew1EwqPi7Of4yIpHnS/P4NqAftOqSrh0eKv4uEjyybhyZEQmaydnjWH 1B3MPC27Enwz3eFRRqW4MXNYfzptSZpN6xOR/tFFQdgFu8uPg3VvAoh0BBMo3OKCXroI=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mKRF3-0003aA-B0 for control@debbugs.gnu.org; Sun, 29 Aug 2021 22:17:23 +0200 Date: Sun, 29 Aug 2021 22:17:20 +0200 Message-Id: <87wno4c8fj.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #44608 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 44608 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 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: -3.3 (---) close 44608 quit From unknown Sun Jun 22 11:42:09 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 27 Sep 2021 11:24:04 +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