• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/emacs-93/emacs/lisp/progmodes/

Lines Matching +defs:function +defs:list

83 (add-to-list 'interpreter-mode-alist '("jython" . jython-mode))
85 (add-to-list 'interpreter-mode-alist '("python" . python-mode))
87 (add-to-list 'auto-mode-alist '("\\.py\\'" . python-mode))
109 (1 font-lock-keyword-face) (2 font-lock-function-name-face))
177 ;; (defun python-font-lock-syntactic-face-function (state)
178 ;; "`font-lock-syntactic-face-function' for Python mode.
276 :help "Update list of top-level imports for completion"]))
351 (progn (backward-up-list) t) ; actually within brackets
480 (defvar python-indent-list nil
483 (defvar python-indent-list-length nil
491 (setq python-indent-list nil
492 python-indent-list-length 1)
523 ;; Look for first item in list (preceding point) and
584 (when (and (> python-indent-list-length 1)
588 (let ((elt (assq (current-indentation) python-indent-list)))
589 (setq python-indent-list
590 (nconc (delete elt python-indent-list)
591 (list elt))))))
592 (caar (last python-indent-list)))))))
626 "Return a list of possible indentations for this line.
629 enclosing blocks. Elements of the list are actually pairs:
681 (setq python-indent-list levels
682 python-indent-list-length (length python-indent-list))))))
695 (and leave python-indent-list
696 (assq (current-indentation) python-indent-list)))
714 (if (= 1 python-indent-list-length)
717 (% (1+ python-indent-index) python-indent-list-length))
720 (indent-to (car (nth python-indent-index python-indent-list)))
723 python-indent-list))))
727 (setq python-indent-index (1- python-indent-list-length))))
730 "`indent-region-function' for Python.
757 ;; Fixme: Define {for,back}ward-sexp-function? Maybe skip units like
761 "`beginning-of-defun-function' for Python.
772 ;; Treat bol at beginning of function as outside function so
784 ;; last internal function followed by first
793 "`end-of-defun-function' for Python.
866 (progn (backward-up-list (* forward depth)) t)
872 (progn (backward-up-list forward)
1012 "`imenu-create-index-function' for Python.
1127 (list (read-string "Checker command: "
1256 "Input matching this regexp is not saved on the history list.
1262 "`comint-input-filter' function for inferior Python.
1267 (defun python-args-to-list (string)
1269 (cond ((null where) (list string))
1272 (python-args-to-list (substring string (+ 1 where)))))
1274 (if pos (python-args-to-list (substring string pos))))))))
1285 "`comint-preoutput-filter-functions' function: ignore prompts not at bol."
1349 buffer for a list of commands.)"
1351 (list (read-string "Run Python: " python-command) nil t)
1352 (list python-command)))
1361 (append (python-args-to-list cmd)
1375 ;; Load function definitions we need.
1376 ;; Before the preoutput function was used, this was done via -c in
1421 ;; function to remove the temporary file when it has been evaluated
1423 ;; filter). This function also catches exceptions and truncates
1424 ;; tracebacks not to mention the frame of the function itself.
1468 ;; Fixme: Try to define the function or class within the relevant
1497 :type '(repeat function)
1510 function location information for debugging, and supports users of
1587 (list (read-string (if symbol
1599 (list (cons (selected-window) help-return-method))))))
1603 (help-setup-xref (list 'python-describe-symbol symbol) (interactive-p))
1610 (add-to-list 'debug-ignored-errors "^No symbol")
1627 (defun python-eldoc-function ()
1629 Only works when point is in a function name, not its arg list, for
1722 `interpreter-mode-alist' or an import of a module from the list
1747 "`fill-paragraph-function' handling comments and multi-line strings.
1796 (list (region-beginning) (region-end) current-prefix-arg)
1797 (list (point) (point) current-prefix-arg)))
1811 (add-to-list 'debug-ignored-errors "^Can't shift all lines enough")
1819 (list (region-beginning) (region-end) current-prefix-arg)
1820 (list (point) (point) current-prefix-arg)))
1827 "`outline-level' function for Python mode.
1834 "`add-log-current-defun-function' for Python."
1860 ;; Fixme: Provide a find-function-like command to find source of a
1892 ;; doc for a function in the buffer and the import will lose if the
1913 "Return a list of completions of the string SYMBOL from Python process.
1914 The list is sorted.
1968 (message "Making completion list...")
1970 (display-completion-list completions symbol))
1971 (message "Making completion list...%s" "done"))))))))
1974 "Completion function for Python for use with `hippie-expand'."
1981 (setq he-expand-list
1983 (while (and he-expand-list
1984 (he-string-member (car he-expand-list) he-tried-table))
1985 (pop he-expand-list))
1986 (if he-expand-list
1988 (he-substitute-string (pop he-expand-list))
2027 (function (intern (concat "python-insert-" name))))
2029 (add-to-list 'python-skeletons ',(cons name function))
2031 (define-abbrev python-mode-abbrev-table ,name "" ',function nil t))
2032 (define-skeleton ,function
2035 (put 'def-python-skeleton 'lisp-indent-function 2)
2107 & ")" | -2 ; close list or remove opening
2120 (list (completing-read (format "Template to expand (default %s): "
2187 (defvar eldoc-documentation-function)
2248 ;; (font-lock-syntactic-face-function
2249 ;; . python-font-lock-syntactic-face-function)
2254 (set (make-local-variable 'indent-line-function) #'python-indent-line)
2255 (set (make-local-variable 'indent-region-function) #'python-indent-region)
2257 (set (make-local-variable 'fill-paragraph-function) 'python-fill-paragraph)
2259 (set (make-local-variable 'add-log-current-defun-function)
2269 (set (make-local-variable 'beginning-of-defun-function)
2271 (set (make-local-variable 'end-of-defun-function) 'python-end-of-defun)
2272 (setq imenu-create-index-function #'python-imenu-create-index)
2273 (set (make-local-variable 'eldoc-documentation-function)
2274 #'python-eldoc-function)
2281 (add-to-list 'hs-special-modes-alist
2293 (set (make-local-variable 'hippie-expand-try-functions-list)
2294 (cons 'python-try-complete hippie-expand-try-functions-list)))