branch: elpa/scad-mode
commit 5dde5cacbfa7a25af850098ac347a2ff0e24c724
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>

    Remove scad-prime-dabbrev hack
    
    - Avoid the creation of a hidden buffer
    - Instead use completion-at-point for completion (TAB completion)
---
 scad-mode.el | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/scad-mode.el b/scad-mode.el
index ebd3b4ad85..47ec18649c 100644
--- a/scad-mode.el
+++ b/scad-mode.el
@@ -230,16 +230,6 @@ Key bindings:
             scad-completions
             :exclusive "no"))))
 
-;; From: 
http://stackoverflow.com/questions/14520073/add-words-for-dynamic-expansion-to-emacs-mode
-(defun scad-prime-dabbrev ()
-  "Makes a hidden scad-mode buffer containing all the scad keywords, so 
dabbrev expansion just works."
-  (unless (get-buffer " *scad words*")
-    (with-current-buffer (get-buffer-create " *scad words*")
-      (scad-mode)
-      (insert "module function use include")  ; Explicitly add these -- 
they're not in the below vars
-      (insert (mapconcat 'identity (append scad-keywords scad-functions 
scad-modules scad-deprecated) " ")))))
-(add-hook 'scad-mode-hook 'scad-prime-dabbrev)
-
 (defun scad-open-current-buffer ()
   "Open current buffer with `scad-command'."
   (interactive)

Reply via email to