X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=cc-ide%2Fcc-ide.el;h=3d819ad5aaf419718c0285ee23941666f57c9536;hb=3d370602ea891fbc150d425a9e1eb4d4c3b38763;hp=25946145d9182b6da1809bfffd66c3fe31821d6e;hpb=dc419c8ec52c5339da6637117a5b0bb89cdd766f;p=emacsstuff.git diff --git a/cc-ide/cc-ide.el b/cc-ide/cc-ide.el index 2594614..3d819ad 100644 --- a/cc-ide/cc-ide.el +++ b/cc-ide/cc-ide.el @@ -123,8 +123,11 @@ correctly included.") (nil nil separator) ;; documentation - ("h" ccide-hide-all-doxy-comments "Hide all Doxygen comments") - ("s" ccide-show-all-comments "Show all Doxygen comments") + ("h" ccide-hide-all-doxy-comments "Hide all Doxygen comments") + ("s" ccide-show-all-comments "Show all Doxygen comments") + + ;; cython + ("yp" ccide-grab-pxd-fn "Generate pxd function/method decl") ; ;; CORBA ; ("Cg" ccide-gen-corba-impl "Generate CORBA impl") @@ -1460,6 +1463,17 @@ instatiations at point." (provide 'cc-ide) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; cython support + +(defun ccide-grab-pxd-fn () + (interactive) + (save-excursion + (c-beginning-of-defun-or-decl) + (let ((defn (c-build-pxd))) + (kill-new (cadr defn)) + (message (concat (car defn)))))) + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; other stuff (defun ccide-open-compilation-frame ()