Received: (at 64131) by debbugs.gnu.org; 12 Sep 2023 01:01:21 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 11 21:01:21 2023 Received: from localhost ([127.0.0.1]:55486 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qfrmL-0007eE-EQ for submit <at> debbugs.gnu.org; Mon, 11 Sep 2023 21:01:21 -0400 Received: from sender2-pp-o92.zoho.com.cn ([163.53.93.251]:25162) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <qiang.fang@HIDDEN>) id 1qfrmJ-0007e3-Dz for 64131 <at> debbugs.gnu.org; Mon, 11 Sep 2023 21:01:20 -0400 Delivered-To: qiang.fang@HIDDEN DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1694480472; s=admin; d=zoho.com.cn; i=qiang.fang@HIDDEN; h=Date:Date:Message-ID:From:From:To:To:Cc:Cc:Subject:Subject:In-Reply-To:References:MIME-Version:Content-Type:Message-Id:Reply-To; bh=ZB8JYjEOIzLfI8ctgn9ds4DpxQJM2m0pJuAwinbgcVo=; b=J+03VH35OQz4bCI4gHh3+lu86kPGvsdUC2xaNqpSJUfrdiXQSIKbDkcERu/xM52n hJrc42Ne3lFDeMYQiV8pblxsdn3G56O/90fufeEQG0MLPR/Lyl4tN39Hkw2rNay094r j1XDnFvhkFJRd1W6J20BQsKER6LEl8uDSyrxxB5s= Received: from mypc.zoho.com.cn (118.117.89.178 [118.117.89.178]) by mx.zoho.com.cn with SMTPS id 1694480470911372.0672858121342; Tue, 12 Sep 2023 09:01:10 +0800 (CST) Date: Tue, 12 Sep 2023 09:01:09 +0800 Message-ID: <87cyyob3xm.wl-qiang.fang@HIDDEN> From: Qiang <qiang.fang@HIDDEN> To: Stefan Kangas <stefankangas@HIDDEN> Subject: Re: bug#64131: make resolving symlinks in compilation-find-file optional In-Reply-To: <CADwFkmka7yOstSCtAcryDgMDSfDJO2GiWsN=z4W9xyMLivag5g@HIDDEN> References: <188c9822598.13072238736789.4931166686046079619@HIDDEN> <CADwFkmnAVQ-weZmjtWdesbPrTKuJoKQLkb1ipE6AUTFB8e8ReQ@HIDDEN> <87h6o0b6x3.wl-qiang.fang@HIDDEN> <CADwFkmka7yOstSCtAcryDgMDSfDJO2GiWsN=z4W9xyMLivag5g@HIDDEN> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/29.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-ZohoCNMailClient: External X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 64131 Cc: Qiang <qiang.fang@HIDDEN>, 64131 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Without that tiny modification, I have problem jump to the file in my git-annex folder, it jump to the actual database folder, what I want to the folder that have the symlink. I think it should be the default. People use symlinks to organize text documents, a file may have links in different dirs. For example, if we use dirs as catalogues, when a file is opened following the search result in a "rg" buffer, it would be convenient to jump to the catalogue by just M-x "dired". However, the current behavior is to jump to the dir that has the symlink destination file. For people using git-annex, the symlink destination dir could be a database dir, and it is not supposed to be accessed directly.
bug-gnu-emacs@HIDDEN
:bug#64131
; Package emacs
.
Full text available.Received: (at 64131) by debbugs.gnu.org; 12 Sep 2023 00:59:19 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 11 20:59:19 2023 Received: from localhost ([127.0.0.1]:55480 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qfrkN-0004uU-1R for submit <at> debbugs.gnu.org; Mon, 11 Sep 2023 20:59:19 -0400 Received: from sender2-pp-o92.zoho.com.cn ([163.53.93.251]:25159) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <qiang.fang@HIDDEN>) id 1qfrkJ-0004uG-JC for 64131 <at> debbugs.gnu.org; Mon, 11 Sep 2023 20:59:17 -0400 Delivered-To: qiang.fang@HIDDEN DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1694480346; s=admin; d=zoho.com.cn; i=qiang.fang@HIDDEN; h=Date:Date:Message-ID:From:From:To:To:Cc:Cc:Subject:Subject:In-Reply-To:References:MIME-Version:Content-Type:Message-Id:Reply-To; bh=dznpbdRW6RoUtFOLxwcdr6/XAN84+MZvgFJFWJVIeAc=; b=N5f5dA6cyp04e9ouQPnhlHb2ZyfCTmI0w/uaR45g2mX8qWKv7B+/MeYS4FPnYuE1 uvM1Od6ogvP3kxbJQeELnxakpA7Hm3NEm5r///SvprLIZ25H0wS/c2dUOspDTiH7ejS dnMx+woNjtMQmSkFilKNVmvfWurlah6pQu0VE/tw= Received: from mypc.zoho.com.cn (118.117.89.232 [118.117.89.232]) by mx.zoho.com.cn with SMTPS id 1694480343994606.9699119934793; Tue, 12 Sep 2023 08:59:03 +0800 (CST) Date: Tue, 12 Sep 2023 08:59:03 +0800 Message-ID: <87edj4b414.wl-qiang.fang@HIDDEN> From: Qiang <qiang.fang@HIDDEN> To: Stefan Kangas <stefankangas@HIDDEN> Subject: Re: bug#64131: make resolving symlinks in compilation-find-file optional In-Reply-To: <CADwFkmka7yOstSCtAcryDgMDSfDJO2GiWsN=z4W9xyMLivag5g@HIDDEN> References: <188c9822598.13072238736789.4931166686046079619@HIDDEN> <CADwFkmnAVQ-weZmjtWdesbPrTKuJoKQLkb1ipE6AUTFB8e8ReQ@HIDDEN> <87h6o0b6x3.wl-qiang.fang@HIDDEN> <CADwFkmka7yOstSCtAcryDgMDSfDJO2GiWsN=z4W9xyMLivag5g@HIDDEN> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/29.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-ZohoCNMailClient: External X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 64131 Cc: Qiang <qiang.fang@HIDDEN>, 64131 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Without that tiny modification, I have problem jump to the file in my git-annex folder. I think it should be the default.
bug-gnu-emacs@HIDDEN
:bug#64131
; Package emacs
.
Full text available.Received: (at 64131) by debbugs.gnu.org; 12 Sep 2023 00:33:49 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 11 20:33:49 2023 Received: from localhost ([127.0.0.1]:55421 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qfrLg-0004Am-Sj for submit <at> debbugs.gnu.org; Mon, 11 Sep 2023 20:33:49 -0400 Received: from mail-lj1-x229.google.com ([2a00:1450:4864:20::229]:62516) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>) id 1qfrLe-0004AZ-Ug for 64131 <at> debbugs.gnu.org; Mon, 11 Sep 2023 20:33:48 -0400 Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2be5e2a3c86so73277191fa.0 for <64131 <at> debbugs.gnu.org>; Mon, 11 Sep 2023 17:33:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694478816; x=1695083616; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=lLtQR/P6LNPVW8qfUl0TeHfRvoK7p+I/7/0Qtw2MHqU=; b=BKtnVUtWxCgvmJ08qB6wJuDhRUMPsCFJ79Vc5D5W64D1Tku+F9NFlvOwh1mrh8mTwP zb1lfVqY4jYj4GZAy+qttmDIhowNuO1BkEho6vxyVwW9hiKSFa48f9eyVYeOEmZOOt1E 6ZxbdVBJ6lHWmnDG0yWQlZW7j9L3iRUqfCtUZscH0XW+bkn8xSsBU3pH2yHI/WGOPRZa euLhHT9HneYVKi6XsjISxgpybYXevWcAY6yYrm3GUZ3A0KbTIPQcF/EKOeRvZF479NOZ BL3W6FW62oeqaxQee9P8bMyf7G2oiCNaDGSX9lg/L2BxNeKDp+VKiO84Q+VBa+Yv/mEP 1KSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694478816; x=1695083616; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=lLtQR/P6LNPVW8qfUl0TeHfRvoK7p+I/7/0Qtw2MHqU=; b=feP1vla/riX8ffRGK/ZYE5ZI/3kePJ5OhO25qxm87BajFkLROb0npyrICb2aqaIGlw 56LJ5ssWcZOlRkF/QJe/9FbyP6lneHt2GyOlTKB5vfAL2sUf7FETneF1G8WzQD7nCHOC N1mMUD2wPvp5/8EyG6Vum/WFWWO8J9SWyjMeqeDG8HlprlZ8iw60a5GisUF5I5O0bTwI EltaNqbc8Cvq2bfJp0Yd8eAXZ0AxKnqm7XyJlEQJMzogvKs4x6glSNK2qvjIkPJrlod4 2Ihxe1z3NB0vyif5dLbQjQpkpDzNm2LIUXVhrcXCXN72nHuVk5xjphf3L2P5KOyPkVHc /taA== X-Gm-Message-State: AOJu0Yz1diA5PgeUHUE5LEpi3NoN398JUNSlZyQDlkaYVBjy8mXBT/5A 1fhlbyABNrrrhg21HXITylXxoG/8ieye3y/dBItRvbIfB8I= X-Google-Smtp-Source: AGHT+IGG7teK4QKqY+9ZZm/PanVgQZKEzp4hqb4tphTflAuc97UUVCVNg8kbcvwQF4ToPvtxUzu9gkc4XI+sKnik/8U= X-Received: by 2002:a05:651c:1250:b0:2bc:d2a6:3083 with SMTP id h16-20020a05651c125000b002bcd2a63083mr396850ljh.18.1694478816430; Mon, 11 Sep 2023 17:33:36 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 11 Sep 2023 17:33:36 -0700 From: Stefan Kangas <stefankangas@HIDDEN> In-Reply-To: <87h6o0b6x3.wl-qiang.fang@HIDDEN> References: <188c9822598.13072238736789.4931166686046079619@HIDDEN> <CADwFkmnAVQ-weZmjtWdesbPrTKuJoKQLkb1ipE6AUTFB8e8ReQ@HIDDEN> <87h6o0b6x3.wl-qiang.fang@HIDDEN> MIME-Version: 1.0 Date: Mon, 11 Sep 2023 17:33:36 -0700 Message-ID: <CADwFkmka7yOstSCtAcryDgMDSfDJO2GiWsN=z4W9xyMLivag5g@HIDDEN> Subject: Re: bug#64131: make resolving symlinks in compilation-find-file optional To: Qiang <qiang.fang@HIDDEN> Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 64131 Cc: 64131 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Qiang <qiang.fang@HIDDEN> writes: > No, I couldn't provide a recipe. But it is obvious even to a beginner > like me. The solution is just removed the file-truename function from > compile-find-file, or make it customisable: Thanks, but what is the problem that this solves?
bug-gnu-emacs@HIDDEN
:bug#64131
; Package emacs
.
Full text available.Received: (at 64131) by debbugs.gnu.org; 11 Sep 2023 23:57:00 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 11 19:57:00 2023 Received: from localhost ([127.0.0.1]:55267 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qfqm4-0003VM-8Z for submit <at> debbugs.gnu.org; Mon, 11 Sep 2023 19:57:00 -0400 Received: from sender2-pp-o92.zoho.com.cn ([163.53.93.251]:25156) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <qiang.fang@HIDDEN>) id 1qfqm2-0003VC-6y for 64131 <at> debbugs.gnu.org; Mon, 11 Sep 2023 19:56:59 -0400 Delivered-To: qiang.fang@HIDDEN DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1694476608; s=admin; d=zoho.com.cn; i=qiang.fang@HIDDEN; h=Date:Date:Message-ID:From:From:To:To:Cc:Cc:Subject:Subject:In-Reply-To:References:MIME-Version:Content-Type:Message-Id:Reply-To; bh=YX+U0sCQH72Xwncm0PVb/Vdud8HJhqJD9IICKlrbhsA=; b=B+vknzSqg/XGIqsW6Qkg8c0kjT0hv7x4wFSmiwOkZUCzpPPY7sQ/xa3UxB/GRYUQ oXvdZmxOvcT2kSu64u6j2ibNDv9N5+jyN0zUMNDM1cN8D32/eY1YtthUYD6EF8e6IUi NybdrjX7DII+bf6j3HraTtwhDI88Om+tWLAIDwWU= Received: from mypc.zoho.com.cn (182.136.10.30 [182.136.10.30]) by mx.zoho.com.cn with SMTPS id 1694476607376388.74310962524737; Tue, 12 Sep 2023 07:56:47 +0800 (CST) Date: Tue, 12 Sep 2023 07:56:40 +0800 Message-ID: <87h6o0b6x3.wl-qiang.fang@HIDDEN> From: Qiang <qiang.fang@HIDDEN> To: Stefan Kangas <stefankangas@HIDDEN> Subject: Re: bug#64131: make resolving symlinks in compilation-find-file optional In-Reply-To: <CADwFkmnAVQ-weZmjtWdesbPrTKuJoKQLkb1ipE6AUTFB8e8ReQ@HIDDEN> References: <188c9822598.13072238736789.4931166686046079619@HIDDEN> <CADwFkmnAVQ-weZmjtWdesbPrTKuJoKQLkb1ipE6AUTFB8e8ReQ@HIDDEN> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/29.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-ZohoCNMailClient: External X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 64131 Cc: Qiang Fang <qiang.fang@HIDDEN>, 64131 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) No, I couldn't provide a recipe. But it is obvious even to a beginner like me. The solution is just removed the file-truename function from compile-find-file, or make it customisable: (defun compilation-find-file (marker filename directory &rest formats) "Find a buffer for file FILENAME. If FILENAME is not found at all, ask the user where to find it. Pop up the buffer containing MARKER and scroll to MARKER if we ask the user where to find the file. Search the directories in `compilation-search-path'. A nil in `compilation-search-path' means to try the \"current\" directory, which is passed in DIRECTORY. If DIRECTORY is relative, it is combined with `default-directory'. If DIRECTORY is nil, that means use `default-directory'. FORMATS, if given, is a list of formats to reformat FILENAME when looking for it: for each element FMT in FORMATS, this function attempts to find a file whose name is produced by (format FMT FILENAME)." (or formats (setq formats '("%s"))) (let ((dirs compilation-search-path) (spec-dir (if directory (expand-file-name directory) default-directory)) buffer thisdir fmts name) (if (and filename (file-name-absolute-p filename)) ;; The file name is absolute. Use its explicit directory as ;; the first in the search path, and strip it from FILENAME. (setq filename (abbreviate-file-name (expand-file-name filename)) dirs (cons (file-name-directory filename) dirs) filename (file-name-nondirectory filename))) ;; Now search the path. (while (and dirs (null buffer)) (setq thisdir (or (car dirs) spec-dir) fmts formats) ;; For each directory, try each format string. (while (and fmts (null buffer)) (setq name (file-name-concat thisdir (format (car fmts) filename)) buffer (and (file-exists-p name) (find-file-noselect name)) fmts (cdr fmts))) (setq dirs (cdr dirs))) ;; If we haven't found it, this might be a parallel build. ;; Search the directories further up the buffer. (when (and (null buffer) compilation-search-all-directories) (with-current-buffer (marker-buffer marker) (save-excursion (goto-char (marker-position marker)) (when-let ((prev (compilation--previous-directory (point)))) (goto-char prev)) (setq dirs (cdr (or (get-text-property (1- (point)) 'compilation-directory) (get-text-property (point) 'compilation-directory)))))) (while (and dirs (null buffer)) (setq thisdir (car dirs) fmts formats) (while (and fmts (null buffer)) (setq name (file-name-concat thisdir (format (car fmts) filename)) buffer (and (file-exists-p name) (find-file-noselect name)) fmts (cdr fmts))) (setq dirs (cdr dirs)))) (while (null buffer) ;Repeat until the user selects an existing file. ;; The file doesn't exist. Ask the user where to find it. (save-excursion ;This save-excursion is probably not right. (let ((w (let ((pop-up-windows t)) (display-buffer (marker-buffer marker) '(nil (allow-no-window . t)))))) (with-current-buffer (marker-buffer marker) (goto-char marker) (and w (progn (compilation-set-window w marker) (compilation-set-overlay-arrow w)))) (let* ((name (read-file-name (format-prompt "Find this %s in" filename compilation-error) spec-dir filename t nil ;; The predicate below is fine when called from ;; minibuffer-complete-and-exit, but it's too ;; restrictive otherwise, since it also prevents the ;; user from completing "fo" to "foo/" when she ;; wants to enter "foo/bar". ;; ;; Try to make sure the user can only select ;; a valid answer. This predicate may be ignored, ;; tho, so we still have to double-check afterwards. ;; TODO: We should probably fix read-file-name so ;; that it never ignores this predicate, even when ;; using popup dialog boxes. ;; (lambda (name) ;; (if (file-directory-p name) ;; (setq name (expand-file-name filename name))) ;; (file-exists-p name)) )) (origname name)) (cond ((not (file-exists-p name)) (message "Cannot find file `%s'" name) (ding) (sit-for 2)) ((and (file-directory-p name) (not (file-exists-p (setq name (file-name-concat name filename))))) (message "No `%s' in directory %s" filename origname) (ding) (sit-for 2)) (t (setq buffer (find-file-noselect name)))))))) ;; Make intangible overlays tangible. ;; This is weird: it's not even clear which is the current buffer, ;; so the code below can't be expected to DTRT here. -- Stef (dolist (ov (overlays-in (point-min) (point-max))) (when (overlay-get ov 'intangible) (overlay-put ov 'intangible nil))) buffer)))
bug-gnu-emacs@HIDDEN
:bug#64131
; Package emacs
.
Full text available.Stefan Kangas <stefankangas@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 64131) by debbugs.gnu.org; 11 Sep 2023 18:06:43 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 11 14:06:43 2023 Received: from localhost ([127.0.0.1]:54737 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qflJ4-0003hy-MC for submit <at> debbugs.gnu.org; Mon, 11 Sep 2023 14:06:42 -0400 Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]:42178) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>) id 1qflJ1-0003hd-9A for 64131 <at> debbugs.gnu.org; Mon, 11 Sep 2023 14:06:41 -0400 Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2bcc331f942so57944321fa.0 for <64131 <at> debbugs.gnu.org>; Mon, 11 Sep 2023 11:06:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694455589; x=1695060389; darn=debbugs.gnu.org; h=to:subject:message-id:date:mime-version:references:in-reply-to:from :from:to:cc:subject:date:message-id:reply-to; bh=z6nGl5clCjMHrQ3So9Psxlv7NjQ8eMoegx7HH+L6Z+E=; b=heHN1qKTDKYrwolC7UXPqwjmXTt60F19kET/8oJpsKmC4TFwfukdBjWHf//IsxQI0j RM0F/9wBTyRGaoAiE2i3sl6aWPf4DlZkOrKfELR7e/+FzNyTpncTaiRHqp/VpHSSt1CN PeLKnhfM1jZjWiWsy16mjxojqTL+896n2GadvM2+9ip7Gc6fkhzsbGnPq1C0cRsXWWx0 PLlcG4xIZI5DHinrC3OW8MJrJ9aLMsVLLkWvjKgHejJy2sn/NseTD86mojnzKL5o4rGm PRj/c6gM9pDMKeqK0ZF/sDnNMb2iEGIH67ic0vOQ3ak6Ml36gQnvw7ghzwMB9e2Gr+qw CPpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694455589; x=1695060389; h=to:subject:message-id:date:mime-version:references:in-reply-to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=z6nGl5clCjMHrQ3So9Psxlv7NjQ8eMoegx7HH+L6Z+E=; b=OqJWWHou1m/mrq7iBx44NNkj3zEqy6m/YC1Yi908Ahsse9IrLI4T8FAfeB6MzQZnGR 1C4hhtszid1AMY8yCMJHSHYTY5DdLp/8mDdlRouPHvi47W1+9T6uRvAyZ3NqGrdaNL4D KMFcsiYaGYstCiVgOCnHpDXfsoq4dCVcLJr2aBX05Tum6H1ItjR2tgrA7JLUg7WPV3t0 R0EvEuEEirOYxWZuWwoEsBPUa3m7b9l+h5aZ9clvitZZzHBfkmiYGb8MWU/Ug2KignCq 0Fd4/8pF2ehuhHr6YS1fG+EA9W+7d/bZAfUpUaX2RCwdLTPzmoj9trGuSCLex2MOFle+ r4Yg== X-Gm-Message-State: AOJu0YwodlRblIQBEyj8N1gzTvMguSB6n7eovZkUSifA031n0sqeDl25 3LMgx6zVFAV0EIPgLw0qoh5ne4V+rj3xdW0XqMU= X-Google-Smtp-Source: AGHT+IEiXyCOVJaZm5LiMvMletgmAsS2P7d1C3yPyROVsWDpWXEs/j3dhAK3nXU2O8xZ93GkdLk/a482MzvMU1bJFBk= X-Received: by 2002:a2e:86c2:0:b0:2b6:eceb:9b8 with SMTP id n2-20020a2e86c2000000b002b6eceb09b8mr128057ljj.10.1694455588816; Mon, 11 Sep 2023 11:06:28 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 11 Sep 2023 11:06:28 -0700 From: Stefan Kangas <stefankangas@HIDDEN> In-Reply-To: <188c9822598.13072238736789.4931166686046079619@HIDDEN> References: <188c9822598.13072238736789.4931166686046079619@HIDDEN> MIME-Version: 1.0 Date: Mon, 11 Sep 2023 11:06:28 -0700 Message-ID: <CADwFkmnAVQ-weZmjtWdesbPrTKuJoKQLkb1ipE6AUTFB8e8ReQ@HIDDEN> Subject: Re: bug#64131: make resolving symlinks in compilation-find-file optional To: Qiang Fang <qiang.fang@HIDDEN>, 64131 <at> debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 64131 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) tags 64131 + moreinfo thanks Qiang Fang via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN> writes: > I use rg for searching in a git-annex repo, rg use compilation-find-file to jump to the file from the search result, symlinks are resolved with file-truename. But it should not resolve the symlink in the above case. See this issue for more details. > > https://github.com/dajva/rg.el/issues/156#issuecomment-1595654224 Could you please give a complete recipe to reproduce this, what the result is and what you expect? Or is this a feature request? It's preferable if your recipe doesn't include rg.el, because otherwise it'll be hard for us to test it.
bug-gnu-emacs@HIDDEN
:bug#64131
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 17 Jun 2023 14:27:46 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 17 10:27:46 2023 Received: from localhost ([127.0.0.1]:52242 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qAWu0-0007LG-9s for submit <at> debbugs.gnu.org; Sat, 17 Jun 2023 10:27:46 -0400 Received: from lists.gnu.org ([209.51.188.17]:48470) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <qiang.fang@HIDDEN>) id 1qAVpc-0002g4-Fr for submit <at> debbugs.gnu.org; Sat, 17 Jun 2023 09:19:10 -0400 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 <qiang.fang@HIDDEN>) id 1qAVpc-0005bT-9q for bug-gnu-emacs@HIDDEN; Sat, 17 Jun 2023 09:19:08 -0400 Received: from sender2-pp-o92.zoho.com.cn ([163.53.93.251]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <qiang.fang@HIDDEN>) id 1qAVpZ-0001x9-65 for bug-gnu-emacs@HIDDEN; Sat, 17 Jun 2023 09:19:08 -0400 Received: from mail.baihui.com by mx.zoho.com.cn with SMTP id 1687007929770257.411134155224; Sat, 17 Jun 2023 21:18:49 +0800 (CST) Received: from [119.7.117.38] by mail.zoho.com.cn with HTTP;Sat, 17 Jun 2023 21:18:49 +0800 (CST) Date: Sat, 17 Jun 2023 21:18:49 +0800 From: Qiang Fang <qiang.fang@HIDDEN> To: "bug-gnu-emacs" <bug-gnu-emacs@HIDDEN> Message-ID: <188c9822598.13072238736789.4931166686046079619@HIDDEN> In-Reply-To: Subject: make resolving symlinks in compilation-find-file optional MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Importance: Medium User-Agent: ZohoCN Mail X-Mailer: ZohoCN Mail Received-SPF: pass client-ip=163.53.93.251; envelope-from=qiang.fang@HIDDEN; helo=sender2-pp-o92.zoho.com.cn X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 17 Jun 2023 10:27:42 -0400 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.4 (--) I use rg for searching in a git-annex repo, rg use compilation-find-file to jump to the file from the search result, symlinks are resolved with file-truename. But it should not resolve the symlink in the above case. See this issue for more details. https://github.com/dajva/rg.el/issues/156#issuecomment-1595654224
Qiang Fang <qiang.fang@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#64131
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.