From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Augusto Stoffel Newsgroups: gmane.emacs.bugs Subject: bug#58447: [PATCH] In project-find-file, add absolute file name to history Date: Thu, 27 Oct 2022 20:12:45 +0200 Message-ID: <87y1t1gmoy.fsf@gmail.com> References: <8735budxiz.fsf@gmail.com> <83a662dvgo.fsf@gnu.org> <871qqvj6qb.fsf@gmail.com> <42bb91a0-60ff-2e51-dcdc-c1e1f80e31ec@yandex.ru> <837d0lmmpi.fsf@gnu.org> <1cce089a-546e-7f13-0907-3d36452aef10@yandex.ru> <83v8o5l0wa.fsf@gnu.org> <5c1cc828-5fcd-667f-41d4-f19923b2958e@yandex.ru> <87k04li5nw.fsf@gmail.com> <7c28a8f6-fc02-8519-664f-01f7d121d74a@yandex.ru> <87fsf9i4xc.fsf@gmail.com> <877d0li2dh.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27032"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 58447@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 27 20:13:29 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oo7Nh-0006pb-67 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 27 Oct 2022 20:13:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oo7NJ-0001Fo-Ki; Thu, 27 Oct 2022 14:13:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oo7NH-0001Fh-Qq for bug-gnu-emacs@gnu.org; Thu, 27 Oct 2022 14:13:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oo7NH-0007g1-Jq for bug-gnu-emacs@gnu.org; Thu, 27 Oct 2022 14:13:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oo7NG-0004id-4A for bug-gnu-emacs@gnu.org; Thu, 27 Oct 2022 14:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Augusto Stoffel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Oct 2022 18:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58447 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 58447-submit@debbugs.gnu.org id=B58447.166689437618127 (code B ref 58447); Thu, 27 Oct 2022 18:13:02 +0000 Original-Received: (at 58447) by debbugs.gnu.org; 27 Oct 2022 18:12:56 +0000 Original-Received: from localhost ([127.0.0.1]:59282 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oo7NA-0004iJ-11 for submit@debbugs.gnu.org; Thu, 27 Oct 2022 14:12:56 -0400 Original-Received: from mail-ed1-f47.google.com ([209.85.208.47]:37731) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oo7N7-0004i4-Dq for 58447@debbugs.gnu.org; Thu, 27 Oct 2022 14:12:54 -0400 Original-Received: by mail-ed1-f47.google.com with SMTP id l11so3021516edb.4 for <58447@debbugs.gnu.org>; Thu, 27 Oct 2022 11:12:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=DZHkyNGEow6ucHGwyZ36nT2PC/gRdeZBwwD1PR7KnwQ=; b=Ne2afxIhlMVKVAJTSgaGiQz6YmnrvH9GSNA2bYqaE+wfG7txkH+vvYjDgAbROCVEg3 rpSWufwQiiOOLufoG0UmsInfr409MzwGq67UHAMURNRmZlapvlgryxR31J3VlPR05xD+ FsrV8VQgCOngogxWaGr8BAHYyWMA431wL4GA0NliTN+HHcNCKOtBbeL1iedrR2BWL55Y GWqb3yzupiEs+8McSAPSNtqtyc1KcB82tY56MFBxIzyWhAs+4YcDXemLJZ3I+ulu2/nK qtYQv/tcsMhIyEIswaapKAuk20+OcuqlvpXAQZ5Fnl5jtqJWwwIsE8/bYCaThFuZZuY9 t+Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=DZHkyNGEow6ucHGwyZ36nT2PC/gRdeZBwwD1PR7KnwQ=; b=QpOT09CLOYvM46Q/NJvIdj2gNnCKd+RkseW/hoXLOEK9P1o+sq6Pu6eDwsJ5daX0QY LEixHOotSSoeDwgxcoe/Hpv4MxENxb4BvsM7ygOQd4rO0+BpKfAJ6sJcwK57uDw+c/uG DyIr2cbK/ZfV/HNkr8l84t3ggMJN5iQ7HyUYdOFPPo9mKavBXNOU94e/qaiqonlzQv/K T0FqAhCgag+QpOQZkpHJorJg9+P65ZzXbNl6nOG+Hq5PKG1ogw1/T50Z0ywyrMWb1DTh dKEyLgessQBZCq+ovK7z6pS8/4dmIpv1k1GaY0FHxDPjreYqXacUJug48d+SkDtysVkp Be2w== X-Gm-Message-State: ACrzQf1h129MlCTO8DqQaqXX6TmQFb1/c+neJkG0S2A9UX4xaQ+78Dwq n7nquyTBVweox3sB0MQs2/WOSk15t5I= X-Google-Smtp-Source: AMsMyM7WmfrUvYclbmD2hoW5APKMxh0b5BSm5I6pm/g9Yhnf+AUPMa7lcZGf+aZnd9Kg2WlnWZ3Nhg== X-Received: by 2002:a05:6402:2893:b0:461:59fd:9b4 with SMTP id eg19-20020a056402289300b0046159fd09b4mr30271468edb.389.1666894366985; Thu, 27 Oct 2022 11:12:46 -0700 (PDT) Original-Received: from ars3 ([2a02:8109:8ac0:56d0::89aa]) by smtp.gmail.com with ESMTPSA id v5-20020aa7d9c5000000b004580862ffdbsm1351840eds.59.2022.10.27.11.12.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Oct 2022 11:12:46 -0700 (PDT) In-Reply-To: (Dmitry Gutov's message of "Thu, 27 Oct 2022 21:05:07 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:246353 Archived-At: On Thu, 27 Oct 2022 at 21:05, Dmitry Gutov wrote: > On 27.10.2022 20:48, Augusto Stoffel wrote: >>> Can it handle the absolute values there? >> The completing read reads a file name, the relname; if it's relative, >> then it's expanded to an absolute name (the absname). If for whatever >> reason the relname was already absolute, then absname will be equal to >> relname (what else could you do, right?) > > The completion table won't match absolute names. But okay, > require-match is nil there, so any arbitrary input will be accepted. Right. > But what if that absolute name comes from a different project? In my patch it will just find that file. Alternatively we could throw an error, but I don't see a point in doing that.