From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Andrii Kolomoiets Newsgroups: gmane.emacs.bugs Subject: bug#41879: 28.0.50; [Patch]: Add project-switch-to-buffer in project.el Date: Fri, 19 Jun 2020 07:50:30 +0300 Message-ID: References: <87bllk2pfc.fsf@thornhill.no> <87wo44mzrb.fsf@thornhill.no> <87r1ucmcok.fsf@thornhill.no> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="120645"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) Cc: 41879@debbugs.gnu.org To: Theodor Thornhill Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 19 06:51:10 2020 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 1jm8zd-000VI3-T3 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 19 Jun 2020 06:51:09 +0200 Original-Received: from localhost ([::1]:54782 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jm8zc-0006WG-TJ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 19 Jun 2020 00:51:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38226) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jm8zW-0006W9-9i for bug-gnu-emacs@gnu.org; Fri, 19 Jun 2020 00:51:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43254) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jm8zW-0003CB-0r for bug-gnu-emacs@gnu.org; Fri, 19 Jun 2020 00:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jm8zV-00061x-VJ for bug-gnu-emacs@gnu.org; Fri, 19 Jun 2020 00:51:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrii Kolomoiets Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Jun 2020 04:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41879 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 41879-submit@debbugs.gnu.org id=B41879.159254224223159 (code B ref 41879); Fri, 19 Jun 2020 04:51:01 +0000 Original-Received: (at 41879) by debbugs.gnu.org; 19 Jun 2020 04:50:42 +0000 Original-Received: from localhost ([127.0.0.1]:54800 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jm8zB-00061T-VE for submit@debbugs.gnu.org; Fri, 19 Jun 2020 00:50:42 -0400 Original-Received: from mail-lj1-f176.google.com ([209.85.208.176]:43593) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jm8z9-00061F-TJ for 41879@debbugs.gnu.org; Fri, 19 Jun 2020 00:50:41 -0400 Original-Received: by mail-lj1-f176.google.com with SMTP id n24so9918070lji.10 for <41879@debbugs.gnu.org>; Thu, 18 Jun 2020 21:50:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=sOyqS/6QFYBgf8ToM3ePxKWsEndPoALvsJs3lIpFeJU=; b=qkNDaVEsQAgAqTs0PLtc1CpeIZaxlhqow8fmJsYTlYKmXrupz5paybbpEdWcKXle8D 9QqRTb6IcYzX2G6GuL7yGtSvk2bTsP9QcKixKx9PhoyKUaIUdblq6i3HWEiC5CM6AhMz K5WoOqYIue6H3qPM4uIXKEDZknOIMXlUUXvXcr5eN642357NjA9Ko3XulxN+qkb7qP+K O71AEYnH5c+jlvFZBc+bPWKmJE7Qr9ZLHe7bC2zsWXx8oQqB62R4qJZkzDVf4d0AbFmK ZykPRw4gtORGARdKVv7PbnwNHDubHd/4kSVpv2E6p9xFKlDvRkgqn8eArzvFIMF4nrA4 SW3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=sOyqS/6QFYBgf8ToM3ePxKWsEndPoALvsJs3lIpFeJU=; b=gy0Fx6y7oowOFFbxEkSkwqv35kha+sTjK1SkBwQb01gxTZGSY44yAhagtxS8r3aZ8M PNrgoqyuqH9WDdV3mTDCmSN3V+P4SXl7YcnfBcm4MC6yPd3OrGEIpuGTA9p025v/6Wzt 3a2CUjRXTP2uuYDgAiFV9pUHCOPGVFFt8YEokXNBwLkl8MwqrVpX3OEWN/45zAkOH3PY h8b7jkGusHx9KXDAcTgc9AY92X5hSx37p3tlzgEtoBYOKdAWNWN8O+eQ73MF9NGhO7un 4oE2PhnfUnCu3cDkMG8vQaAzEDNYe1MLaZauAmONMxBeXzPNPjDPwxY9M2rDD81rA/t3 xniw== X-Gm-Message-State: AOAM530ug1n97DuIcG9ndEs5LMUYUSyw5RGM4UE7U4i2QM4CCa/VDoNC E2v61bF8BMH4/4pWEE8+2GDSGiKk X-Google-Smtp-Source: ABdhPJxFETSd2vEmRIAv4L8Fabfx5aUUcpNS0pIX2DVvoqGT3fUGsy2o5KJd9eLh5d0S+l/BEY8gKg== X-Received: by 2002:a2e:541e:: with SMTP id i30mr797512ljb.156.1592542233360; Thu, 18 Jun 2020 21:50:33 -0700 (PDT) Original-Received: from muffinmac.local ([91.206.110.148]) by smtp.gmail.com with ESMTPSA id 24sm1170832lfy.59.2020.06.18.21.50.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jun 2020 21:50:32 -0700 (PDT) In-Reply-To: <87r1ucmcok.fsf@thornhill.no> (Theodor Thornhill's message of "Thu, 18 Jun 2020 18:49:52 +0000") 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:182165 Archived-At: Theodor Thornhill writes: > you beat me to it. Sorry for not getting to it faster - life happened > :) No problem at all. > I was struggling a little with the default buffer part, which you > solved by kinda not solving it. I was trying to determine in some way > what buffer would be reasonable to offer as default value if that > predicate fails. Maybe it is best to just return nil there as you do. Or we can pass the predicate function to the `other-buffer` function so it will return only buffer from the current project too! We just need to make `other-buffer` accept predicate first :) > Thank you for bringing this up - and fixing it! And thank you for the original command! One local function less ;)