From 17e6d19dbe4a3e646b9e35aec6c6961250502fe1 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Tue, 10 Mar 2015 03:31:47 +0200 Subject: [PATCH] Remove company-pysmell I don't know how to use it, and it doesn't seem to be popular anymore, if it ever was. --- NEWS.md | 1 + company-pysmell.el | 69 ---------------------------------------------- company.el | 1 - 3 files changed, 1 insertion(+), 70 deletions(-) delete mode 100644 company-pysmell.el diff --git a/NEWS.md b/NEWS.md index 2f0675957..c83b34b7c 100644 --- a/NEWS.md +++ b/NEWS.md @@ -2,6 +2,7 @@ ## Next +* `company-pysmell` was removed. * `company-select-next`, `company-select-previous`, `company-select-next-or-abort`, `company-select-previous-or-abort` and `company-complete-common-or-cycle` accept a numeric argument. diff --git a/company-pysmell.el b/company-pysmell.el deleted file mode 100644 index 8a69e7690..000000000 --- a/company-pysmell.el +++ /dev/null @@ -1,69 +0,0 @@ -;;; company-pysmell.el --- company-mode completion back-end for pysmell.el - -;; Copyright (C) 2009-2011, 2013-2014 Free Software Foundation, Inc. - -;; Author: Nikolaj Schumacher - -;; This file is part of GNU Emacs. - -;; GNU Emacs is free software: you can redistribute it and/or modify -;; it under the terms of the GNU General Public License as published by -;; the Free Software Foundation, either version 3 of the License, or -;; (at your option) any later version. - -;; GNU Emacs is distributed in the hope that it will be useful, -;; but WITHOUT ANY WARRANTY; without even the implied warranty of -;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -;; GNU General Public License for more details. - -;; You should have received a copy of the GNU General Public License -;; along with GNU Emacs. If not, see . - - -;;; Commentary: -;; -;; The main problem with using this backend is installing Pysmell. -;; I couldn't manage to do that. --Dmitry - -;;; Code: - -(if t (require 'pysmell)) ;Don't load during compilation. -(require 'company) -(require 'cl-lib) - -(defvar-local company-pysmell--available-p 'unknown) - -(defun company-pysmell--available-p () - (if (eq company-pysmell--available-p 'unknown) - (setq company-pysmell--available-p - (locate-dominating-file buffer-file-name "PYSMELLTAGS")) - company-pysmell--available-p)) - -(defun company-pysmell--grab-symbol () - (let ((symbol (company-grab-symbol))) - (when symbol - (cons symbol - (save-excursion - (let ((pos (point))) - (goto-char (- (point) (length symbol))) - (while (eq (char-before) ?.) - (goto-char (1- (point))) - (skip-syntax-backward "w_")) - (- pos (point)))))))) - -;;;###autoload -(defun company-pysmell (command &optional arg &rest ignored) - "`company-mode' completion back-end for pysmell. -This requires pysmell.el and pymacs.el." - (interactive (list 'interactive)) - (cl-case command - (interactive (company-begin-backend 'company-pysmell)) - (prefix (and (derived-mode-p 'python-mode) - buffer-file-name - (not (company-in-string-or-comment)) - (company-pysmell--available-p) - (company-pysmell--grab-symbol))) - (candidates (delete "" (pysmell-get-all-completions))))) - -(provide 'company-pysmell) -;;; company-pysmell.el ends here diff --git a/company.el b/company.el index 93f1dad6f..d0193f42d 100644 --- a/company.el +++ b/company.el @@ -300,7 +300,6 @@ This doesn't include the margins and the scroll bar." (company-keywords . "Programming language keywords") (company-nxml . "nxml") (company-oddmuse . "Oddmuse") - (company-pysmell . "PySmell") (company-ropemacs . "ropemacs") (company-semantic . "Semantic") (company-tempo . "Tempo templates") -- 2.39.2