From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Nikander via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#58453: 28.2; project-query-replace-regexp fails because of directories in list Date: Tue, 11 Oct 2022 08:58:34 -0500 Message-ID: Reply-To: Robert Nikander Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.200.110.1.2\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33734"; mail-complaints-to="usenet@ciao.gmane.io" To: 58453@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 11 21:23:16 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 1oiKqS-0008co-F7 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Oct 2022 21:23:16 +0200 Original-Received: from localhost ([::1]:42954 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oiKqR-0004Jm-9Y for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Oct 2022 15:23:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59088) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiKqF-0004GT-LR for bug-gnu-emacs@gnu.org; Tue, 11 Oct 2022 15:23:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55800) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oiKqF-00053d-Dj for bug-gnu-emacs@gnu.org; Tue, 11 Oct 2022 15:23:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oiKqF-0006Le-9N for bug-gnu-emacs@gnu.org; Tue, 11 Oct 2022 15:23:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Nikander Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Oct 2022 19:23:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58453 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.166551617824336 (code B ref -1); Tue, 11 Oct 2022 19:23:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Oct 2022 19:22:58 +0000 Original-Received: from localhost ([127.0.0.1]:54867 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiKqA-0006KQ-54 for submit@debbugs.gnu.org; Tue, 11 Oct 2022 15:22:58 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:35684) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiFsF-0004QI-B7 for submit@debbugs.gnu.org; Tue, 11 Oct 2022 10:05:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38008) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiFs9-0007Q0-KB for bug-gnu-emacs@gnu.org; Tue, 11 Oct 2022 10:04:47 -0400 Original-Received: from ms11p00im-qufo17291501.me.com ([17.58.38.44]:53846) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiFs7-0005Z6-AO for bug-gnu-emacs@gnu.org; Tue, 11 Oct 2022 10:04:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1665496726; bh=gM739EiO/HpkPnT87dvvTN62VN/wfAGvPi27S8Kuoho=; h=From:Content-Type:Mime-Version:Subject:Message-Id:Date:To; b=tc8h8thmnxIpJSl9tHCHJf6TBf3KogPArzW0pBatzBYtdKPm3zjCGc63b5KFQW4Mk UzoJBjQb3IVtixPL5VHhqJZiFOgRyL7vDdXB+ZoFZFR/GiR5hkmld9V1YXcSwGvYTJ PLzLwmqTsvezjOJt1EBWAHi5aqfsBSJbH5X09ukOCE2cXAM1Dy6TqqJBlCXw5CsZCW OJL9k1DoJb64zhjVzf/T38xLuMxHRxpzOkCUFdqMIY5rhB+pM66TvDL4V7xL6hB3iW AvPZye/QuEw7/9BR1BroakMwPgmmzZut+gvOEEh/MQq7wvKHlAPP/XcySBNorhoWKc p1y4XK7uT4Gyg== Original-Received: from smtpclient.apple (ms11p00im-dlb-asmtpmailmevip.me.com [17.57.154.19]) by ms11p00im-qufo17291501.me.com (Postfix) with ESMTPSA id 24380A60806 for ; Tue, 11 Oct 2022 13:58:46 +0000 (UTC) X-Mailer: Apple Mail (2.3731.200.110.1.2) X-Proofpoint-GUID: 59ytviwIJdEZG749mEq6hytbOAkMsPAo X-Proofpoint-ORIG-GUID: 59ytviwIJdEZG749mEq6hytbOAkMsPAo X-Proofpoint-Virus-Version: vendor=fsecure engine=1.1.170-22c6f66c430a71ce266a39bfe25bc2903e8d5c8f:6.0.138, 18.0.572, 17.0.605.474.0000000 definitions=2020-02-14_11:2020-02-14_02, 2020-02-14_11, 2020-01-23_02 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 suspectscore=0 spamscore=0 clxscore=1011 adultscore=0 mlxscore=0 mlxlogscore=999 bulkscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2210110079 Received-SPF: pass client-ip=17.58.38.44; envelope-from=robert.nikander@icloud.com; helo=ms11p00im-qufo17291501.me.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 11 Oct 2022 15:22:56 -0400 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:245131 Archived-At: Hi I=E2=80=99ve been getting errors from `project-query-replace-regexp` (it = just beeps and gives an error about something being a directory). I=E2=80=99= ve tracked it down to `project--vc-list-files`, which gets a list in a = variable `files` by calling `git ls-files`. But that returns a few = directories on my system, maybe because I=E2=80=99m using git = submodules. Later the error occurs with stack trace: Debugger entered--Lisp error: (file-error "Read error" "Is a = directory=E2=80=9D =E2=80=A6.) insert-file-contents(=E2=80=9C=E2=80=A6.=E2=80=9D) fileloop-next-file(t) fileloop-continue() project-query-replace-regexp("StyleDict" "StyleMap") I=E2=80=99ve fixed the bug for my purposes by adding this line to that = `project--vc-list-files` function in `project.el`... (setq files (seq-remove 'file-directory-p files)) But maybe there=E2=80=99s a better way.=20 Rob In GNU Emacs 28.2 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 = Version 10.14.6 (Build 18G95)) of 2022-09-12 built on builder10-14.lan Windowing system distributor 'Apple', version 10.3.2290 System Description: macOS 13.0 Configured using: 'configure --with-ns '--enable-locallisppath=3D/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules' Configured features: ACL GMP GNUTLS JSON LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER THREADS TOOLKIT_SCROLL_BARS ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: ELisp/l Minor modes in effect: shell-dirtrack-mode: t ivy-mode: t org-extra-emphasis-intraword-emphasis-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort emacsbug sendmail two-column sh-script smie executable disp-table org-bullets org-indent rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid nxml-mode nxml-outln nxml-rap sgml-mode facemenu flymake-cc markdown-mode cmake-mode rst rect dabbrev etags cap-words superword subword cc-mode cc-fonts cc-guess cc-menus cc-cmds swift-mode swift-mode-imenu swift-mode-repl swift-mode-beginning-of-defun swift-mode-font-lock swift-mode-standard-types swift-mode-indent swift-mode-lexer tutorial mail-extr cus-start cl-print shortdoc pulse help-fns radix-tree misearch multi-isearch edebug fileloop vc-mtn vc-hg vc-git diff-mode vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs vc vc-dispatcher dired-aux ffap tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell ls-lisp ol-w3m org-tempo tempo ol-rmail ol-mhe ol-irc ol-info org-habit ol-gnus nnselect gnus-search eieio-opt speedbar ezimage dframe gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-sum gnus-group gnus-undo gnus-start gnus-dbus dbus gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo parse-time gnus-spec gnus-int gnus-range message rfc822 mml mml-sec epa derived epg rfc6068 epg-config mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader gnus-win ol-eww eww xdg url-queue shr kinsoku svg xml dom mm-url gnus nnheader gnus-util rmail rmail-loaddefs mail-utils ol-doi org-link-doi ol-docview doc-view jka-compr image-mode exif dired dired-loaddefs ol-bibtex ol-bbdb finder-inf eglot array filenotify jsonrpc ert ewoc debug backtrace xref flymake-proc flymake thingatpt warnings compile text-property-search project imenu cl-extra yasnippet help-mode cc-styles cc-align cc-engine cc-vars cc-defs ivy flx delsel ivy-faces ivy-overlay colir color org-extra-emphasis pcase htmlfontify htmlfontify-loaddefs cus-edit pp cus-load wid-edit ox-odt rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-latex ox-icalendar org-agenda ox-html table ox-ascii ox-publish ox edmacro kmacro org-download org-element avl-tree generator org-attach org-id org-refile org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete pcomplete comint ansi-color ring org-list org-faces org-entities noutline outline easy-mmode org-version ob-emacs-lisp ob-core ob-eval org-table oc-basic bibtex iso8601 time-date ol rx org-keys oc org-compat advice org-macs org-loaddefs format-spec find-func cal-menu calendar cal-loaddefs url-http url-auth mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm rmc puny async info package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 1048628 152211) (symbols 48 61892 11) (strings 32 263625 22350) (string-bytes 1 7168601) (vectors 16 87090) (vector-slots 8 2364739 177797) (floats 8 542 704) (intervals 56 83284 2732) (buffers 992 124))