From unknown Sun Jun 15 08:24:01 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#62974 <62974@debbugs.gnu.org> To: bug#62974 <62974@debbugs.gnu.org> Subject: Status: 29.0.60; New buffers created with project-switch-to-buffer aren't in the project Reply-To: bug#62974 <62974@debbugs.gnu.org> Date: Sun, 15 Jun 2025 15:24:01 +0000 retitle 62974 29.0.60; New buffers created with project-switch-to-buffer ar= en't in the project reassign 62974 emacs submitter 62974 Spencer Baugh severity 62974 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 20 14:37:49 2023 Received: (at submit) by debbugs.gnu.org; 20 Apr 2023 18:37:49 +0000 Received: from localhost ([127.0.0.1]:38669 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ppZAC-0008G1-7E for submit@debbugs.gnu.org; Thu, 20 Apr 2023 14:37:49 -0400 Received: from lists.gnu.org ([209.51.188.17]:49396) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ppZA7-0008Fr-ID for submit@debbugs.gnu.org; Thu, 20 Apr 2023 14:37:46 -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 ) id 1ppZA7-0007qr-4w for bug-gnu-emacs@gnu.org; Thu, 20 Apr 2023 14:37:43 -0400 Received: from mxout5.mail.janestreet.com ([64.215.233.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ppZ9s-00071z-Ot for bug-gnu-emacs@gnu.org; Thu, 20 Apr 2023 14:37:41 -0400 From: Spencer Baugh To: bug-gnu-emacs@gnu.org Subject: 29.0.60; New buffers created with project-switch-to-buffer aren't in the project Date: Thu, 20 Apr 2023 14:37:26 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=64.215.233.18; envelope-from=sbaugh@janestreet.com; helo=mxout5.mail.janestreet.com 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_PASS=-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-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.4 (--) 1. emacs -Q (in a directory not in a project) 2. Note current default-directory: some/dir 3. C-x p b (so that it will prompt for a project) 4. Select some project and RET 5. Enter a nonexisting buffer name and RET 6. The new buffer's default-directory is some/dir Expected behavior: 6. The new buffer's default-directory is the project root of the project you picked. Ideally we'd fix this by just wrapping switch-to-buffer in (let ((default-directory (project-root pr))) ...) But that's non-trivial because pr is computed by prompting the user, and that prompt takes place in project--read-project-buffer, which is in the interactive spec of project-switch-to-buffer. In GNU Emacs 29.0.60 (build 3, x86_64-pc-linux-gnu, X toolkit, cairo version 1.15.12, Xaw scroll bars) of 2023-03-13 built on igm-qws-u22796a Repository revision: e759905d2e0828eac4c8164b09113b40f6899656 Repository branch: emacs-29 Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: CentOS Linux 7 (Core) Configured using: 'configure --with-x-toolkit=lucid --with-modules --with-gif=ifavailable' Configured features: CAIRO DBUS FREETYPE GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LIBSELINUX LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XINPUT2 XPM LUCID ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Dired by name Minor modes in effect: jane-fe-minor-mode: t editorconfig-mode: t dired-omit-mode: t which-function-mode: t global-git-commit-mode: t magit-auto-revert-mode: t shell-dirtrack-mode: t windmove-mode: t savehist-mode: t save-place-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tab-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t context-menu-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/jane/vc-fe hides /home/sbaugh/.local/src/emacs29/lisp/vc/vc-fe /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/csharp-mode hides /home/sbaugh/.local/src/emacs29/lisp/progmodes/csharp-mode /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/eldoc hides /home/sbaugh/.local/src/emacs29/lisp/emacs-lisp/eldoc /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/auctex/lpath hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/dictionary/lpath /home/sbaugh/.local/src/emacs29/lisp/net/dictionary hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/dictionary/dictionary /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/caml-font hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/ocaml/caml-font /home/sbaugh/.local/src/emacs29/lisp/org/org-version hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/org-version /home/sbaugh/.local/src/emacs29/lisp/org/org-loaddefs hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/org-loaddefs /home/sbaugh/.local/src/emacs29/lisp/org/org-keys hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/org-keys /home/sbaugh/.local/src/emacs29/lisp/org/ol hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ol /home/sbaugh/.local/src/emacs29/lisp/org/ob-perl hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-perl /home/sbaugh/.local/src/emacs29/lisp/org/ob-core hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-core /home/sbaugh/.local/src/emacs29/lisp/org/ox hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ox /home/sbaugh/.local/src/emacs29/lisp/org/ol-rmail hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ol-rmail /home/sbaugh/.local/src/emacs29/lisp/org/ob-octave hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-octave /home/sbaugh/.local/src/emacs29/lisp/org/ob-comint hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-comint /home/sbaugh/.local/src/emacs29/lisp/org/ol-w3m hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ol-w3m /home/sbaugh/.local/src/emacs29/lisp/org/ob-org hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-org /home/sbaugh/.local/src/emacs29/lisp/org/ox-texinfo hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ox-texinfo /home/sbaugh/.local/src/emacs29/lisp/org/org-inlinetask hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/org-inlinetask /home/sbaugh/.local/src/emacs29/lisp/org/ol-mhe hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ol-mhe /home/sbaugh/.local/src/emacs29/lisp/org/ob-ocaml hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-ocaml /home/sbaugh/.local/src/emacs29/lisp/org/ob-clojure hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-clojure /home/sbaugh/.local/src/emacs29/lisp/org/ox-publish hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ox-publish /home/sbaugh/.local/src/emacs29/lisp/org/ol-irc hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ol-irc /home/sbaugh/.local/src/emacs29/lisp/org/ob-calc hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-calc /home/sbaugh/.local/src/emacs29/lisp/org/ox-odt hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ox-odt /home/sbaugh/.local/src/emacs29/lisp/org/org-id hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/org-id /home/sbaugh/.local/src/emacs29/lisp/org/ol-gnus hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ol-gnus /home/sbaugh/.local/src/emacs29/lisp/org/ob-matlab hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-matlab /home/sbaugh/.local/src/emacs29/lisp/org/ox-icalendar hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ox-icalendar /home/sbaugh/.local/src/emacs29/lisp/org/org-footnote hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/org-footnote /home/sbaugh/.local/src/emacs29/lisp/org/ol-bibtex hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ol-bibtex /home/sbaugh/.local/src/emacs29/lisp/org/ob-lisp hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-lisp /home/sbaugh/.local/src/emacs29/lisp/org/ob-C hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-C /home/sbaugh/.local/src/emacs29/lisp/org/ox-org hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ox-org /home/sbaugh/.local/src/emacs29/lisp/org/org-indent hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/org-indent /home/sbaugh/.local/src/emacs29/lisp/org/ol-info hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ol-info /home/sbaugh/.local/src/emacs29/lisp/org/ob-maxima hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-maxima /home/sbaugh/.local/src/emacs29/lisp/org/ob-awk hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-awk /home/sbaugh/.local/src/emacs29/lisp/org/ox-man hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ox-man /home/sbaugh/.local/src/emacs29/lisp/org/org-goto hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/org-goto /home/sbaugh/.local/src/emacs29/lisp/org/ox-md hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ox-md /home/sbaugh/.local/src/emacs29/lisp/org/ol-eshell hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ol-eshell /home/sbaugh/.local/src/emacs29/lisp/org/ob-lua hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-lua /home/sbaugh/.local/src/emacs29/lisp/org/org-habit hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/org-habit /home/sbaugh/.local/src/emacs29/lisp/org/ob-R hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-R /home/sbaugh/.local/src/emacs29/lisp/org/ol-eww hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ol-eww /home/sbaugh/.local/src/emacs29/lisp/org/ob-makefile hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-makefile /home/sbaugh/.local/src/emacs29/lisp/org/ox-latex hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ox-latex /home/sbaugh/.local/src/emacs29/lisp/org/ol-docview hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ol-docview /home/sbaugh/.local/src/emacs29/lisp/org/ob-lob hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-lob /home/sbaugh/.local/src/emacs29/lisp/org/ox-beamer hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ox-beamer /home/sbaugh/.local/src/emacs29/lisp/org/org-faces hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/org-faces /home/sbaugh/.local/src/emacs29/lisp/org/ob hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob /home/sbaugh/.local/src/emacs29/lisp/org/ox-html hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ox-html /home/sbaugh/.local/src/emacs29/lisp/org/org-feed hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/org-feed /home/sbaugh/.local/src/emacs29/lisp/org/ol-bbdb hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ol-bbdb /home/sbaugh/.local/src/emacs29/lisp/org/ob-lilypond hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-lilypond /home/sbaugh/.local/src/emacs29/lisp/org/ox-ascii hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ox-ascii /home/sbaugh/.local/src/emacs29/lisp/org/ob-latex hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-latex /home/sbaugh/.local/src/emacs29/lisp/org/org hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/org /home/sbaugh/.local/src/emacs29/lisp/org/ob-tangle hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-tangle /home/sbaugh/.local/src/emacs29/lisp/org/org-tempo hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/org-tempo /home/sbaugh/.local/src/emacs29/lisp/org/org-duration hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/org-duration /home/sbaugh/.local/src/emacs29/lisp/org/ob-sqlite hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-sqlite /home/sbaugh/.local/src/emacs29/lisp/org/org-entities hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/org-entities /home/sbaugh/.local/src/emacs29/lisp/org/ob-table hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-table /home/sbaugh/.local/src/emacs29/lisp/org/ob-js hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-js /home/sbaugh/.local/src/emacs29/lisp/org/org-table hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/org-table /home/sbaugh/.local/src/emacs29/lisp/org/ob-sql hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-sql /home/sbaugh/.local/src/emacs29/lisp/org/org-timer hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/org-timer /home/sbaugh/.local/src/emacs29/lisp/org/org-element hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/org-element /home/sbaugh/.local/src/emacs29/lisp/org/ob-java hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-java /home/sbaugh/.local/src/emacs29/lisp/org/org-ctags hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/org-ctags /home/sbaugh/.local/src/emacs29/lisp/org/ob-shell hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-shell /home/sbaugh/.local/src/emacs29/lisp/org/ob-groovy hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-groovy /home/sbaugh/.local/src/emacs29/lisp/org/org-src hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/org-src /home/sbaugh/.local/src/emacs29/lisp/org/org-datetree hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/org-datetree /home/sbaugh/.local/src/emacs29/lisp/org/ob-haskell hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-haskell /home/sbaugh/.local/src/emacs29/lisp/org/org-plot hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/org-plot /home/sbaugh/.local/src/emacs29/lisp/org/org-compat hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/org-compat /home/sbaugh/.local/src/emacs29/lisp/org/ob-screen hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-screen /home/sbaugh/.local/src/emacs29/lisp/org/ob-fortran hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-fortran /home/sbaugh/.local/src/emacs29/lisp/org/org-protocol hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/org-protocol /home/sbaugh/.local/src/emacs29/lisp/org/org-crypt hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/org-crypt /home/sbaugh/.local/src/emacs29/lisp/org/ob-sed hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-sed /home/sbaugh/.local/src/emacs29/lisp/org/ob-gnuplot hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-gnuplot /home/sbaugh/.local/src/emacs29/lisp/org/org-pcomplete hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/org-pcomplete /home/sbaugh/.local/src/emacs29/lisp/org/org-colview hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/org-colview /home/sbaugh/.local/src/emacs29/lisp/org/ob-scheme hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-scheme /home/sbaugh/.local/src/emacs29/lisp/org/ob-forth hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-forth /home/sbaugh/.local/src/emacs29/lisp/org/org-num hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/org-num /home/sbaugh/.local/src/emacs29/lisp/org/org-clock hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/org-clock /home/sbaugh/.local/src/emacs29/lisp/org/ob-exp hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-exp /home/sbaugh/.local/src/emacs29/lisp/org/org-mouse hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/org-mouse /home/sbaugh/.local/src/emacs29/lisp/org/org-capture hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/org-capture /home/sbaugh/.local/src/emacs29/lisp/org/ob-sass hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-sass /home/sbaugh/.local/src/emacs29/lisp/org/ob-eval hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-eval /home/sbaugh/.local/src/emacs29/lisp/org/ob-ref hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-ref /home/sbaugh/.local/src/emacs29/lisp/org/ob-emacs-lisp hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-emacs-lisp /home/sbaugh/.local/src/emacs29/lisp/org/org-mobile hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/org-mobile /home/sbaugh/.local/src/emacs29/lisp/org/ob-ruby hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-ruby /home/sbaugh/.local/src/emacs29/lisp/org/ob-eshell hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-eshell /home/sbaugh/.local/src/emacs29/lisp/org/org-lint hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/org-lint /home/sbaugh/.local/src/emacs29/lisp/org/org-agenda hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/org-agenda /home/sbaugh/.local/src/emacs29/lisp/org/org-macro hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/org-macro /home/sbaugh/.local/src/emacs29/lisp/org/org-attach-git hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/org-attach-git /home/sbaugh/.local/src/emacs29/lisp/org/ob-processing hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-processing /home/sbaugh/.local/src/emacs29/lisp/org/ob-css hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-css /home/sbaugh/.local/src/emacs29/lisp/org/ob-dot hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-dot /home/sbaugh/.local/src/emacs29/lisp/org/org-list hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/org-list /home/sbaugh/.local/src/emacs29/lisp/org/org-macs hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/org-macs /home/sbaugh/.local/src/emacs29/lisp/org/org-attach hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/org-attach /home/sbaugh/.local/src/emacs29/lisp/org/org-archive hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/org-archive /home/sbaugh/.local/src/emacs29/lisp/org/ob-python hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-python /home/sbaugh/.local/src/emacs29/lisp/org/ob-plantuml hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-plantuml /home/sbaugh/.local/src/emacs29/lisp/org/ob-ditaa hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/lisp/ob-ditaa /home/sbaugh/.local/src/emacs29/lisp/org/ob-julia hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/contrib/lisp/ob-julia /home/sbaugh/.local/src/emacs29/lisp/org/ol-man hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/contrib/lisp/ol-man /home/sbaugh/.local/src/emacs29/lisp/org/ox-koma-letter hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/org/contrib/lisp/ox-koma-letter /home/sbaugh/.emacs.d/elpa/dash-2.19.1/dash hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/dash/dash /home/sbaugh/.emacs.d/elpa/dash-2.19.1/dash-functional hides /usr/local/home/sbaugh/workspaces/fe-47828/+share+/app/emacs/elisp/contrib/dash/dash-functional Features: (shadow dired-aux emacsbug gnus-cus gnus-demon gnus-diary nndiary gnus-draft nndraft nnmh gnus-fun gnus-html gnus-kill gnus-logic gnus-mh mh-comp mh-scan mh-gnus mh-e mh-buffers mh-loaddefs gnus-registry registry eieio-base rmailsum rmail gnus-salt gnus-topic gnus-uu yenc gnus-vm erc-pcomplete erc-goodies erc erc-backend erc-networks erc-common erc-compat erc-loaddefs pulse dabbrev mule-util info-look completion ediff-ptch ediff ediff-vers ediff-merg ediff-mult ediff-wind ediff-diff ediff-help ediff-init ediff-util cal-iso org-datetree org-capture tabify cus-edit cus-start cus-load cl-print magit-imenu git-rebase face-remap vc-annotate vc-filewise misc bug-reference smiley gnus-cite mail-extr textsec uni-scripts idna-mapping ucs-normalize uni-confusable textsec-check gnus-async gnus-bcklg gnus-agent gnus-srvr gnus-score score-mode nnvirtual nntp gnus-ml gnus-msg disp-table nndoc gnus-cache gnus-dup mm-archive url-http-ntlm ntlm hmac-md5 hex-util md4 network-stream url-cache debbugs-gnu debbugs-compat debbugs soap-client url-http url-gw nsm rng-xsd rng-dt rng-util xsd-regexp man hl-line display-line-numbers vc-git vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs log-view misearch multi-isearch org-element org-persist org-id org-refile avl-tree generator oc-basic ol-eww eww xdg url-queue mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect gnus-art mm-uu mml2015 mm-view mml-smime smime gnutls dig gnus-sum shr pixel-fill kinsoku url-file svg dom gnus-group gnus-undo gnus-start gnus-dbus dbus xml gnus-cloud nnimap nnmail mail-source utf7 nnoo gnus-spec gnus-int gnus-range gnus-win gnus nnheader range wid-edit ol-docview doc-view jka-compr image-mode exif ol-bibtex bibtex ol-bbdb ol-w3m ol-doi org-link-doi shortdoc help-fns radix-tree sort vc-fe grep find-dired sh-script treesit executable goto-addr vc-hg vc-dir vc vc-dispatcher tramp tramp-loaddefs trampver tramp-integration tramp-compat parse-time iso8601 ls-lisp jane-project jane-merlin merlin-imenu merlin-xref xref merlin-cap merlin jane-async-merlin jane-completion jane-common jane-fe-menu ecaml_plugin linum view gopcaml magit-bookmark bookmark image+ advice image-file image-converter editorconfig editorconfig-core editorconfig-core-handle editorconfig-fnmatch whitespace jane-auto-modes vba-mode markdown-mode color jane jane-micro-features jane-diff unified-test-mode shell-file core core-buffer core-error core-util ert pp ewoc debug backtrace jane-sexp jane-ocaml jane-tuareg-theme tuareg tuareg-compat tuareg-opam skeleton flymake-proc flymake warnings smie caml-types caml-help caml-emacs find-file compile jane-cr jane-align jane-deprecated jane-smerge gnu-elpa-keyring-update jane-ocp-indent ocp-indent cl jane-util page-ext dired-x magit-extras project magit-submodule magit-obsolete magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff smerge-mode diff diff-mode git-commit log-edit message sendmail yank-media puny dired dired-loaddefs rfc822 mml mml-sec epa epg rfc6068 epg-config gnus-util text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log magit-core magit-autorevert autorevert filenotify magit-margin magit-transient magit-process with-editor shell server magit-mode transient edmacro kmacro magit-git magit-section magit-utils crm dash cl-extra help-mode windmove org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src ob-comint org-pcomplete pcomplete org-list org-footnote org-faces org-entities time-date noutline outline icons ob-emacs-lisp ob-core ob-eval org-cycle org-table ol rx org-fold org-fold-core org-keys oc org-loaddefs find-func cal-menu calendar cal-loaddefs org-version org-compat org-macs format-spec gdb-mi bindat gud comint easy-mmode files-x derived ansi-osc ansi-color ring ffap thingatpt vundo pcase cyberpunk-theme savehist saveplace vundo-autoloads magit-autoloads csv-mode-autoloads magit-section-autoloads cyberpunk-theme-autoloads url-http-ntlm-autoloads url-auth git-commit-autoloads with-editor-autoloads finder-inf info dash-autoloads vc-hgcmd-autoloads package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs password-cache json subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd 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 nadvice seq simple cl-generic indonesian philippine 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 abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo x-toolkit xinput2 x multi-tty make-network-process emacs) Memory information: ((conses 16 1061524 113123) (symbols 48 53622 0) (strings 32 219754 17365) (string-bytes 1 7415730) (vectors 16 117255) (vector-slots 8 2225755 176556) (floats 8 860 460) (intervals 56 41821 130) (buffers 976 117) (heap 1024 723493 153052)) From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 20 14:55:51 2023 Received: (at 62974) by debbugs.gnu.org; 20 Apr 2023 18:55:52 +0000 Received: from localhost ([127.0.0.1]:38706 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ppZRf-0000VH-IT for submit@debbugs.gnu.org; Thu, 20 Apr 2023 14:55:51 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42234) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ppZRd-0000UU-9N for 62974@debbugs.gnu.org; Thu, 20 Apr 2023 14:55:49 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ppZRX-0005aN-R6; Thu, 20 Apr 2023 14:55:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=mGFLEoOpOQAJlndQAVLMjFJeMIPqiuBaSjvD0DDTSUo=; b=dq/IYQ9RCGQb PqNhmBRbrsLf9njqlcGbTaSl/VpjM/fVl1JSVTT2/SN9kVQE+eebtLtDHkPxNKRrw0CZmMaxuUUlG 5Un4y1ko2wrzO6WzkcnzXw5kLqvG5rDAeCQaidzPx4z8VSVolWxNUOVd4fORFwWRpYKHyXGObKd7a WOZDGUfxJ8fKAvfcTKbzOiD74Rg0yIGyvmWLsRxrO6Dn27zhqZV6HE37dhEXmOrHOGXTyj3+/es9t M4epkIldRvOnT3BpQ83vUPXf0S0ZH3l1pe6lbB/1epVFaZ15mDilqQyGQNb+o4k02ABR43CdQSOcB GAffukwmZkzgDzEN8hW6iQ==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ppZRX-0006Ei-Ac; Thu, 20 Apr 2023 14:55:43 -0400 Date: Thu, 20 Apr 2023 21:55:57 +0300 Message-Id: <83ttxa4c3m.fsf@gnu.org> From: Eli Zaretskii To: Spencer Baugh In-Reply-To: (message from Spencer Baugh on Thu, 20 Apr 2023 14:37:26 -0400) Subject: Re: bug#62974: 29.0.60; New buffers created with project-switch-to-buffer aren't in the project References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 62974 Cc: 62974@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 (---) > From: Spencer Baugh > Date: Thu, 20 Apr 2023 14:37:26 -0400 > > > 1. emacs -Q (in a directory not in a project) > 2. Note current default-directory: some/dir > 3. C-x p b (so that it will prompt for a project) > 4. Select some project and RET > 5. Enter a nonexisting buffer name and RET > 6. The new buffer's default-directory is some/dir > > Expected behavior: > 6. The new buffer's default-directory is the project root of the project > you picked. ??Really? project.el changes the way Emacs creates new buffers? Is there a reason for such a deviation (if indeed there is a deviation)? Because otherwise my expectation would exactly what you see, because "C-x b" behaves like that. From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 20 19:55:59 2023 Received: (at 62974) by debbugs.gnu.org; 20 Apr 2023 23:55:59 +0000 Received: from localhost ([127.0.0.1]:38889 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ppe86-0000oM-TQ for submit@debbugs.gnu.org; Thu, 20 Apr 2023 19:55:59 -0400 Received: from wnew2-smtp.messagingengine.com ([64.147.123.27]:51847) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ppe85-0000o3-Hf for 62974@debbugs.gnu.org; Thu, 20 Apr 2023 19:55:57 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailnew.west.internal (Postfix) with ESMTP id A6D9D2B06821; Thu, 20 Apr 2023 19:55:51 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 20 Apr 2023 19:55:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1682034951; x=1682038551; bh=9swgyv1LUylIJOKe/rB90Y+SU42rWEbeIRx DRVDfp3c=; b=q1RpqH1yTByc7kw5Hd1z+Tef9csWO5zKu6G7y3lliNBvQsoywZu pLg5ew1mrPAr98OOShFMiWP4TNRlVmYNfAC60FXPtTxNv4Q/i5WMCFIgCpZg/01V YxH1zKXn+6MwoW+6eH4gC46UgnOqOGCTUCrQ3W5B6wjW7r9pH0hHriYEk+Uyu9IN A7Vu1SW1SKwWuKzzlNbHo/OcaESIuLt0niR2fyKrRBue7I9S3uSARGNob4BKUrK4 /XURU8UdIeLy2PbVT+AXUX5xppSNrYhp6wahn/dikTjodl7jyUEVgBqXIGnETITC 7sZB9pzNVFOUJ3/fNuHDIVfr2oK0meWc6Pg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1682034951; x=1682038551; bh=9swgyv1LUylIJOKe/rB90Y+SU42rWEbeIRx DRVDfp3c=; b=VrS33OL8Wz2AnkVsEIMIAMlTBOJI+LNJW3hLE4JD7BxnhmrwUCw ptagNew15Lsv4AQvBBiFQrxfJpzcnAmM+dCAq/f22en0dOIt4X7s4RQc1P2L5yz6 0N0hDrmm0O0ZVhrXeNCV4Ha0101pjDE3WCcfgJKOmglia+Sn8r6kLzLw4S1pZeJm 0w8j4lAr/ZetYu4platzIZXbzyyhghNSpge6ISZXC15RDOpVEdDo0epM0L6R8BMC SyGoRPQxVQXcTa1nWmdDqJbIF97womrrNjq3wbg/lDmy18DfGkinjq0HmOHr7hvn DK7G4/wb9Pwm5W9Ja6jj3MC/1rU9YouWkZQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfedtfedgvdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepiefgteevheevveffheeltdeukeeiieekueefgedugfefgefhudelgfefveel vdevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 20 Apr 2023 19:55:49 -0400 (EDT) Message-ID: <1e68f5ff-63aa-4dc4-9a92-02f3e6d4641a@gutov.dev> Date: Fri, 21 Apr 2023 02:55:47 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: bug#62974: 29.0.60; New buffers created with project-switch-to-buffer aren't in the project Content-Language: en-US To: Eli Zaretskii , Spencer Baugh References: <83ttxa4c3m.fsf@gnu.org> From: Dmitry Gutov In-Reply-To: <83ttxa4c3m.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 62974 Cc: 62974@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: -2.9 (--) On 20/04/2023 21:55, Eli Zaretskii wrote: >> From: Spencer Baugh >> Date: Thu, 20 Apr 2023 14:37:26 -0400 >> >> >> 1. emacs -Q (in a directory not in a project) >> 2. Note current default-directory: some/dir >> 3. C-x p b (so that it will prompt for a project) >> 4. Select some project and RET >> 5. Enter a nonexisting buffer name and RET >> 6. The new buffer's default-directory is some/dir >> >> Expected behavior: >> 6. The new buffer's default-directory is the project root of the project >> you picked. > ??Really? project.el changes the way Emacs creates new buffers? Is > there a reason for such a deviation (if indeed there is a deviation)? > Because otherwise my expectation would exactly what you see, because > "C-x b" behaves like that. Perhaps the idea is that the newly created buffer will be considered as belonging to the project right away? From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 21 01:43:28 2023 Received: (at 62974) by debbugs.gnu.org; 21 Apr 2023 05:43:28 +0000 Received: from localhost ([127.0.0.1]:39093 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ppjYO-0004BS-Ao for submit@debbugs.gnu.org; Fri, 21 Apr 2023 01:43:28 -0400 Received: from eggs.gnu.org ([209.51.188.92]:40388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ppjYL-0004BF-Mz for 62974@debbugs.gnu.org; Fri, 21 Apr 2023 01:43:26 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ppjYG-00053B-2a; Fri, 21 Apr 2023 01:43:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=E1XyOTtEbcOOZed+8HXXtCtojIJK27IyQsVqTDaqGOg=; b=ByqBUh4Np22W edItFlfmFbE0mwKainAvyTT5jz4HPdxKzIPcYBAJMDC09yFyErBiv0H/B7nlHdDjlXZoU797nzTk/ AdbkwhGdE8DScTspEOR7/sHdP03dBJw42or6kU1jTCW/weVPOZbBfS9+OKmPpoRnFp6UDBt266Sgk 5KMHGjiZ/X1QsGATKy/nyipPpU3TOteNmbr7+2sKY5G9652AhzOO/j1PoLMgRfX+RUQPQdnboa3xh LejVR5yPSHDDKlPFPwQzjtFeeiQ0YEgl+pfmVb3cwhtFkl03q1GQxPtHn1w123MJUkuJ8gBCCn/zk 6lGhKegvg7MuWMGOhpun/w==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ppjYE-0006IC-0r; Fri, 21 Apr 2023 01:43:19 -0400 Date: Fri, 21 Apr 2023 08:43:33 +0300 Message-Id: <83pm7x4woq.fsf@gnu.org> From: Eli Zaretskii To: Dmitry Gutov In-Reply-To: <1e68f5ff-63aa-4dc4-9a92-02f3e6d4641a@gutov.dev> (message from Dmitry Gutov on Fri, 21 Apr 2023 02:55:47 +0300) Subject: Re: bug#62974: 29.0.60; New buffers created with project-switch-to-buffer aren't in the project References: <83ttxa4c3m.fsf@gnu.org> <1e68f5ff-63aa-4dc4-9a92-02f3e6d4641a@gutov.dev> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 62974 Cc: sbaugh@janestreet.com, 62974@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 (---) > Date: Fri, 21 Apr 2023 02:55:47 +0300 > Cc: 62974@debbugs.gnu.org > From: Dmitry Gutov > > On 20/04/2023 21:55, Eli Zaretskii wrote: > >> From: Spencer Baugh > >> Date: Thu, 20 Apr 2023 14:37:26 -0400 > >> > >> > >> 1. emacs -Q (in a directory not in a project) > >> 2. Note current default-directory: some/dir > >> 3. C-x p b (so that it will prompt for a project) > >> 4. Select some project and RET > >> 5. Enter a nonexisting buffer name and RET > >> 6. The new buffer's default-directory is some/dir > >> > >> Expected behavior: > >> 6. The new buffer's default-directory is the project root of the project > >> you picked. > > ??Really? project.el changes the way Emacs creates new buffers? Is > > there a reason for such a deviation (if indeed there is a deviation)? > > Because otherwise my expectation would exactly what you see, because > > "C-x b" behaves like that. > > Perhaps the idea is that the newly created buffer will be considered as > belonging to the project right away? But if it is in a subdirectory of the root, it also belongs to the project, doesn't it? Exactly like the buffer from which this command is invoked, whose default-directory was a subdirectory of the root. No? From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 21 07:46:32 2023 Received: (at 62974) by debbugs.gnu.org; 21 Apr 2023 11:46:33 +0000 Received: from localhost ([127.0.0.1]:39500 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pppDk-0000iG-DI for submit@debbugs.gnu.org; Fri, 21 Apr 2023 07:46:32 -0400 Received: from mxout1.mail.janestreet.com ([38.105.200.78]:35965) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pppDi-0000i2-KK for 62974@debbugs.gnu.org; Fri, 21 Apr 2023 07:46:31 -0400 Received: from mail-yb1-f200.google.com ([209.85.219.200]) by mxgoog2.mail.janestreet.com with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) (Exim 4.96) id 1pppDd-001XWj-0f for 62974@debbugs.gnu.org; Fri, 21 Apr 2023 07:46:25 -0400 Received: by mail-yb1-f200.google.com with SMTP id 3f1490d57ef6-b8f39b41c7aso2606912276.1 for <62974@debbugs.gnu.org>; Fri, 21 Apr 2023 04:46:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janestreet.com; s=google; t=1682077585; x=1684669585; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=kEClD26abGnzM8NMSyAKgG7I0aVmoSALbT5nCPy/KRA=; b=oKe72//SvjZn7HcyaeTKxhTBTV4OKs/1uXWJETVm/tYPOJKRXR58Mg73MGMh/acMzP DRVBiCTFIO8ExF4vZdUIh2L7ud5FUfbFi02sC3NvcNtL0rPETt/igI70osa8S0IMY3IY tfpuOD0mFZBuGDybR2EySN4lfPDpy+TLNSHJY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682077585; x=1684669585; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=kEClD26abGnzM8NMSyAKgG7I0aVmoSALbT5nCPy/KRA=; b=INO05BCnv+3N/Z6WDi1GcDWA4UVUUVsaBpbCRPfJu6WWXeMZnEpzRcbs36IgF+NaOS gtMxFEH70qERB45XMFdV0Po2NWFSuYcXg0ITRCmJVn0tRyjFKH9cnNaaft8RkwRpLn0k IWN+0MIAYLk4nFcdBNATotVSyHTUtRfivLZlkW6n5nKwVq8vAYz4r+h6aPpoA0AKlAMZ Ontdj05QavQ+AD3SUDklhG945YSpd2chz51/nbJMlleDOekzlj/UBv2DlwtE3ZGb8KIl xQLmbw6UZYf9GQKevGxV2KUmfw9+fZS/2jOrmGhT0SGxwNA4fDyCayFcKe67qyVPMW8a q4Ng== X-Gm-Message-State: AAQBX9dQtn/ucPxlkTPC8qj557mqy4H6fPlxbay7M6Ozn0f64zTCUOQj sG5TuygcrF1RyoMHSWAvpIFISA8YrnG/1ow1494QP+cvu2fx7yeSv5gmxA9iJaUqRYmo+znYEtZ 5z6+N+BLJ82clpcI75NrcGaAlkxCJdg== X-Received: by 2002:a25:3144:0:b0:b8f:219f:a02e with SMTP id x65-20020a253144000000b00b8f219fa02emr2287439ybx.54.1682077585081; Fri, 21 Apr 2023 04:46:25 -0700 (PDT) X-Google-Smtp-Source: AKy350Y4B4MurtORUuEBayXe92lt36SwN+N+4eUmg36hS0J5NqPpihgp8dQTyoy5qOX7bPkBozKzOg9GTIj++XQ9owk= X-Received: by 2002:a25:3144:0:b0:b8f:219f:a02e with SMTP id x65-20020a253144000000b00b8f219fa02emr2287429ybx.54.1682077584855; Fri, 21 Apr 2023 04:46:24 -0700 (PDT) MIME-Version: 1.0 References: <83ttxa4c3m.fsf@gnu.org> <1e68f5ff-63aa-4dc4-9a92-02f3e6d4641a@gutov.dev> <83pm7x4woq.fsf@gnu.org> In-Reply-To: <83pm7x4woq.fsf@gnu.org> From: Spencer Baugh Date: Fri, 21 Apr 2023 07:46:14 -0400 Message-ID: Subject: Re: bug#62974: 29.0.60; New buffers created with project-switch-to-buffer aren't in the project To: Eli Zaretskii Content-Type: multipart/alternative; boundary="000000000000ee2ddb05f9d7341a" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 62974 Cc: Dmitry Gutov , 62974@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 (---) --000000000000ee2ddb05f9d7341a Content-Type: text/plain; charset="UTF-8" On Fri, Apr 21, 2023, 01:43 Eli Zaretskii wrote: > > Date: Fri, 21 Apr 2023 02:55:47 +0300 > > Cc: 62974@debbugs.gnu.org > > From: Dmitry Gutov > > > > On 20/04/2023 21:55, Eli Zaretskii wrote: > > >> From: Spencer Baugh > > >> Date: Thu, 20 Apr 2023 14:37:26 -0400 > > >> > > >> > > >> 1. emacs -Q (in a directory not in a project) > > >> 2. Note current default-directory: some/dir > > >> 3. C-x p b (so that it will prompt for a project) > > >> 4. Select some project and RET > > >> 5. Enter a nonexisting buffer name and RET > > >> 6. The new buffer's default-directory is some/dir > > >> > > >> Expected behavior: > > >> 6. The new buffer's default-directory is the project root of the > project > > >> you picked. > > > ??Really? project.el changes the way Emacs creates new buffers? Is > > > there a reason for such a deviation (if indeed there is a deviation)? > > > Because otherwise my expectation would exactly what you see, because > > > "C-x b" behaves like that. > > > > Perhaps the idea is that the newly created buffer will be considered as > > belonging to the project right away? > > But if it is in a subdirectory of the root, it also belongs to the > project, doesn't it? Exactly like the buffer from which this command > is invoked, whose default-directory was a subdirectory of the root. > No? > That's fine, I wouldn't want to change that behavior, the behavior I'd want to change is when invoking the command from a buffer which is not in a project, or by invoking it after C-x p p to switch projects. > --000000000000ee2ddb05f9d7341a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, Apr 21, 2023, 01:43 Eli Zaretskii <eliz@gnu.org> wrote:
> Date: Fri, 21 Apr 2023 02:55:47 +0300
> Cc: 62974@debbugs.gnu.org
> From: Dmitry Gutov <dmitry@gutov.dev>
>
> On 20/04/2023 21:55, Eli Zaretskii wrote:
> >> From: Spencer Baugh<sbaugh@janestreet.com>
> >> Date: Thu, 20 Apr 2023 14:37:26 -0400
> >>
> >>
> >> 1. emacs -Q (in a directory not in a project)
> >> 2. Note current default-directory: some/dir
> >> 3. C-x p b (so that it will prompt for a project)
> >> 4. Select some project and RET
> >> 5. Enter a nonexisting buffer name and RET
> >> 6. The new buffer's default-directory is some/dir
> >>
> >> Expected behavior:
> >> 6. The new buffer's default-directory is the project root= of the project
> >> you picked.
> > ??Really?=C2=A0 project.el changes the way Emacs creates new buff= ers?=C2=A0 Is
> > there a reason for such a deviation (if indeed there is a deviati= on)?
> > Because otherwise my expectation would exactly what you see, beca= use
> > "C-x b" behaves like that.
>
> Perhaps the idea is that the newly created buffer will be considered a= s
> belonging to the project right away?

But if it is in a subdirectory of the root, it also belongs to the
project, doesn't it?=C2=A0 Exactly like the buffer from which this comm= and
is invoked, whose default-directory was a subdirectory of the root.
No?

That's fine, I wouldn't want to change that behavior, the behavi= or I'd want to change is when invoking the command from a buffer which = is not in a project, or by invoking it after C-x p p to switch projects.
--000000000000ee2ddb05f9d7341a-- From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 21 07:59:59 2023 Received: (at 62974) by debbugs.gnu.org; 21 Apr 2023 11:59:59 +0000 Received: from localhost ([127.0.0.1]:39516 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pppQl-0001EB-2p for submit@debbugs.gnu.org; Fri, 21 Apr 2023 07:59:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35420) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pppQj-0001Dy-HE for 62974@debbugs.gnu.org; Fri, 21 Apr 2023 07:59:57 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pppQd-00056c-Il; Fri, 21 Apr 2023 07:59:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ijPr7tSRfKjhVcIXqk4UHRIfSxJSxse+/RZaAm3CebU=; b=cNRdNkVn4YoD g/ebu6XdxvmeW/s7N0Xq0wAB7jonCoAmxzJPcR8nn1auFpLuGol0RWqR3TLrWCqwei7r8Ruga/yBE WL+r3sJAdq4er8fEyeMIw9+AkeE54PX3666XI2nqinzebKOMXHtOQMdVMeq4ST/2P6KRvevDAEN3W R4248LaxAEAS592BgKF9StzaytKYZPbSsosMH8m37loW0BtgPlzxVeUqsqixGgydxjgRiqdYIBDIN WqRyoD/8hQLLv+3cNM6UQA++IDln1Xcjz5BIYdrmMJy+6svND8Dveux2dAS9V63Kj+HffNlEdJa2I oTBsKhpx5X3ArHu3C2tgRQ==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pppQd-00022S-0R; Fri, 21 Apr 2023 07:59:51 -0400 Date: Fri, 21 Apr 2023 15:00:07 +0300 Message-Id: <83a5z14f94.fsf@gnu.org> From: Eli Zaretskii To: Spencer Baugh In-Reply-To: (message from Spencer Baugh on Fri, 21 Apr 2023 07:46:14 -0400) Subject: Re: bug#62974: 29.0.60; New buffers created with project-switch-to-buffer aren't in the project References: <83ttxa4c3m.fsf@gnu.org> <1e68f5ff-63aa-4dc4-9a92-02f3e6d4641a@gutov.dev> <83pm7x4woq.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 62974 Cc: dmitry@gutov.dev, 62974@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 (---) > From: Spencer Baugh > Date: Fri, 21 Apr 2023 07:46:14 -0400 > Cc: Dmitry Gutov , 62974@debbugs.gnu.org > > But if it is in a subdirectory of the root, it also belongs to the > project, doesn't it? Exactly like the buffer from which this command > is invoked, whose default-directory was a subdirectory of the root. > No? > > That's fine, I wouldn't want to change that behavior, the behavior I'd want to change is when invoking > the command from a buffer which is not in a project, or by invoking it after C-x p p to switch projects. The recipe you posted didn't include "C-x p p", though. From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 21 09:18:03 2023 Received: (at 62974) by debbugs.gnu.org; 21 Apr 2023 13:18:03 +0000 Received: from localhost ([127.0.0.1]:39613 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ppqeJ-0005mB-AR for submit@debbugs.gnu.org; Fri, 21 Apr 2023 09:18:03 -0400 Received: from s.wrqvtzvf.outbound-mail.sendgrid.net ([149.72.126.143]:42286) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ppqeH-0005lg-6A for 62974@debbugs.gnu.org; Fri, 21 Apr 2023 09:18:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=catern.com; h=from:subject:in-reply-to:references:mime-version:to:cc:content-type: content-transfer-encoding:cc:content-type:from:subject:to; s=s1; bh=KJHtVS+umJT83i4h4R8fzUWvctBrfzRIISQIQbZOTU0=; b=h2Do/nJWPxa4gDCOY+B4HmFx2YhEZI6C995+gR+jtK2ZiyiTIVJIiIp8GmsPDfPuoxRu ry3ADU07+6bcGo8IT+EypNil/KYDithQO+PfUEvTtA8+jwB8HGlEXdJOgfTb+E6Psiv6xD +kxb6ffxRmJxka7NbjP7jQPGSIdZP4zsHPVRpOJMj2Y4z7awzs9UQ/QOrXpp5FXTAs1GuG pzByH5/XJWMcqvyL1I6dYhOPCIuPk2IlHqvbfxqcuXmwMnTkk98AbEINQ4WvDqNQRj4/uu /0C9jlMec6uN/KGr5ZnMtrHJ98urOSlGD6q+yOy59nQxhFltGmgo46CqAwBhNL5A== Received: by filterdrecv-canary-5ddf6b8c5d-xwqsg with SMTP id filterdrecv-canary-5ddf6b8c5d-xwqsg-1-64428D03-58 2023-04-21 13:17:55.692513342 +0000 UTC m=+5068769.694621743 Received: from earth.catern.com (unknown) by geopod-ismtpd-4 (SG) with ESMTP id YVah_P6LTyKKH3mAvUe21w Fri, 21 Apr 2023 13:17:55.482 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=::1; helo=localhost; envelope-from=sbaugh@catern.com; receiver= Received: from localhost (localhost [IPv6:::1]) by earth.catern.com (Postfix) with ESMTPSA id DC988600AA; Fri, 21 Apr 2023 09:17:54 -0400 (EDT) From: sbaugh@catern.com Subject: Re: bug#62974: 29.0.60; New buffers created with project-switch-to-buffer aren't in the project In-Reply-To: <83a5z14f94.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 21 Apr 2023 15:00:07 +0300") References: <83ttxa4c3m.fsf@gnu.org> <1e68f5ff-63aa-4dc4-9a92-02f3e6d4641a@gutov.dev> <83pm7x4woq.fsf@gnu.org> <83a5z14f94.fsf@gnu.org> Date: Fri, 21 Apr 2023 13:17:55 +0000 (UTC) Message-ID: <87v8hpl6gt.fsf@catern.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 X-SG-EID: =?us-ascii?Q?ZgbRq7gjGrt0q=2FPjvxk7wM0yQFRdOkTJAtEbkjCkHbJ7zP4xQoxYn6UlKYuOW=2F?= =?us-ascii?Q?FrMrolz2OBYrnmAKMK0DK=2F0ysoAHmGpp0FF6NOt?= =?us-ascii?Q?6ugZBpDtiFBf6ydtaV8j8cSMcc0ZDQ5=2FWKCL6lV?= =?us-ascii?Q?2bDBzZ8jxryREIo0oRmgSKrIOEIERpPs=2F+B8SBh?= =?us-ascii?Q?wJJAq19ZV0+4YE3OInZxtk+fwCWdylQmyXW7kWS?= =?us-ascii?Q?DYt9Kv4RwFts9zcXs=3D?= To: Eli Zaretskii X-Entity-ID: d/0VcHixlS0t7iB1YKCv4Q== Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.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 the administrator of that system for details. Content preview: Eli Zaretskii writes: >> From: Spencer Baugh >> Date: Fri, 21 Apr 2023 07:46:14 -0400 >> Cc: Dmitry Gutov , 62974@debbugs.gnu.org >> >> But if [...] Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.2 RCVD_IN_BL_SPAMCOP_NET RBL: Received via a relay in bl.spamcop.net [Blocked - see ] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [149.72.126.143 listed in wl.mailspike.net] 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines X-Debbugs-Envelope-To: 62974 Cc: Spencer Baugh , 62974@debbugs.gnu.org, dmitry@gutov.dev 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: 0.2 (/) Eli Zaretskii writes: >> From: Spencer Baugh >> Date: Fri, 21 Apr 2023 07:46:14 -0400 >> Cc: Dmitry Gutov , 62974@debbugs.gnu.org >> >> But if it is in a subdirectory of the root, it also belongs to the >> project, doesn't it? Exactly like the buffer from which this command >> is invoked, whose default-directory was a subdirectory of the root. >> No? >> >> That's fine, I wouldn't want to change that behavior, the behavior I'd want to change is when invoking >> the command from a buffer which is not in a project, or by invoking it after C-x p p to switch projects. > > The recipe you posted didn't include "C-x p p", though. My recipe was an example of "command from a buffer which is not in a project". Here's a recipe for the issue using C-x p p: 1. (setq project-switch-use-entire-map t) 2. Be in a buffer in project A 3. C-x p p b to switch to project B and select a buffer in project B 4. Type a buffer name which doesn't exist 5. The resulting buffer is in project A, not B From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 21 11:56:58 2023 Received: (at 62974) by debbugs.gnu.org; 21 Apr 2023 15:56:58 +0000 Received: from localhost ([127.0.0.1]:40993 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ppt85-0004h5-Ig for submit@debbugs.gnu.org; Fri, 21 Apr 2023 11:56:57 -0400 Received: from wnew3-smtp.messagingengine.com ([64.147.123.17]:55747) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ppt84-0004gt-5v for 62974@debbugs.gnu.org; Fri, 21 Apr 2023 11:56:56 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.west.internal (Postfix) with ESMTP id 1A6382B06724; Fri, 21 Apr 2023 11:56:50 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 21 Apr 2023 11:56:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1682092609; x=1682096209; bh=SNBu//eHX3qGqzqyrsPaSaYgOVtlwyGYMWA 1NJKuNUs=; b=PCJOIHzOj8y53kF28hgLWYuzQjq1KlLm07mR+qWT/WFhCeUXPaE h7T59BzDpRWirBuIbpVevuLlGBD8E6cZLLlqI0I3iND5b4CYXXB9jUysSI0TJ1he sSEMXKHUkzHKzopTtx91Q9lH4adU6JrTrojpy4zB0dYPSTvLzo0Vzk/CaFtrpzWI viJnoddr2LM8ucuJtvU2x3xQMYib2iJZje82ULOkTRmdl/lkDu6RzoqmJQyZKHOc h+Wo2bedgvapuMQEkYR71xp4W0zg4tvdGJae8QETYzbgMB+FbenOIUcxBQxc3qti AkgMFVKc3EZPA34W4NmVAaSKTvv4dGsAlag== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1682092609; x=1682096209; bh=SNBu//eHX3qGqzqyrsPaSaYgOVtlwyGYMWA 1NJKuNUs=; b=UaSzrSUAICKN9NU7fbtvFmVR6rNcLg8sPzxHVIsQCS3tukUDdk7 H1IVoFszsS8gRydBrgdhVuCrhqDACSKPSJfvYzek5Vp0GD43ib/BNnEiy4DVH2nd 7u8AnX7zOQn/RlofdtGDX9xhMRdzLV6JfjPYbD+3XTGsayPCW2RcGXob0gBOcQiP kAYIKwuB5PP3RkFE58ul1TBsBniXYPlrqgit+7lsSYmNEdjDZemQfi8qJtZXRD8H 0zSjFPg/madXbk4oXu+Ew63aWiZSKkN+Z3l0Zm/uJOXsQrZVbV2Wtpt4kKIqEbnK +sfWybDzAkrf54L7hgRgALky82PpadIk2YA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfedtgedgledvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepgeejgfelvdejtedvteeufedtvdfgtefftdeujedtteehtdfgueelleeuteff ueeunecuffhomhgrihhnpehrohhothdrnhhonecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 21 Apr 2023 11:56:47 -0400 (EDT) Message-ID: <06aff731-1196-5c27-b66d-01f79117283e@gutov.dev> Date: Fri, 21 Apr 2023 18:56:46 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: bug#62974: 29.0.60; New buffers created with project-switch-to-buffer aren't in the project Content-Language: en-US To: sbaugh@catern.com, Eli Zaretskii References: <83ttxa4c3m.fsf@gnu.org> <1e68f5ff-63aa-4dc4-9a92-02f3e6d4641a@gutov.dev> <83pm7x4woq.fsf@gnu.org> <83a5z14f94.fsf@gnu.org> <87v8hpl6gt.fsf@catern.com> From: Dmitry Gutov In-Reply-To: <87v8hpl6gt.fsf@catern.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 62974 Cc: Spencer Baugh , 62974@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: -2.9 (--) On 21/04/2023 16:17, sbaugh@catern.com wrote: > Eli Zaretskii writes: >>> From: Spencer Baugh >>> Date: Fri, 21 Apr 2023 07:46:14 -0400 >>> Cc: Dmitry Gutov,62974@debbugs.gnu.org >>> >>> But if it is in a subdirectory of the root, it also belongs to the >>> project, doesn't it? Exactly like the buffer from which this command >>> is invoked, whose default-directory was a subdirectory of the root. >>> No? >>> >>> That's fine, I wouldn't want to change that behavior, the behavior I'd want to change is when invoking >>> the command from a buffer which is not in a project, or by invoking it after C-x p p to switch projects. >> The recipe you posted didn't include "C-x p p", though. > My recipe was an example of "command from a buffer which is not in a > project". Here's a recipe for the issue using C-x p p: > > 1. (setq project-switch-use-entire-map t) > 2. Be in a buffer in project A > 3. C-x p p b to switch to project B and select a buffer in project B > 4. Type a buffer name which doesn't exist > 5. The resulting buffer is in project A, not B Thanks. How does this look? diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index a18b918db62..94c7f8f547a 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -1314,13 +1314,17 @@ project--read-project-buffer (and (memq (cdr buffer) buffers) (not (project--buffer-check - (cdr buffer) project-ignore-buffer-conditions)))))) - (read-buffer - "Switch to buffer: " - (when (funcall predicate (cons other-name other-buffer)) - other-name) - nil - predicate))) + (cdr buffer) project-ignore-buffer-conditions))))) + (buffer (read-buffer + "Switch to buffer: " + (when (funcall predicate (cons other-name other-buffer)) + other-name) + nil + predicate))) + (if (get-buffer buffer) + buffer + (let ((default-directory (project-root pr))) + (get-buffer-create buffer))))) ;;;###autoload (defun project-switch-to-buffer (buffer-or-name) From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 21 12:25:56 2023 Received: (at 62974) by debbugs.gnu.org; 21 Apr 2023 16:25:56 +0000 Received: from localhost ([127.0.0.1]:41048 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ppta8-0005Sp-Cg for submit@debbugs.gnu.org; Fri, 21 Apr 2023 12:25:56 -0400 Received: from mxout1.mail.janestreet.com ([38.105.200.78]:56979) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ppta6-0005SW-LV for 62974@debbugs.gnu.org; Fri, 21 Apr 2023 12:25:55 -0400 From: Spencer Baugh To: Dmitry Gutov Subject: Re: bug#62974: 29.0.60; New buffers created with project-switch-to-buffer aren't in the project In-Reply-To: <06aff731-1196-5c27-b66d-01f79117283e@gutov.dev> (Dmitry Gutov's message of "Fri, 21 Apr 2023 18:56:46 +0300") References: <83ttxa4c3m.fsf@gnu.org> <1e68f5ff-63aa-4dc4-9a92-02f3e6d4641a@gutov.dev> <83pm7x4woq.fsf@gnu.org> <83a5z14f94.fsf@gnu.org> <87v8hpl6gt.fsf@catern.com> <06aff731-1196-5c27-b66d-01f79117283e@gutov.dev> Date: Fri, 21 Apr 2023 12:25:49 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 62974 Cc: sbaugh@catern.com, Eli Zaretskii , 62974@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 (---) Dmitry Gutov writes: > On 21/04/2023 16:17, sbaugh@catern.com wrote: >> Eli Zaretskii writes: >>>> From: Spencer Baugh >>>> Date: Fri, 21 Apr 2023 07:46:14 -0400 >>>> Cc: Dmitry Gutov,62974@debbugs.gnu.org >>>> >>>> But if it is in a subdirectory of the root, it also belongs to the >>>> project, doesn't it? Exactly like the buffer from which this command >>>> is invoked, whose default-directory was a subdirectory of the root. >>>> No? >>>> >>>> That's fine, I wouldn't want to change that behavior, the behavior I'd want to change is when invoking >>>> the command from a buffer which is not in a project, or by invoking it after C-x p p to switch projects. >>> The recipe you posted didn't include "C-x p p", though. >> My recipe was an example of "command from a buffer which is not in a >> project". Here's a recipe for the issue using C-x p p: >> 1. (setq project-switch-use-entire-map t) >> 2. Be in a buffer in project A >> 3. C-x p p b to switch to project B and select a buffer in project B >> 4. Type a buffer name which doesn't exist >> 5. The resulting buffer is in project A, not B > > Thanks. > > How does this look? > > diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el > index a18b918db62..94c7f8f547a 100644 > --- a/lisp/progmodes/project.el > +++ b/lisp/progmodes/project.el > @@ -1314,13 +1314,17 @@ project--read-project-buffer > (and (memq (cdr buffer) buffers) > (not > (project--buffer-check > - (cdr buffer) project-ignore-buffer-conditions)))))) > - (read-buffer > - "Switch to buffer: " > - (when (funcall predicate (cons other-name other-buffer)) > - other-name) > - nil > - predicate))) > + (cdr buffer) project-ignore-buffer-conditions))))) > + (buffer (read-buffer > + "Switch to buffer: " > + (when (funcall predicate (cons other-name other-buffer)) > + other-name) > + nil > + predicate))) > + (if (get-buffer buffer) > + buffer > + (let ((default-directory (project-root pr))) > + (get-buffer-create buffer))))) > > ;;;###autoload > (defun project-switch-to-buffer (buffer-or-name) That looks good and it fixes all the bug cases I mentioned. But what about the case where the old buffer was already in the project? 1. In a buffer visiting project-a/some/dir/file.el 2. C-x p b nonexisting-buffer RET Existing behavior, and possibly desirable behavior: 3. default-directory in new buffer: project-a/some/dir/ With your change: 3. default-directory in new buffer: project-a/ From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 21 19:32:02 2023 Received: (at 62974-done) by debbugs.gnu.org; 21 Apr 2023 23:32:02 +0000 Received: from localhost ([127.0.0.1]:41371 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pq0ET-0000qZ-Uu for submit@debbugs.gnu.org; Fri, 21 Apr 2023 19:32:02 -0400 Received: from wnew1-smtp.messagingengine.com ([64.147.123.26]:43505) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pq0EQ-0000qF-Re for 62974-done@debbugs.gnu.org; Fri, 21 Apr 2023 19:31:59 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailnew.west.internal (Postfix) with ESMTP id D14B02B06875; Fri, 21 Apr 2023 19:31:52 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Fri, 21 Apr 2023 19:31:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1682119912; x=1682123512; bh=3lrwDxVVEXLLIy1xoXshAnhlH8+zuF4sWxG ulP2nvuI=; b=GSPIK8yfD9mduNNV/0XN5raXkAwzQZUeypGqtuEm7o8bYIhODPl 4FSxDr1FEuIHIYi93jaByhpGcglWRiZrS7vzEBCLl7LtrHGMqzYnYhz6S8n+gi5s N4/ow5Is2wMHiHxtOm0FWDxEmR4a0B6qyZck3Tx2bg9EEBw8J5n/r/xzJT/LFgOw uvDp+0NrbSuVafJybxK4kRJA6sbGSxuiehVmXAL0qTKQ2CK+RObddWzxAT8Iy9zs uZVPZ712hzvilnUxVrYuWVeNBAUqFLT86D/tbRp/wJPBBC4nht8T065IPMh4XiJJ Q6KuaZ7DoWi+keeIwjSXFONUMze/5qiXCzg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1682119912; x=1682123512; bh=3lrwDxVVEXLLIy1xoXshAnhlH8+zuF4sWxG ulP2nvuI=; b=UW15I807jhU1ucjGW4Cf8jNEWb9hmxC292ZdGg97pynGT5dRlBo aPPnNSY785WcFGYGaUoaQQ6hjoMkBa/pumhCbung9g81BXscgkPNcstbCzwgRrqo 4p0uxW+PW9OfDu/24qjTGF2MLRTbguA8u2dAe2s9ZmBk73+iQuHQP3zfvhOW+vGT z1+qUZoY5GfICzaae5ENwePIAvDb7ThHodPEQoy6XC1f9NKBcA+OedMyDfnPVDYZ gniZZd7mLSKBRuSDWe7MKqNxhYIcj65ETNaaaWxkL4HU7psDynfuuLJj+ryWIjUF /vnyLpJZQ0T43PfUbLA3swgumnwJQtQ9DZQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfedthedgvdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepiefgteevheevveffheeltdeukeeiieekueefgedugfefgefhudelgfefveel vdevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 21 Apr 2023 19:31:50 -0400 (EDT) Message-ID: <9588955a-eafb-e78c-cd36-3a6b4ae650de@gutov.dev> Date: Sat, 22 Apr 2023 02:31:48 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: bug#62974: 29.0.60; New buffers created with project-switch-to-buffer aren't in the project Content-Language: en-US To: Spencer Baugh References: <83ttxa4c3m.fsf@gnu.org> <1e68f5ff-63aa-4dc4-9a92-02f3e6d4641a@gutov.dev> <83pm7x4woq.fsf@gnu.org> <83a5z14f94.fsf@gnu.org> <87v8hpl6gt.fsf@catern.com> <06aff731-1196-5c27-b66d-01f79117283e@gutov.dev> From: Dmitry Gutov In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 62974-done Cc: sbaugh@catern.com, Eli Zaretskii , 62974-done@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: -2.9 (--) Version: 30.1 On 21/04/2023 19:25, Spencer Baugh wrote: > That looks good and it fixes all the bug cases I mentioned. > > But what about the case where the old buffer was already in the project? > > 1. In a buffer visiting project-a/some/dir/file.el > 2. C-x p b nonexisting-buffer RET > > Existing behavior, and possibly desirable behavior: > 3. default-directory in new buffer: project-a/some/dir/ > > With your change: > 3. default-directory in new buffer: project-a/ Yeah, okay, I added a special check for that too. Pushed to master, commit 4f3dae2b0d5. Closing, but let us know if something is still amiss. From unknown Sun Jun 15 08:24:01 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 20 May 2023 11:24:11 +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