From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.bugs Subject: bug#41890: 28.0.50; [PATCH]: Add bindings for project.el Date: Tue, 16 Jun 2020 19:14:37 +0100 Message-ID: <87r1ueri7m.fsf@tcd.ie> References: <87blljbarq.fsf@thornhill.no> <83pn9z13xq.fsf@gnu.org> <87lfknklj8.fsf@thornhill.no> <83h7vb0w3u.fsf@gnu.org> <87ftaulxzr.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="17524"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 41890@debbugs.gnu.org, Dmitry Gutov To: Theodor Thornhill Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 16 20:15:12 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 1jlG75-0004Qo-1C for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Jun 2020 20:15:11 +0200 Original-Received: from localhost ([::1]:39402 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jlG73-00082U-VG for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Jun 2020 14:15:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34488) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jlG6x-00082K-9m for bug-gnu-emacs@gnu.org; Tue, 16 Jun 2020 14:15:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38032) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jlG6x-0002pB-0s for bug-gnu-emacs@gnu.org; Tue, 16 Jun 2020 14:15:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jlG6w-0007re-TQ for bug-gnu-emacs@gnu.org; Tue, 16 Jun 2020 14:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Jun 2020 18:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41890 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 41890-submit@debbugs.gnu.org id=B41890.159233128630179 (code B ref 41890); Tue, 16 Jun 2020 18:15:02 +0000 Original-Received: (at 41890) by debbugs.gnu.org; 16 Jun 2020 18:14:46 +0000 Original-Received: from localhost ([127.0.0.1]:49576 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jlG6g-0007qh-IW for submit@debbugs.gnu.org; Tue, 16 Jun 2020 14:14:46 -0400 Original-Received: from mail-wm1-f53.google.com ([209.85.128.53]:53241) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jlG6e-0007qP-Q7 for 41890@debbugs.gnu.org; Tue, 16 Jun 2020 14:14:45 -0400 Original-Received: by mail-wm1-f53.google.com with SMTP id r9so3760336wmh.2 for <41890@debbugs.gnu.org>; Tue, 16 Jun 2020 11:14:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=hb9jdpW8hT2JIgh3aZFqXWRnrE1rS2Nxqg2mZ0doS/4=; b=kyXi7ExLBbu/Dft7IECXts9daXKMWAazZYEYcaNQQ2e+XStfWgvb2GtxfGn9rmAJTi h4nO6newzq0XGihllBCl2X6uhgj/VNj8+Cf3drLu7OMVvi+Opvxr4WoRBD6gCzC+m9iW MvWW8YCj8PNaH5c+2KkT+5FGrurRzLv1UPB68qTlxIitlfCYPFuqu5jlu0CQOqQumE+w hzvBGbF5bCWzIEKQbhBbFNP86PQgUPWx4wP4E98r4rl7M9ybB9AXR4ZsDk+Yej2JXPjt CKxIl5sDVzTbDERo+TkdMMZ++5TFvIqL123XBAvNxfGqMexeht1A/3pOTZgnSBLeB2ci UeQA== 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=hb9jdpW8hT2JIgh3aZFqXWRnrE1rS2Nxqg2mZ0doS/4=; b=TOgKnjRV7piw0rlJQInocqQmauugmIdUsWY1aFwnm8Rq507jxcdcjBy/gd/85s2Y1l du4TQT0iAgD+R5GrWhaYccDDpwbpkhwoROI80h1DlISoDpvdkKybNof6NM+RK9DtW0+L /ABr2QA7A6YdFpgv6R1GC7LWbm7TJXmmbtWxcWQ6EkFhPoRFZ1Z/y92YFQ3sOFtKAfgQ 3f+wEi9SCAKsjoTImkXygBKfGt3HBAfv6yCeL3RSCF7IN933fzcTAFD/zXEONmR9yytf gTagIMdD5hfqD7SsCUUvpzmnYj74rwnryGivqqHzZ7creMd47XlOxzvpLhlc6w/IMD2K Tojg== X-Gm-Message-State: AOAM530EbMJuqXbCmQZvCXHi28sktNpmgzIaApDsiBS6nmW0i75mLxne dgGadv33e3SzKb9ptAPmtZKQdA== X-Google-Smtp-Source: ABdhPJxGMtSAbaeSuyJh9cyzA/wygpeQhwLBDXiwTclBgtAUjzMceEPEW0uuXNncRJQi3JS48Gn2Qw== X-Received: by 2002:a1c:a1c5:: with SMTP id k188mr4696601wme.41.1592331278940; Tue, 16 Jun 2020 11:14:38 -0700 (PDT) Original-Received: from localhost ([2a02:8084:20e2:c380:92bd:1bfd:38fc:fae2]) by smtp.gmail.com with ESMTPSA id v6sm32101028wrf.61.2020.06.16.11.14.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jun 2020 11:14:38 -0700 (PDT) In-Reply-To: <87ftaulxzr.fsf@thornhill.no> (Theodor Thornhill's message of "Tue, 16 Jun 2020 17:30:25 +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:182036 Archived-At: Theodor Thornhill writes: > +(defvar project-prefix-map (make-sparse-keymap) > + "Keymap for project commands.") > + > +(define-key ctl-x-map "p" project-prefix-map) > +(define-key project-prefix-map "f" 'project-find-file) > +(define-key project-prefix-map "b" 'project-switch-to-buffer) > +(define-key project-prefix-map "s" 'project-shell) > +(define-key project-prefix-map "d" 'project-dired) > +(define-key project-prefix-map "v" 'project-vc-dir) > +(define-key project-prefix-map "c" 'project-compile) > +(define-key project-prefix-map "e" 'project-eshell) > +(define-key project-prefix-map "p" 'project-switch-project) > +(define-key project-prefix-map "g" 'project-find-regexp) > +(define-key project-prefix-map "r" 'project-query-replace-regexp) This should be: (defvar project-prefix-map (let ((map (make-sparse-keymap))) (define-key map ...) ... map) "...") (define-key ctl-x-map "p" project-prefix-map) See the end of (info "(elisp) Tips for Defining"). Maybe it should also be autoloaded. Thanks, -- Basil