Merge from emacs-24; up to 2012-12-21T07:35:02Z!ueno@gnu.org
This commit is contained in:
commit
cfbf790d80
6 changed files with 2001 additions and 35 deletions
|
@ -179,9 +179,6 @@ packages that you can install.
|
|||
WhizzyTeX provides a minor mode for Emacs or XEmacs, a (bash)
|
||||
shell-script daemon and some LaTeX macros.
|
||||
|
||||
* X-Symbol: <URL:http://x-symbol.sourceforge.net/>
|
||||
Quasi-WYSIWYG editing of TeX & al.
|
||||
|
||||
Local Variables:
|
||||
mode: text
|
||||
eval: (view-mode 1)
|
||||
|
|
|
@ -1,3 +1,18 @@
|
|||
2013-02-21 Fabián Ezequiel Gallina <fgallina@cuca>
|
||||
|
||||
* progmodes/python.el (python-info-current-defun): Enhance
|
||||
match-data cluttering prevention.
|
||||
|
||||
2013-02-21 Glenn Morris <rgm@gnu.org>
|
||||
|
||||
* net/tramp.el (tramp-get-debug-buffer): Ensure outline.el is not
|
||||
loaded while outline-regexp is let bound. (Bug#9584)
|
||||
|
||||
2013-02-21 Fabián Ezequiel Gallina <fgallina@cuca>
|
||||
|
||||
* progmodes/python.el (python-info-current-defun): Fix failed
|
||||
defun name retrieval because of unwanted match-data cluttering.
|
||||
|
||||
2013-02-21 Michael Albinus <michael.albinus@gmx.de>
|
||||
|
||||
* net/tramp.el (tramp-ssh-controlmaster-template): Make it a
|
||||
|
|
|
@ -1354,6 +1354,8 @@ The outline level is equal to the verbosity of the Tramp message."
|
|||
(get-buffer-create (tramp-debug-buffer-name vec))
|
||||
(when (bobp)
|
||||
(setq buffer-undo-list t)
|
||||
;; So it does not get loaded while outline-regexp is let-bound.
|
||||
(require 'outline)
|
||||
;; Activate `outline-mode'. This runs `text-mode-hook' and
|
||||
;; `outline-mode-hook'. We must prevent that local processes
|
||||
;; die. Yes: I've seen `flyspell-mode', which starts "ispell".
|
||||
|
|
|
@ -2959,39 +2959,40 @@ not inside a defun."
|
|||
(type))
|
||||
(catch 'exit
|
||||
(while (python-nav-beginning-of-defun 1)
|
||||
(when (and
|
||||
(or (not last-indent)
|
||||
(< (current-indentation) last-indent))
|
||||
(or
|
||||
(and first-run
|
||||
(when (save-match-data
|
||||
(and
|
||||
(or (not last-indent)
|
||||
(< (current-indentation) last-indent))
|
||||
(or
|
||||
(and first-run
|
||||
(save-excursion
|
||||
;; If this is the first run, we may add
|
||||
;; the current defun at point.
|
||||
(setq first-run nil)
|
||||
(goto-char starting-pos)
|
||||
(python-nav-beginning-of-statement)
|
||||
(beginning-of-line 1)
|
||||
(looking-at-p
|
||||
python-nav-beginning-of-defun-regexp)))
|
||||
(< starting-pos
|
||||
(save-excursion
|
||||
;; If this is the first run, we may add
|
||||
;; the current defun at point.
|
||||
(setq first-run nil)
|
||||
(goto-char starting-pos)
|
||||
(python-nav-beginning-of-statement)
|
||||
(beginning-of-line 1)
|
||||
(looking-at-p
|
||||
python-nav-beginning-of-defun-regexp)))
|
||||
(< starting-pos
|
||||
(save-excursion
|
||||
(let ((min-indent
|
||||
(+ (current-indentation)
|
||||
python-indent-offset)))
|
||||
(if (< starting-indentation min-indent)
|
||||
;; If the starting indentation is not
|
||||
;; within the min defun indent make the
|
||||
;; check fail.
|
||||
starting-pos
|
||||
;; Else go to the end of defun and add
|
||||
;; up the current indentation to the
|
||||
;; ending position.
|
||||
(python-nav-end-of-defun)
|
||||
(+ (point)
|
||||
(if (>= (current-indentation) min-indent)
|
||||
(1+ (current-indentation))
|
||||
0))))))))
|
||||
(setq last-indent (current-indentation))
|
||||
(let ((min-indent
|
||||
(+ (current-indentation)
|
||||
python-indent-offset)))
|
||||
(if (< starting-indentation min-indent)
|
||||
;; If the starting indentation is not
|
||||
;; within the min defun indent make the
|
||||
;; check fail.
|
||||
starting-pos
|
||||
;; Else go to the end of defun and add
|
||||
;; up the current indentation to the
|
||||
;; ending position.
|
||||
(python-nav-end-of-defun)
|
||||
(+ (point)
|
||||
(if (>= (current-indentation) min-indent)
|
||||
(1+ (current-indentation))
|
||||
0)))))))))
|
||||
(save-match-data (setq last-indent (current-indentation)))
|
||||
(if (or (not include-type) type)
|
||||
(setq names (cons (match-string-no-properties 1) names))
|
||||
(let ((match (split-string (match-string-no-properties 0))))
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
2013-02-21 Fabián Ezequiel Gallina <fgallina@cuca>
|
||||
|
||||
* automated/python-tests.el: New file.
|
||||
|
||||
2013-02-14 Dmitry Gutov <dgutov@yandex.ru>
|
||||
|
||||
* automated/ruby-mode-tests.el
|
||||
|
|
1947
test/automated/python-tests.el
Normal file
1947
test/automated/python-tests.el
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue