Advertisement
Guest User

Untitled

a guest
Apr 25th, 2015
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.84 KB | None | 0 0
  1. Index: coq/coq.el
  2. ===================================================================
  3. RCS file: /disk/cvs/proofgen/ProofGeneral/coq/coq.el,v
  4. retrieving revision 11.201
  5. diff -u -r11.201 coq.el
  6. --- coq/coq.el  14 Apr 2015 13:53:21 -0000  11.201
  7. +++ coq/coq.el  17 Apr 2015 22:05:59 -0000
  8. @@ -727,12 +727,13 @@
  9.      s))
  10.  
  11.  (defun coq-is-symbol-or-punct (c)
  12. -  (or (equal (char-syntax c) ?\.) (equal (char-syntax c) ?\_)))
  13. +  (when c
  14. +    (or (equal (char-syntax c) ?\.) (equal (char-syntax c) ?\_))))
  15.  
  16.  (defun coq-grab-punctuation-left (pos)
  17.    (let ((res nil)
  18.          (currpos pos))
  19. -    (while (coq-is-symbol-or-punct (char-before currpos)(char-before currpos))
  20. +    (while (coq-is-symbol-or-punct (char-before currpos))
  21.        (setq res (concat (char-to-string (char-before currpos)) res))
  22.        (setq currpos (- currpos 1)))
  23.      res))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement