summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2013-02-18 19:29:28 -0800
committerGlenn Morris <rgm@gnu.org>2013-02-18 19:29:28 -0800
commit872faefb07a9196a583fc8cbe146ab6a2ebc9c2b (patch)
tree5502bf8472fb7d132c03de2240ce403b502f8995
parent8ca4f1e02e22f74dc269b01bc4a32e01dd226dae (diff)
parent2af3b9c16e340ad034e57e949f09bbafc00bd52c (diff)
downloademacs-872faefb07a9196a583fc8cbe146ab6a2ebc9c2b.tar.gz
Merge from emacs-24; up to 2012-12-20T16:09:05Z!dmantipov@yandex.ru
-rw-r--r--doc/lispref/ChangeLog4
-rw-r--r--doc/lispref/text.texi2
-rw-r--r--etc/MORE.STUFF30
-rw-r--r--lisp/ChangeLog20
-rw-r--r--lisp/eshell/em-unix.el4
-rw-r--r--lisp/info-look.el8
-rw-r--r--lisp/net/tramp-sh.el6
-rw-r--r--lisp/progmodes/python.el25
-rw-r--r--src/ChangeLog5
-rw-r--r--src/w32proc.c6
-rw-r--r--src/xdisp.c2
11 files changed, 66 insertions, 46 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index d8a08ee5d3e..fe61fb4dce1 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,7 @@
+2013-02-19 Glenn Morris <rgm@gnu.org>
+
+ * text.texi (Change Hooks): Fix typo.
+
2013-02-15 Glenn Morris <rgm@gnu.org>
* modes.texi (Basic Major Modes): 'z' no longer bound in special-mode.
diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi
index 00ec62ec49d..c6cbfa5b3f8 100644
--- a/doc/lispref/text.texi
+++ b/doc/lispref/text.texi
@@ -4344,7 +4344,7 @@ This variable holds a list of functions to call after any buffer
modification. Each function receives three arguments: the beginning
and end of the region just changed, and the length of the text that
existed before the change. All three arguments are integers. The
-buffer has been changed is always the current buffer.
+buffer that has been changed is always the current buffer.
The length of the old text is the difference between the buffer
positions before and after that text as it was before the change. As
diff --git a/etc/MORE.STUFF b/etc/MORE.STUFF
index 19b35f8ab28..57be8a2e971 100644
--- a/etc/MORE.STUFF
+++ b/etc/MORE.STUFF
@@ -41,9 +41,6 @@ a web search is often the best way to find results.
The Emacs Wiki has an area for storing elisp files
<URL:http://www.emacswiki.org/cgi-bin/wiki/ElispArea>.
-* WikEmacs
- <URL:http://wikemacs.org> is an alternative wiki for Emacs.
-
* Emacs slides and tutorials can be found here:
<URL:http://web.psung.name/emacs/>
@@ -55,16 +52,8 @@ so you will find the latest version in Emacs.
* Ada-mode: <URL:http://stephe-leake.org/emacs/ada-mode/emacs-ada-mode.html>
- * Battery and Info Look: <URL:http://ralph-schleicher.de/emacs.html>
-
* CC mode: <URL:http://cc-mode.sourceforge.net/>
- * CPerl: <URL:http://math.berkeley.edu/~ilya/software/emacs/>
-
- * Ediff and Viper: <URL:http://www.cs.sunysb.edu/~kifer/emacs.html>
-
- * ERC: <URL:http://savannah.gnu.org/projects/erc/>
-
* Gnus: <URL:http://www.gnus.org/>
* MH-E: <URL:http://mh-e.sourceforge.net/>
@@ -73,25 +62,11 @@ so you will find the latest version in Emacs.
* Org mode: <URL:http://orgmode.org/>
- * RefTeX: <URL:http://www.gnu.org/software/auctex/reftex.html>
-
- * Remember: <URL:https://gna.org/p/remember-el>
-
* CEDET: <URL:http://cedet.sourceforge.net/>
* Tramp: Remote file access via rsh/ssh
<URL:http://savannah.gnu.org/projects/tramp/>
-* Auxiliary files
-
- * (Tex)info files for use with Info-look that don't come from GNU
- packages:
- * Scheme: <URL:http://groups.csail.mit.edu/mac/ftpdir/scm/r5rs.info.tar.gz>
- * LaTeX: <URL:ftp://ctan.tug.org/tex-archive/info/latex2e-help-texinfo/
- latex2e.texi> (or CTAN mirrors)
- * Perl: <URL:ftp://ftp.cpan.org/pub/CPAN/doc/manual/texinfo/>
- (or CPAN mirrors)
-
* GNU Zile: <URL:http://www.gnu.org/software/zile/>
A lightweight Emacs clone, for when you don't have room for Emacs proper.
@@ -108,6 +83,7 @@ packages that you can install.
* AUCTeX: <URL:http://www.gnu.org/software/auctex/>
An extensible package that supports writing and formatting TeX
files (including AMS-TeX, LaTeX, Texinfo, ConTeXt, and docTeX).
+ Includes Preview LaTeX: embed preview LaTeX images in source buffer.
Available from GNU ELPA.
* BBDB: personal Info Rolodex integrated with mail/news:
@@ -134,6 +110,7 @@ packages that you can install.
* Emacs Muse: <URL:http://mwolson.org/projects/EmacsMuse.html>
An authoring and publishing environment for Emacs.
+ Available from GNU ELPA.
* Emacs speaks statistics (ESS): statistical programming within Emacs
<URL:http://ess.r-project.org>
@@ -170,9 +147,6 @@ packages that you can install.
* Planner Mode: <URL:http://www.wjsullivan.net/PlannerMode.html>
Planner is an organizer and day planner for Emacs.
- * Preview LaTeX: embed preview LaTeX images in source buffer.
- <URL:http://www.gnu.org/software/auctex/preview-latex.html>
-
* Quack: <URL:http://www.neilvandyke.org/quack/>
Quack enhances Emacs support for Scheme.
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d4832d9cce8..d430ba0908f 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,23 @@
+2013-02-19 Fabián Ezequiel Gallina <fgallina@cuca>
+
+ * progmodes/python.el (python-indent-context):
+ Fix python-info-line-ends-backslash-p call.
+ (python-info-line-ends-backslash-p)
+ (python-info-beginning-of-backslash): Respect line-number argument.
+ (python-info-current-line-comment-p):
+ Fix behavior when not at beginning-of-line.
+ (python-util-position): Remove function.
+ (python-util-goto-line): New function.
+
+2013-02-19 Michael Albinus <michael.albinus@gmx.de>
+
+ * eshell/em-unix.el (eshell/su): Require tramp.
+ (eshell/sudo): Require tramp. Remove now unnecessary check.
+
+ * net/tramp-sh.el (tramp-sh-handle-start-file-process): Let-bind
+ `tramp-current-connection' in order to avoid an error when several
+ commands are invoked in a short time in eshell and friends.
+
2013-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
Cleanup some of EIEIO's namespace.
diff --git a/lisp/eshell/em-unix.el b/lisp/eshell/em-unix.el
index f6dd0d5e990..94508d71592 100644
--- a/lisp/eshell/em-unix.el
+++ b/lisp/eshell/em-unix.el
@@ -1040,6 +1040,7 @@ Show wall-clock time elapsed during execution of COMMAND.")
(defun eshell/su (&rest args)
"Alias \"su\" to call Tramp."
+ (require 'tramp)
(setq args (eshell-stringify-list (eshell-flatten-list args)))
(let ((orig-args (copy-tree args)))
(eshell-eval-using-options
@@ -1077,6 +1078,7 @@ Become another USER during a login session.")
(defun eshell/sudo (&rest args)
"Alias \"sudo\" to call Tramp."
+ (require 'tramp)
(setq args (eshell-stringify-list (eshell-flatten-list args)))
(let ((orig-args (copy-tree args)))
(eshell-eval-using-options
@@ -1111,8 +1113,6 @@ Execute a COMMAND as the superuser or another USER.")
(format "%s|sudo:%s@%s:%s"
(substring prefix 0 -1) user host dir)
(format "/sudo:%s@%s:%s" user host dir))))
- ;; Ensure, that Tramp has connected to that construct already.
- (ignore (file-exists-p default-directory))
(eshell-named-command (car orig-args) (cdr orig-args))))))))
(put 'eshell/sudo 'eshell-no-numeric-conversions t)
diff --git a/lisp/info-look.el b/lisp/info-look.el
index 0b33dd51faf..afe4301c659 100644
--- a/lisp/info-look.el
+++ b/lisp/info-look.el
@@ -27,6 +27,14 @@
;; Really cool code to lookup info indexes.
;; Try especially info-lookup-symbol (aka C-h S).
+;; Some additional sources of (Tex)info files for non-GNU packages:
+;;
+;; Scheme: <URL:http://groups.csail.mit.edu/mac/ftpdir/scm/r5rs.info.tar.gz>
+;; LaTeX:
+;; <URL:ftp://ctan.tug.org/tex-archive/info/latex2e-help-texinfo/latex2e.texi>
+;; (or CTAN mirrors)
+;; Perl: <URL:ftp://ftp.cpan.org/pub/CPAN/doc/manual/texinfo/> (or CPAN mirrors)
+
;;; Code:
(require 'info)
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 9be22352b23..7388c570874 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -2784,7 +2784,11 @@ the result will be a local, non-Tramp, filename."
(or (null program) tramp-process-connection-type))
(bmp (and (buffer-live-p buffer) (buffer-modified-p buffer)))
(name1 name)
- (i 0))
+ (i 0)
+ ;; We do not want to raise an error when
+ ;; `start-file-process' has been started several time in
+ ;; `eshell' and friends.
+ (tramp-current-connection nil))
(unless buffer
;; BUFFER can be nil. We use a temporary buffer.
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index eadb06fa61e..da56fe70329 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -708,10 +708,9 @@ START is the buffer position where the sexp starts."
;; After backslash
((setq start (when (not (or (python-syntax-context 'string ppss)
(python-syntax-context 'comment ppss)))
- (let ((line-beg-pos (line-beginning-position)))
- (when (python-info-line-ends-backslash-p
- (1- line-beg-pos))
- (- line-beg-pos 2)))))
+ (let ((line-beg-pos (line-number-at-pos)))
+ (python-info-line-ends-backslash-p
+ (1- line-beg-pos)))))
'after-backslash)
;; After beginning of block
((setq start (save-excursion
@@ -3115,7 +3114,7 @@ With optional argument LINE-NUMBER, check that line instead."
(save-restriction
(widen)
(when line-number
- (goto-char line-number))
+ (python-util-goto-line line-number))
(while (and (not (eobp))
(goto-char (line-end-position))
(python-syntax-context 'paren)
@@ -3131,7 +3130,7 @@ Optional argument LINE-NUMBER forces the line number to check against."
(save-restriction
(widen)
(when line-number
- (goto-char line-number))
+ (python-util-goto-line line-number))
(when (python-info-line-ends-backslash-p)
(while (save-excursion
(goto-char (line-beginning-position))
@@ -3210,7 +3209,9 @@ operator."
(defun python-info-current-line-comment-p ()
"Check if current line is a comment line."
- (char-equal (or (char-after (+ (point) (current-indentation))) ?_) ?#))
+ (char-equal
+ (or (char-after (+ (line-beginning-position) (current-indentation))) ?_)
+ ?#))
(defun python-info-current-line-empty-p ()
"Check if current line is empty, ignoring whitespace."
@@ -3225,12 +3226,10 @@ operator."
;;; Utility functions
-(defun python-util-position (item seq)
- "Find the first occurrence of ITEM in SEQ.
-Return the index of the matching item, or nil if not found."
- (let ((member-result (member item seq)))
- (when member-result
- (- (length seq) (length member-result)))))
+(defun python-util-goto-line (line-number)
+ "Move point to LINE-NUMBER."
+ (goto-char (point-min))
+ (forward-line (1- line-number)))
;; Stolen from org-mode
(defun python-util-clone-local-variables (from-buffer &optional regexp)
diff --git a/src/ChangeLog b/src/ChangeLog
index e945e221593..ff059cf1a3c 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2013-02-19 Eli Zaretskii <eliz@gnu.org>
+
+ * w32proc.c (new_child): Avoid leaking handles if the subprocess
+ resources were not orderly released.
+
2013-02-17 Eli Zaretskii <eliz@gnu.org>
* xdisp.c (x_draw_vertical_border): For a window that is neither
diff --git a/src/w32proc.c b/src/w32proc.c
index 3f3e97c77a0..961791a40ed 100644
--- a/src/w32proc.c
+++ b/src/w32proc.c
@@ -849,6 +849,12 @@ new_child (void)
cp = &child_procs[child_proc_count++];
Initialize:
+ /* Last opportunity to avoid leaking handles before we forget them
+ for good. */
+ if (cp->procinfo.hProcess)
+ CloseHandle (cp->procinfo.hProcess);
+ if (cp->procinfo.hThread)
+ CloseHandle (cp->procinfo.hThread);
memset (cp, 0, sizeof (*cp));
cp->fd = -1;
cp->pid = -1;
diff --git a/src/xdisp.c b/src/xdisp.c
index 08958f44575..f32b88f3027 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -28244,7 +28244,7 @@ x_draw_vertical_border (struct window *w)
if (FRAME_HAS_VERTICAL_SCROLL_BARS (XFRAME (w->frame)))
return;
- /* Note: It is necessary to redraw bot the left and the right
+ /* Note: It is necessary to redraw both the left and the right
borders, for when only this single window W is being
redisplayed. */
if (!WINDOW_RIGHTMOST_P (w)