branch: elpa/gnuplot
commit e47e77ec5d2936f3bac622253173f01c8fb49dfb
Merge: 3f0e094 9894505
Author: Naoya Yamashita <[email protected]>
Commit: GitHub <[email protected]>

    Merge pull request #49 from conao3/fix-completion
    
    Ignore backward-sexp error when get completion
---
 gnuplot.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnuplot.el b/gnuplot.el
index ba943c5..b6fe49e 100644
--- a/gnuplot.el
+++ b/gnuplot.el
@@ -2990,7 +2990,7 @@ positions and COMPLETIONS is a list."
   (let* ((end (point))
          (beg (condition-case _err
                   (save-excursion (backward-sexp 1) (point))
-                (point)))
+                (error (point))))
          (patt (buffer-substring beg end))
          (pattern (if (string-match "\\([^ \t]*\\)\\s-+$" patt)
                       (match-string 1 patt) patt))

Reply via email to