From f97c0ae6c19b055c049d4331e91b4788b0384b67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A9ri=20Le=20Bouder?= Date: Fri, 10 May 2019 08:49:28 -0400 Subject: [PATCH] pycscope: ability to configure the binary name By default, cscope uses the "pycscope" command. This new variable allow one to specify another binary name, e.g: python3-pycscope. --- CHANGELOG.develop | 1 + layers/+tags/cscope/config.el | 10 ++++++++++ layers/+tags/cscope/packages.el | 3 ++- 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 layers/+tags/cscope/config.el diff --git a/CHANGELOG.develop b/CHANGELOG.develop index a070de695..1e0b99c0f 100644 --- a/CHANGELOG.develop +++ b/CHANGELOG.develop @@ -1313,6 +1313,7 @@ Other: - Key bindings: - Fixed key binding ~g C~ (thanks to dubnde) - New ~SPC m g =~ to find assignments to a symbol (thanks to dubnde) +- Make pycscope binary configurable (thanks to Gonéri Le Bouder) **** CSharp - Improvements: - Enabled =flycheck= by default (thanks to Saulius Menkevičius) diff --git a/layers/+tags/cscope/config.el b/layers/+tags/cscope/config.el new file mode 100644 index 000000000..813c8b1ca --- /dev/null +++ b/layers/+tags/cscope/config.el @@ -0,0 +1,10 @@ +;;; config.el --- cscope configuration File +;; +;; Copyright (c) 2019 Sylvain Benner & Contributors +;; +;; This file is not part of GNU Emacs. +;; +;;; License: GPLv3 + +(defvar pycscope-binary "pycscope" +"The name of the pycscope binary.") diff --git a/layers/+tags/cscope/packages.el b/layers/+tags/cscope/packages.el index 738bf9d59..8e6233b72 100644 --- a/layers/+tags/cscope/packages.el +++ b/layers/+tags/cscope/packages.el @@ -37,7 +37,8 @@ (cscope//safe-project-root))))) (let ((default-directory directory)) (shell-command - (format "pycscope -R -f '%s'" + (format "%s -R -f '%s'" + pycscope-binary (expand-file-name "cscope.out" directory)))))))) (defun cscope/init-helm-cscope ()