diff options
| author | Kenichi Handa | 2012-10-07 21:58:14 +0900 |
|---|---|---|
| committer | Kenichi Handa | 2012-10-07 21:58:14 +0900 |
| commit | dade5fca51ce2ed10fdace1cfcf78287599154a1 (patch) | |
| tree | 299c84e1ce2c5a95237b41781113790626d259c5 /lisp/progmodes | |
| parent | 6aa75fb62f6cdc4164d935ef14d57feec5ed6e0a (diff) | |
| parent | 78d876b90e52400b7bbb086ca1a471d3d20d0e98 (diff) | |
| download | emacs-dade5fca51ce2ed10fdace1cfcf78287599154a1.tar.gz emacs-dade5fca51ce2ed10fdace1cfcf78287599154a1.zip | |
merge trunk
Diffstat (limited to 'lisp/progmodes')
| -rw-r--r-- | lisp/progmodes/bug-reference.el | 1 | ||||
| -rw-r--r-- | lisp/progmodes/flymake.el | 3 | ||||
| -rw-r--r-- | lisp/progmodes/python.el | 77 | ||||
| -rw-r--r-- | lisp/progmodes/sh-script.el | 4 | ||||
| -rw-r--r-- | lisp/progmodes/verilog-mode.el | 3 | ||||
| -rw-r--r-- | lisp/progmodes/vhdl-mode.el | 3 |
6 files changed, 59 insertions, 32 deletions
diff --git a/lisp/progmodes/bug-reference.el b/lisp/progmodes/bug-reference.el index 97fcb6874dd..3561105e59d 100644 --- a/lisp/progmodes/bug-reference.el +++ b/lisp/progmodes/bug-reference.el | |||
| @@ -74,6 +74,7 @@ so that it is considered safe, see `enable-local-variables'.") | |||
| 74 | The second subexpression should match the bug reference (usually a number)." | 74 | The second subexpression should match the bug reference (usually a number)." |
| 75 | :type 'string | 75 | :type 'string |
| 76 | :safe 'stringp | 76 | :safe 'stringp |
| 77 | :version "24.3" ; previously defconst | ||
| 77 | :group 'bug-reference) | 78 | :group 'bug-reference) |
| 78 | 79 | ||
| 79 | (defun bug-reference-set-overlay-properties () | 80 | (defun bug-reference-set-overlay-properties () |
diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el index 10d5fdf9c64..26d4a399c2d 100644 --- a/lisp/progmodes/flymake.el +++ b/lisp/progmodes/flymake.el | |||
| @@ -768,6 +768,7 @@ line number outside the file being compiled." | |||
| 768 | The value may also be a list of two elements where the second | 768 | The value may also be a list of two elements where the second |
| 769 | element specifies the face for the bitmap." | 769 | element specifies the face for the bitmap." |
| 770 | :group 'flymake | 770 | :group 'flymake |
| 771 | :version "24.3" | ||
| 771 | :type 'symbol) | 772 | :type 'symbol) |
| 772 | 773 | ||
| 773 | (defcustom flymake-warning-bitmap 'question-mark | 774 | (defcustom flymake-warning-bitmap 'question-mark |
| @@ -775,6 +776,7 @@ element specifies the face for the bitmap." | |||
| 775 | The value may also be a list of two elements where the second | 776 | The value may also be a list of two elements where the second |
| 776 | element specifies the face for the bitmap." | 777 | element specifies the face for the bitmap." |
| 777 | :group 'flymake | 778 | :group 'flymake |
| 779 | :version "24.3" | ||
| 778 | :type 'symbol) | 780 | :type 'symbol) |
| 779 | 781 | ||
| 780 | (defcustom flymake-fringe-indicator-position 'left-fringe | 782 | (defcustom flymake-fringe-indicator-position 'left-fringe |
| @@ -782,6 +784,7 @@ element specifies the face for the bitmap." | |||
| 782 | The value can be nil, left-fringe or right-fringe. | 784 | The value can be nil, left-fringe or right-fringe. |
| 783 | Fringe indicators are disabled if nil." | 785 | Fringe indicators are disabled if nil." |
| 784 | :group 'flymake | 786 | :group 'flymake |
| 787 | :version "24.3" | ||
| 785 | :type '(choice (const left-fringe) | 788 | :type '(choice (const left-fringe) |
| 786 | (const right-fringe) | 789 | (const right-fringe) |
| 787 | (const :tag "No fringe indicators" nil))) | 790 | (const :tag "No fringe indicators" nil))) |
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index b3b3b0181d7..726c0b2d542 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -1667,10 +1667,6 @@ variable. | |||
| 1667 | \(Type \\[describe-mode] in the process buffer for a list of commands.)" | 1667 | \(Type \\[describe-mode] in the process buffer for a list of commands.)" |
| 1668 | (set-syntax-table python-mode-syntax-table) | 1668 | (set-syntax-table python-mode-syntax-table) |
| 1669 | (setq mode-line-process '(":%s")) | 1669 | (setq mode-line-process '(":%s")) |
| 1670 | (setq comint-prompt-regexp (format "^\\(?:%s\\|%s\\|%s\\)" | ||
| 1671 | python-shell-prompt-regexp | ||
| 1672 | python-shell-prompt-block-regexp | ||
| 1673 | python-shell-prompt-pdb-regexp)) | ||
| 1674 | (make-local-variable 'comint-output-filter-functions) | 1670 | (make-local-variable 'comint-output-filter-functions) |
| 1675 | (add-hook 'comint-output-filter-functions | 1671 | (add-hook 'comint-output-filter-functions |
| 1676 | 'python-comint-output-filter-function) | 1672 | 'python-comint-output-filter-function) |
| @@ -1720,7 +1716,11 @@ killed." | |||
| 1720 | (process (get-buffer-process buffer))) | 1716 | (process (get-buffer-process buffer))) |
| 1721 | (with-current-buffer buffer | 1717 | (with-current-buffer buffer |
| 1722 | (inferior-python-mode) | 1718 | (inferior-python-mode) |
| 1723 | (python-util-clone-local-variables current-buffer)) | 1719 | (python-util-clone-local-variables current-buffer) |
| 1720 | (setq comint-prompt-regexp (format "^\\(?:%s\\|%s\\|%s\\)" | ||
| 1721 | python-shell-prompt-regexp | ||
| 1722 | python-shell-prompt-block-regexp | ||
| 1723 | python-shell-prompt-pdb-regexp))) | ||
| 1724 | (accept-process-output process) | 1724 | (accept-process-output process) |
| 1725 | (and pop (pop-to-buffer buffer t)) | 1725 | (and pop (pop-to-buffer buffer t)) |
| 1726 | (and internal (set-process-query-on-exit-flag process nil)))) | 1726 | (and internal (set-process-query-on-exit-flag process nil)))) |
| @@ -1861,26 +1861,39 @@ When MSG is non-nil messages the first line of STRING." | |||
| 1861 | (string-match "\n[ \t].*\n?$" string)) | 1861 | (string-match "\n[ \t].*\n?$" string)) |
| 1862 | (comint-send-string process "\n"))))) | 1862 | (comint-send-string process "\n"))))) |
| 1863 | 1863 | ||
| 1864 | ;; Shell output catching stolen from gud-gdb | 1864 | (defvar python-shell-output-filter-in-progress nil) |
| 1865 | (defvar python-shell-fetch-lines-in-progress nil) | 1865 | (defvar python-shell-output-filter-buffer nil) |
| 1866 | (defvar python-shell-fetch-lines-string nil) | 1866 | |
| 1867 | (defvar python-shell-fetched-lines nil) | 1867 | (defun python-shell-output-filter (string) |
| 1868 | 1868 | "Filter used in `python-shell-send-string-no-output' to grab output. | |
| 1869 | (defun python-shell-fetch-lines-filter (string) | 1869 | STRING is the output received to this point from the process. |
| 1870 | "Filter used to read the list of lines output by a command. | 1870 | This filter saves received output from the process in |
| 1871 | STRING is the output to filter." | 1871 | `python-shell-output-filter-buffer' and stops receiving it after |
| 1872 | (setq string (concat python-shell-fetch-lines-string string)) | 1872 | detecting a prompt at the end of the buffer." |
| 1873 | (while (string-match "\n" string) | 1873 | (setq |
| 1874 | (push (substring string 0 (match-beginning 0)) | 1874 | string (ansi-color-filter-apply string) |
| 1875 | python-shell-fetched-lines) | 1875 | python-shell-output-filter-buffer |
| 1876 | (setq string (substring string (match-end 0)))) | 1876 | (concat python-shell-output-filter-buffer string)) |
| 1877 | (if (equal (string-match comint-prompt-regexp string) 0) | 1877 | (when (string-match |
| 1878 | (progn | 1878 | (format "\n\\(?:%s\\|%s\\|%s\\)$" |
| 1879 | (setq python-shell-fetch-lines-in-progress nil) | 1879 | python-shell-prompt-regexp |
| 1880 | string) | 1880 | python-shell-prompt-block-regexp |
| 1881 | (progn | 1881 | python-shell-prompt-pdb-regexp) |
| 1882 | (setq python-shell-fetch-lines-string string) | 1882 | python-shell-output-filter-buffer) |
| 1883 | ""))) | 1883 | ;; Output ends when `python-shell-output-filter-buffer' contains |
| 1884 | ;; the prompt attached at the end of it. | ||
| 1885 | (setq python-shell-output-filter-in-progress nil | ||
| 1886 | python-shell-output-filter-buffer | ||
| 1887 | (substring python-shell-output-filter-buffer | ||
| 1888 | 0 (match-beginning 0))) | ||
| 1889 | (when (and (> (length python-shell-prompt-output-regexp) 0) | ||
| 1890 | (string-match (concat "^" python-shell-prompt-output-regexp) | ||
| 1891 | python-shell-output-filter-buffer)) | ||
| 1892 | ;; Some shells, like iPython might append a prompt before the | ||
| 1893 | ;; output, clean that. | ||
| 1894 | (setq python-shell-output-filter-buffer | ||
| 1895 | (substring python-shell-output-filter-buffer (match-end 0))))) | ||
| 1896 | "") | ||
| 1884 | 1897 | ||
| 1885 | (defun python-shell-send-string-no-output (string &optional process msg) | 1898 | (defun python-shell-send-string-no-output (string &optional process msg) |
| 1886 | "Send STRING to PROCESS and inhibit output. | 1899 | "Send STRING to PROCESS and inhibit output. |
| @@ -1888,18 +1901,20 @@ When MSG is non-nil messages the first line of STRING. Return | |||
| 1888 | the output." | 1901 | the output." |
| 1889 | (let ((process (or process (python-shell-get-or-create-process))) | 1902 | (let ((process (or process (python-shell-get-or-create-process))) |
| 1890 | (comint-preoutput-filter-functions | 1903 | (comint-preoutput-filter-functions |
| 1891 | '(python-shell-fetch-lines-filter)) | 1904 | '(python-shell-output-filter)) |
| 1892 | (python-shell-fetch-lines-in-progress t) | 1905 | (python-shell-output-filter-in-progress t) |
| 1893 | (inhibit-quit t)) | 1906 | (inhibit-quit t)) |
| 1894 | (or | 1907 | (or |
| 1895 | (with-local-quit | 1908 | (with-local-quit |
| 1896 | (python-shell-send-string string process msg) | 1909 | (python-shell-send-string string process msg) |
| 1897 | (while python-shell-fetch-lines-in-progress | 1910 | (while python-shell-output-filter-in-progress |
| 1911 | ;; `python-shell-output-filter' takes care of setting | ||
| 1912 | ;; `python-shell-output-filter-in-progress' to NIL after it | ||
| 1913 | ;; detects end of output. | ||
| 1898 | (accept-process-output process)) | 1914 | (accept-process-output process)) |
| 1899 | (prog1 | 1915 | (prog1 |
| 1900 | (mapconcat #'identity | 1916 | python-shell-output-filter-buffer |
| 1901 | (reverse python-shell-fetched-lines) "\n") | 1917 | (setq python-shell-output-filter-buffer nil))) |
| 1902 | (setq python-shell-fetched-lines nil))) | ||
| 1903 | (with-current-buffer (process-buffer process) | 1918 | (with-current-buffer (process-buffer process) |
| 1904 | (comint-interrupt-subjob))))) | 1919 | (comint-interrupt-subjob))))) |
| 1905 | 1920 | ||
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el index e94919ee2a9..06ded5fb53d 100644 --- a/lisp/progmodes/sh-script.el +++ b/lisp/progmodes/sh-script.el | |||
| @@ -1767,7 +1767,9 @@ Does not preserve point." | |||
| 1767 | 1767 | ||
| 1768 | (defcustom sh-indent-after-continuation t | 1768 | (defcustom sh-indent-after-continuation t |
| 1769 | "If non-nil, try to make sure text is indented after a line continuation." | 1769 | "If non-nil, try to make sure text is indented after a line continuation." |
| 1770 | :type 'boolean) | 1770 | :version "24.3" |
| 1771 | :type 'boolean | ||
| 1772 | :group 'sh-indentation) | ||
| 1771 | 1773 | ||
| 1772 | (defun sh-smie--continuation-start-indent () | 1774 | (defun sh-smie--continuation-start-indent () |
| 1773 | "Return the initial indentation of a continued line. | 1775 | "Return the initial indentation of a continued line. |
diff --git a/lisp/progmodes/verilog-mode.el b/lisp/progmodes/verilog-mode.el index 8c4167b6724..6ffe88f721e 100644 --- a/lisp/progmodes/verilog-mode.el +++ b/lisp/progmodes/verilog-mode.el | |||
| @@ -1159,6 +1159,7 @@ See the \\[verilog-faq] for examples on using this." | |||
| 1159 | "Non-nil means report warning if an AUTO_TEMPLATE line is not used. | 1159 | "Non-nil means report warning if an AUTO_TEMPLATE line is not used. |
| 1160 | This feature is not supported before Emacs 21.1 or XEmacs 21.4." | 1160 | This feature is not supported before Emacs 21.1 or XEmacs 21.4." |
| 1161 | :group 'verilog-mode-auto | 1161 | :group 'verilog-mode-auto |
| 1162 | :version "24.3" | ||
| 1162 | :type 'boolean) | 1163 | :type 'boolean) |
| 1163 | (put 'verilog-auto-template-warn-unused 'safe-local-variable 'verilog-booleanp) | 1164 | (put 'verilog-auto-template-warn-unused 'safe-local-variable 'verilog-booleanp) |
| 1164 | 1165 | ||
| @@ -1230,11 +1231,13 @@ For example, \"_t$\" matches typedefs named with _t, as in the C language." | |||
| 1230 | (defcustom verilog-before-save-font-hook nil | 1231 | (defcustom verilog-before-save-font-hook nil |
| 1231 | "Hook run before `verilog-save-font-mods' removes highlighting." | 1232 | "Hook run before `verilog-save-font-mods' removes highlighting." |
| 1232 | :group 'verilog-mode-auto | 1233 | :group 'verilog-mode-auto |
| 1234 | :version "24.3" | ||
| 1233 | :type 'hook) | 1235 | :type 'hook) |
| 1234 | 1236 | ||
| 1235 | (defcustom verilog-after-save-font-hook nil | 1237 | (defcustom verilog-after-save-font-hook nil |
| 1236 | "Hook run after `verilog-save-font-mods' restores highlighting." | 1238 | "Hook run after `verilog-save-font-mods' restores highlighting." |
| 1237 | :group 'verilog-mode-auto | 1239 | :group 'verilog-mode-auto |
| 1240 | :version "24.3" | ||
| 1238 | :type 'hook) | 1241 | :type 'hook) |
| 1239 | 1242 | ||
| 1240 | (defvar verilog-imenu-generic-expression | 1243 | (defvar verilog-imenu-generic-expression |
diff --git a/lisp/progmodes/vhdl-mode.el b/lisp/progmodes/vhdl-mode.el index 52757b9eede..6ad7d3b168a 100644 --- a/lisp/progmodes/vhdl-mode.el +++ b/lisp/progmodes/vhdl-mode.el | |||
| @@ -483,6 +483,7 @@ with other user Makefiles." | |||
| 483 | :type '(list (string :tag "Compile entire design") | 483 | :type '(list (string :tag "Compile entire design") |
| 484 | (string :tag "Clean entire design ") | 484 | (string :tag "Clean entire design ") |
| 485 | (string :tag "Create design library")) | 485 | (string :tag "Create design library")) |
| 486 | :version "24.3" | ||
| 486 | :group 'vhdl-compile) | 487 | :group 'vhdl-compile) |
| 487 | 488 | ||
| 488 | (defcustom vhdl-makefile-generation-hook nil | 489 | (defcustom vhdl-makefile-generation-hook nil |
| @@ -772,6 +773,7 @@ index, the record field or array index is included with the record name in | |||
| 772 | the sensitivity list (e.g. \"in1(0)\", \"in2.f0\"). | 773 | the sensitivity list (e.g. \"in1(0)\", \"in2.f0\"). |
| 773 | Otherwise, only the record name is included (e.g. \"in1\", \"in2\")." | 774 | Otherwise, only the record name is included (e.g. \"in1\", \"in2\")." |
| 774 | :type 'boolean | 775 | :type 'boolean |
| 776 | :version "24.3" | ||
| 775 | :group 'vhdl-style) | 777 | :group 'vhdl-style) |
| 776 | 778 | ||
| 777 | (defgroup vhdl-naming nil | 779 | (defgroup vhdl-naming nil |
| @@ -1849,6 +1851,7 @@ Otherwise, comment lines are indented like the preceding code line. | |||
| 1849 | Indenting comment lines like the following code line gives nicer indentation | 1851 | Indenting comment lines like the following code line gives nicer indentation |
| 1850 | when comments precede the code that they refer to." | 1852 | when comments precede the code that they refer to." |
| 1851 | :type 'boolean | 1853 | :type 'boolean |
| 1854 | :version "24.3" | ||
| 1852 | :group 'vhdl-misc) | 1855 | :group 'vhdl-misc) |
| 1853 | 1856 | ||
| 1854 | (defcustom vhdl-word-completion-case-sensitive nil | 1857 | (defcustom vhdl-word-completion-case-sensitive nil |