[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master cdd2c00 10/38: use eq instead of string-equal
From: |
Dmitry Gutov |
Subject: |
[elpa] master cdd2c00 10/38: use eq instead of string-equal |
Date: |
Sat, 25 Jul 2020 19:51:12 -0400 (EDT) |
branch: master
commit cdd2c00844df7c8c9bb5579a6b5e915a3a871289
Author: stephen <sawakitaeiji233@gmail.com>
Commit: stephen <sawakitaeiji233@gmail.com>
use eq instead of string-equal
---
company-yasnippet.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/company-yasnippet.el b/company-yasnippet.el
index b05b2cc..cc12eb2 100644
--- a/company-yasnippet.el
+++ b/company-yasnippet.el
@@ -99,13 +99,13 @@
(defun company-yasnippet--doc (arg)
(let ((template (get-text-property 0 'yas-template arg))
- (mode (symbol-value 'major-mode)))
+ (mode major-mode))
(with-current-buffer (company-doc-buffer)
(yas-minor-mode 1)
(yas-expand-snippet (yas--template-content template))
(delay-mode-hooks
(let ((inhibit-message t))
- (if (string-equal mode 'web-mode)
+ (if (eq mode 'web-mode)
(progn
(setq mode 'html-mode)
(funcall mode))
- [elpa] master updated (e58daf7 -> 6a39f31), Dmitry Gutov, 2020/07/25
- [elpa] master ec1a742 01/38: Stop overriding post-completion, Dmitry Gutov, 2020/07/25
- [elpa] master d40bcfc 06/38: add the docbuffer on company-yasnippet, Dmitry Gutov, 2020/07/25
- [elpa] master cdd2c00 10/38: use eq instead of string-equal,
Dmitry Gutov <=
- [elpa] master 4af1ea2 12/38: company-yasnippet: Make annotation more customizable, Dmitry Gutov, 2020/07/25
- [elpa] master d091704 13/38: Update copyright years, Dmitry Gutov, 2020/07/25
- [elpa] master fdbdff3 15/38: catch yas-expand-snippet error, Dmitry Gutov, 2020/07/25
- [elpa] master 265eb38 16/38: Merge pull request #967 from taigacute/master, Dmitry Gutov, 2020/07/25
- [elpa] master e3d7d60 02/38: company-bbdb: Support more headers like From:, Dmitry Gutov, 2020/07/25
- [elpa] master 94e22c4 03/38: Merge pull request #958 from OGAWAHirofumi/company-bbdb-add-more-header, Dmitry Gutov, 2020/07/25
- [elpa] master f275ee6 04/38: Fix Travis CI Build config, Dmitry Gutov, 2020/07/25
- [elpa] master 872b14c 05/38: add the docbuffer on company-yasnippet, Dmitry Gutov, 2020/07/25
- [elpa] master 32e535d 07/38: add syntax highlight, Dmitry Gutov, 2020/07/25
- [elpa] master e585f63 08/38: Merge pull request #963 from tsuu32/fix/travis-ci, Dmitry Gutov, 2020/07/25