auto-complete / popup-el

Visual Popup Interface Library for Emacs
GNU General Public License v3.0
446 stars 96 forks source link

Create "in-snippet" predicate #47

Closed brandonw closed 10 years ago

brandonw commented 10 years ago

Create a predicate that allows user to see whether or not they are currently in a snippet. This would help with configuring other modes to disable themselves (or enable themselves) in the event that the user is currently inside of a snippet.

My primary motivation would be something like the following:

(defadvice ac-expand (before advice-for-ac-expand activate)
  (when (yas-in-snippet-p)
    (ac-stop))```

Which would allow you to disable autocompletion if inside a snippet.

brandonw commented 10 years ago

Whoops, wrong repository.