[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 02/28: company-dabbrev--search-buffer: Use `syntax-ppss' to get t
From: |
Dmitry Gutov |
Subject: |
[elpa] 02/28: company-dabbrev--search-buffer: Use `syntax-ppss' to get to the beg of str-or-cmt |
Date: |
Wed, 27 Aug 2014 01:26:18 +0000 |
dgutov pushed a commit to branch master
in repository elpa.
commit a5a6eeecf0ac9bda696091ab2a88a573f2fe3fd4
Author: Dmitry Gutov <address@hidden>
Date: Thu Jul 31 17:15:00 2014 +0300
company-dabbrev--search-buffer: Use `syntax-ppss' to get to the beg of
str-or-cmt
Fixes #158
---
company-dabbrev.el | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/company-dabbrev.el b/company-dabbrev.el
index ef63d90..3d57bb5 100644
--- a/company-dabbrev.el
+++ b/company-dabbrev.el
@@ -95,7 +95,7 @@ If you set this value to nil, you may also want to set
start limit
(setq match (match-string-no-properties 0))
(if (and ignore-comments (company-in-string-or-comment))
- (re-search-backward "\\s<\\|\\s!\\|\\s\"\\|\\s|" nil t)
+ (goto-char (nth 8 (syntax-ppss)))
(when (>= (length match) company-dabbrev-minimum-length)
(push match symbols))))
(goto-char (or pos (point-min)))
- [elpa] branch master updated (b6a1a9e -> 2d6cddf), Dmitry Gutov, 2014/08/26
- [elpa] 01/28: company-fill-propertize: tuncate the common part, Dmitry Gutov, 2014/08/26
- [elpa] 03/28: company-dabbrev-minimum-length: change the initvalue and document better, Dmitry Gutov, 2014/08/26
- [elpa] 06/28: Use `window-body-width' instead of the now-alias `window-width', Dmitry Gutov, 2014/08/26
- [elpa] 07/28: company--window-inner-height: remove, use `window-body-height', Dmitry Gutov, 2014/08/26
- [elpa] 02/28: company-dabbrev--search-buffer: Use `syntax-ppss' to get to the beg of str-or-cmt,
Dmitry Gutov <=
- [elpa] 04/28: Remove the "download ERT" logic; should be unused at this point, Dmitry Gutov, 2014/08/26
- [elpa] 08/28: Assign a face for the tooltip search string, Dmitry Gutov, 2014/08/26
- [elpa] 09/28: Merge pull request #164 from holomorph/tooltip-search, Dmitry Gutov, 2014/08/26
- [elpa] 10/28: Mention company-tooltip-search in NEWS, Dmitry Gutov, 2014/08/26
- [elpa] 11/28: Use window-screen-lines when available, Dmitry Gutov, 2014/08/26
- [elpa] 05/28: company--show-inline-p: never ignore case, Dmitry Gutov, 2014/08/26
- [elpa] 12/28: Tweak wording, Dmitry Gutov, 2014/08/26
- [elpa] 13/28: Use `posn-actual-col-row' to determine the current col and row, Dmitry Gutov, 2014/08/26
- [elpa] 14/28: Work around http://debbugs.gnu.org/18285, Dmitry Gutov, 2014/08/26
- [elpa] 16/28: company-buffer-lines: handle multiline display better, Dmitry Gutov, 2014/08/26