aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorMattias EngdegÄrd2019-12-21 18:52:06 +0100
committerMattias EngdegÄrd2019-12-26 16:50:58 +0100
commitaf085ef40b961ca3466e8b2dfb7f722573e5a4cc (patch)
tree406b79cc7431083a76eeab312e18e1064641eec9 /lisp/progmodes/python.el
parentc980d21ae11beb1eca1f3cb373cdddda8a580913 (diff)
downloademacs-af085ef40b961ca3466e8b2dfb7f722573e5a4cc.tar.gz
emacs-af085ef40b961ca3466e8b2dfb7f722573e5a4cc.zip
Use regexp type for regexps in defcustom declarations
* lisp/calendar/diary-lib.el (diary-face-attrs): * lisp/cedet/semantic/db-ebrowse.el (semanticdb-ebrowse-file-match): * lisp/cedet/srecode/document.el (srecode-document-autocomment-common-nouns-abbrevs) (srecode-document-autocomment-function-alist) (srecode-document-autocomment-return-first-alist) (srecode-document-autocomment-return-last-alist) (srecode-document-autocomment-param-alist) (srecode-document-autocomment-param-type-alist): * lisp/desktop.el (desktop-clear-preserve-buffers): * lisp/elide-head.el (elide-head-headers-to-hide): * lisp/erc/erc-backend.el (erc-encoding-coding-alist): * lisp/erc/erc-ezbounce.el (erc-ezb-regexp): * lisp/files.el (auto-save-file-name-transforms): * lisp/gnus/deuglify.el (gnus-outlook-deuglify-attrib-cut-regexp) (gnus-outlook-deuglify-attrib-verb-regexp) (gnus-outlook-deuglify-attrib-end-regexp): * lisp/gnus/gnus-fun.el (gnus-x-face-omit-files, gnus-face-omit-files): * lisp/gnus/spam.el (spam-spamassassin-positive-spam-flag-header): * lisp/htmlfontify.el (hfy-src-doc-link-unstyle): * lisp/info-look.el (info-lookup-file-name-alist): * lisp/international/rfc1843.el (rfc1843-newsgroups-regexp): * lisp/mail/feedmail.el (feedmail-queue-slug-suspect-regexp): * lisp/mail/rmail-spam-filter.el (rsf-white-list, rsf-definitions-alist): * lisp/man.el (Man-name-local-regexp): * lisp/net/ange-ftp.el (ange-ftp-dumb-unix-host-regexp): * lisp/net/newst-backend.el (newsticker-auto-mark-filter-list): * lisp/net/rcirc.el (rcirc-authinfo, rcirc-coding-system-alist): * lisp/net/tramp-adb.el (tramp-adb-prompt): * lisp/org/org-agenda.el (org-agenda-hide-tags-regexp) (org-agenda-category-icon-alist): * lisp/org/org-protocol.el (org-protocol-data-separator): * lisp/org/org-table.el (org-table-number-regexp): * lisp/org/ox-latex.el (org-latex-known-warnings): * lisp/progmodes/bug-reference.el (bug-reference-bug-regexp): * lisp/progmodes/hideif.el (hide-ifdef-header-regexp): * lisp/progmodes/idlw-help.el (idlwave-help-doclib-name) (idlwave-help-doclib-keyword): * lisp/progmodes/idlwave.el (idlwave-no-change-comment): * lisp/progmodes/python.el (python-shell-prompt-input-regexps) (python-shell-prompt-output-regexps, python-shell-prompt-regexp) (python-shell-prompt-block-regexp, python-shell-prompt-output-regexp) (python-shell-prompt-pdb-regexp, python-shell-compilation-regexp-alist) (python-pdbtrack-stacktrace-info-regexp): * lisp/progmodes/sql.el (sql-send-terminator, sql-ansi-statement-starters): * lisp/speedbar.el (speedbar-directory-unshown-regexp) (speedbar-file-unshown-regexp): * lisp/textmodes/flyspell.el (flyspell-mark-duplications-exceptions) (flyspell-tex-command-regexp): * lisp/textmodes/paragraphs.el (sentence-end-base): * lisp/textmodes/tildify.el (tildify-pattern, tildify-space-pattern): * lisp/vc/ediff-init.el (ediff-metachars): * lisp/vc/vc-git.el (vc-git-root-log-format): * lisp/vc/vc-hg.el (vc-hg-root-log-format): * lisp/whitespace.el (whitespace-indentation-regexp) (whitespace-space-after-tab-regexp): * lisp/woman.el (woman-manpath-man-regexp) (woman-imenu-generic-expression): Use 'regexp' instead of 'string' as type for values that are regexps in defcustom declarations.
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el16
1 files changed, 8 insertions, 8 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 2956bfa0419..0482cd78dc4 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -1993,7 +1993,7 @@ position, else returns nil."
1993 ;; IPython prompts activated, this adds some safeguard for that. 1993 ;; IPython prompts activated, this adds some safeguard for that.
1994 "In : " "\\.\\.\\.: ") 1994 "In : " "\\.\\.\\.: ")
1995 "List of regular expressions matching input prompts." 1995 "List of regular expressions matching input prompts."
1996 :type '(repeat string) 1996 :type '(repeat regexp)
1997 :version "24.4") 1997 :version "24.4")
1998 1998
1999(defcustom python-shell-prompt-output-regexps 1999(defcustom python-shell-prompt-output-regexps
@@ -2001,28 +2001,28 @@ position, else returns nil."
2001 "Out\\[[0-9]+\\]: " ; IPython 2001 "Out\\[[0-9]+\\]: " ; IPython
2002 "Out :") ; ipdb safeguard 2002 "Out :") ; ipdb safeguard
2003 "List of regular expressions matching output prompts." 2003 "List of regular expressions matching output prompts."
2004 :type '(repeat string) 2004 :type '(repeat regexp)
2005 :version "24.4") 2005 :version "24.4")
2006 2006
2007(defcustom python-shell-prompt-regexp ">>> " 2007(defcustom python-shell-prompt-regexp ">>> "
2008 "Regular expression matching top level input prompt of Python shell. 2008 "Regular expression matching top level input prompt of Python shell.
2009It should not contain a caret (^) at the beginning." 2009It should not contain a caret (^) at the beginning."
2010 :type 'string) 2010 :type 'regexp)
2011 2011
2012(defcustom python-shell-prompt-block-regexp "\\.\\.\\.:? " 2012(defcustom python-shell-prompt-block-regexp "\\.\\.\\.:? "
2013 "Regular expression matching block input prompt of Python shell. 2013 "Regular expression matching block input prompt of Python shell.
2014It should not contain a caret (^) at the beginning." 2014It should not contain a caret (^) at the beginning."
2015 :type 'string) 2015 :type 'regexp)
2016 2016
2017(defcustom python-shell-prompt-output-regexp "" 2017(defcustom python-shell-prompt-output-regexp ""
2018 "Regular expression matching output prompt of Python shell. 2018 "Regular expression matching output prompt of Python shell.
2019It should not contain a caret (^) at the beginning." 2019It should not contain a caret (^) at the beginning."
2020 :type 'string) 2020 :type 'regexp)
2021 2021
2022(defcustom python-shell-prompt-pdb-regexp "[(<]*[Ii]?[Pp]db[>)]+ " 2022(defcustom python-shell-prompt-pdb-regexp "[(<]*[Ii]?[Pp]db[>)]+ "
2023 "Regular expression matching pdb input prompt of Python shell. 2023 "Regular expression matching pdb input prompt of Python shell.
2024It should not contain a caret (^) at the beginning." 2024It should not contain a caret (^) at the beginning."
2025 :type 'string) 2025 :type 'regexp)
2026 2026
2027(define-obsolete-variable-alias 2027(define-obsolete-variable-alias
2028 'python-shell-enable-font-lock 'python-shell-font-lock-enable "25.1") 2028 'python-shell-enable-font-lock 'python-shell-font-lock-enable "25.1")
@@ -2111,7 +2111,7 @@ virtualenv."
2111 "(" (group (1+ digit)) ")" (1+ (not (any "("))) "()") 2111 "(" (group (1+ digit)) ")" (1+ (not (any "("))) "()")
2112 1 2)) 2112 1 2))
2113 "`compilation-error-regexp-alist' for inferior Python." 2113 "`compilation-error-regexp-alist' for inferior Python."
2114 :type '(alist string) 2114 :type '(alist regexp)
2115 :group 'python) 2115 :group 'python)
2116 2116
2117(defmacro python-shell--add-to-path-with-priority (pathvar paths) 2117(defmacro python-shell--add-to-path-with-priority (pathvar paths)
@@ -3785,7 +3785,7 @@ the top stack frame has been reached.
3785 3785
3786Filename is expected in the first parenthesized expression. 3786Filename is expected in the first parenthesized expression.
3787Line number is expected in the second parenthesized expression." 3787Line number is expected in the second parenthesized expression."
3788 :type 'string 3788 :type 'regexp
3789 :version "27.1" 3789 :version "27.1"
3790 :safe 'stringp) 3790 :safe 'stringp)
3791 3791