aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2013-02-18 19:29:28 -0800
committerGlenn Morris2013-02-18 19:29:28 -0800
commit872faefb07a9196a583fc8cbe146ab6a2ebc9c2b (patch)
tree5502bf8472fb7d132c03de2240ce403b502f8995
parent8ca4f1e02e22f74dc269b01bc4a32e01dd226dae (diff)
parent2af3b9c16e340ad034e57e949f09bbafc00bd52c (diff)
downloademacs-872faefb07a9196a583fc8cbe146ab6a2ebc9c2b.tar.gz
emacs-872faefb07a9196a583fc8cbe146ab6a2ebc9c2b.zip
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 @@
12013-02-19 Glenn Morris <rgm@gnu.org>
2
3 * text.texi (Change Hooks): Fix typo.
4
12013-02-15 Glenn Morris <rgm@gnu.org> 52013-02-15 Glenn Morris <rgm@gnu.org>
2 6
3 * modes.texi (Basic Major Modes): 'z' no longer bound in special-mode. 7 * 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
4344modification. Each function receives three arguments: the beginning 4344modification. Each function receives three arguments: the beginning
4345and end of the region just changed, and the length of the text that 4345and end of the region just changed, and the length of the text that
4346existed before the change. All three arguments are integers. The 4346existed before the change. All three arguments are integers. The
4347buffer has been changed is always the current buffer. 4347buffer that has been changed is always the current buffer.
4348 4348
4349The length of the old text is the difference between the buffer 4349The length of the old text is the difference between the buffer
4350positions before and after that text as it was before the change. As 4350positions 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.
41 The Emacs Wiki has an area for storing elisp files 41 The Emacs Wiki has an area for storing elisp files
42 <URL:http://www.emacswiki.org/cgi-bin/wiki/ElispArea>. 42 <URL:http://www.emacswiki.org/cgi-bin/wiki/ElispArea>.
43 43
44* WikEmacs
45 <URL:http://wikemacs.org> is an alternative wiki for Emacs.
46
47* Emacs slides and tutorials can be found here: 44* Emacs slides and tutorials can be found here:
48 <URL:http://web.psung.name/emacs/> 45 <URL:http://web.psung.name/emacs/>
49 46
@@ -55,16 +52,8 @@ so you will find the latest version in Emacs.
55 52
56 * Ada-mode: <URL:http://stephe-leake.org/emacs/ada-mode/emacs-ada-mode.html> 53 * Ada-mode: <URL:http://stephe-leake.org/emacs/ada-mode/emacs-ada-mode.html>
57 54
58 * Battery and Info Look: <URL:http://ralph-schleicher.de/emacs.html>
59
60 * CC mode: <URL:http://cc-mode.sourceforge.net/> 55 * CC mode: <URL:http://cc-mode.sourceforge.net/>
61 56
62 * CPerl: <URL:http://math.berkeley.edu/~ilya/software/emacs/>
63
64 * Ediff and Viper: <URL:http://www.cs.sunysb.edu/~kifer/emacs.html>
65
66 * ERC: <URL:http://savannah.gnu.org/projects/erc/>
67
68 * Gnus: <URL:http://www.gnus.org/> 57 * Gnus: <URL:http://www.gnus.org/>
69 58
70 * MH-E: <URL:http://mh-e.sourceforge.net/> 59 * MH-E: <URL:http://mh-e.sourceforge.net/>
@@ -73,25 +62,11 @@ so you will find the latest version in Emacs.
73 62
74 * Org mode: <URL:http://orgmode.org/> 63 * Org mode: <URL:http://orgmode.org/>
75 64
76 * RefTeX: <URL:http://www.gnu.org/software/auctex/reftex.html>
77
78 * Remember: <URL:https://gna.org/p/remember-el>
79
80 * CEDET: <URL:http://cedet.sourceforge.net/> 65 * CEDET: <URL:http://cedet.sourceforge.net/>
81 66
82 * Tramp: Remote file access via rsh/ssh 67 * Tramp: Remote file access via rsh/ssh
83 <URL:http://savannah.gnu.org/projects/tramp/> 68 <URL:http://savannah.gnu.org/projects/tramp/>
84 69
85* Auxiliary files
86
87 * (Tex)info files for use with Info-look that don't come from GNU
88 packages:
89 * Scheme: <URL:http://groups.csail.mit.edu/mac/ftpdir/scm/r5rs.info.tar.gz>
90 * LaTeX: <URL:ftp://ctan.tug.org/tex-archive/info/latex2e-help-texinfo/
91 latex2e.texi> (or CTAN mirrors)
92 * Perl: <URL:ftp://ftp.cpan.org/pub/CPAN/doc/manual/texinfo/>
93 (or CPAN mirrors)
94
95* GNU Zile: <URL:http://www.gnu.org/software/zile/> 70* GNU Zile: <URL:http://www.gnu.org/software/zile/>
96 A lightweight Emacs clone, for when you don't have room for Emacs proper. 71 A lightweight Emacs clone, for when you don't have room for Emacs proper.
97 72
@@ -108,6 +83,7 @@ packages that you can install.
108 * AUCTeX: <URL:http://www.gnu.org/software/auctex/> 83 * AUCTeX: <URL:http://www.gnu.org/software/auctex/>
109 An extensible package that supports writing and formatting TeX 84 An extensible package that supports writing and formatting TeX
110 files (including AMS-TeX, LaTeX, Texinfo, ConTeXt, and docTeX). 85 files (including AMS-TeX, LaTeX, Texinfo, ConTeXt, and docTeX).
86 Includes Preview LaTeX: embed preview LaTeX images in source buffer.
111 Available from GNU ELPA. 87 Available from GNU ELPA.
112 88
113 * BBDB: personal Info Rolodex integrated with mail/news: 89 * BBDB: personal Info Rolodex integrated with mail/news:
@@ -134,6 +110,7 @@ packages that you can install.
134 110
135 * Emacs Muse: <URL:http://mwolson.org/projects/EmacsMuse.html> 111 * Emacs Muse: <URL:http://mwolson.org/projects/EmacsMuse.html>
136 An authoring and publishing environment for Emacs. 112 An authoring and publishing environment for Emacs.
113 Available from GNU ELPA.
137 114
138 * Emacs speaks statistics (ESS): statistical programming within Emacs 115 * Emacs speaks statistics (ESS): statistical programming within Emacs
139 <URL:http://ess.r-project.org> 116 <URL:http://ess.r-project.org>
@@ -170,9 +147,6 @@ packages that you can install.
170 * Planner Mode: <URL:http://www.wjsullivan.net/PlannerMode.html> 147 * Planner Mode: <URL:http://www.wjsullivan.net/PlannerMode.html>
171 Planner is an organizer and day planner for Emacs. 148 Planner is an organizer and day planner for Emacs.
172 149
173 * Preview LaTeX: embed preview LaTeX images in source buffer.
174 <URL:http://www.gnu.org/software/auctex/preview-latex.html>
175
176 * Quack: <URL:http://www.neilvandyke.org/quack/> 150 * Quack: <URL:http://www.neilvandyke.org/quack/>
177 Quack enhances Emacs support for Scheme. 151 Quack enhances Emacs support for Scheme.
178 152
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d4832d9cce8..d430ba0908f 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,23 @@
12013-02-19 Fabián Ezequiel Gallina <fgallina@cuca>
2
3 * progmodes/python.el (python-indent-context):
4 Fix python-info-line-ends-backslash-p call.
5 (python-info-line-ends-backslash-p)
6 (python-info-beginning-of-backslash): Respect line-number argument.
7 (python-info-current-line-comment-p):
8 Fix behavior when not at beginning-of-line.
9 (python-util-position): Remove function.
10 (python-util-goto-line): New function.
11
122013-02-19 Michael Albinus <michael.albinus@gmx.de>
13
14 * eshell/em-unix.el (eshell/su): Require tramp.
15 (eshell/sudo): Require tramp. Remove now unnecessary check.
16
17 * net/tramp-sh.el (tramp-sh-handle-start-file-process): Let-bind
18 `tramp-current-connection' in order to avoid an error when several
19 commands are invoked in a short time in eshell and friends.
20
12013-02-19 Stefan Monnier <monnier@iro.umontreal.ca> 212013-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
2 22
3 Cleanup some of EIEIO's namespace. 23 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.")
1040 1040
1041(defun eshell/su (&rest args) 1041(defun eshell/su (&rest args)
1042 "Alias \"su\" to call Tramp." 1042 "Alias \"su\" to call Tramp."
1043 (require 'tramp)
1043 (setq args (eshell-stringify-list (eshell-flatten-list args))) 1044 (setq args (eshell-stringify-list (eshell-flatten-list args)))
1044 (let ((orig-args (copy-tree args))) 1045 (let ((orig-args (copy-tree args)))
1045 (eshell-eval-using-options 1046 (eshell-eval-using-options
@@ -1077,6 +1078,7 @@ Become another USER during a login session.")
1077 1078
1078(defun eshell/sudo (&rest args) 1079(defun eshell/sudo (&rest args)
1079 "Alias \"sudo\" to call Tramp." 1080 "Alias \"sudo\" to call Tramp."
1081 (require 'tramp)
1080 (setq args (eshell-stringify-list (eshell-flatten-list args))) 1082 (setq args (eshell-stringify-list (eshell-flatten-list args)))
1081 (let ((orig-args (copy-tree args))) 1083 (let ((orig-args (copy-tree args)))
1082 (eshell-eval-using-options 1084 (eshell-eval-using-options
@@ -1111,8 +1113,6 @@ Execute a COMMAND as the superuser or another USER.")
1111 (format "%s|sudo:%s@%s:%s" 1113 (format "%s|sudo:%s@%s:%s"
1112 (substring prefix 0 -1) user host dir) 1114 (substring prefix 0 -1) user host dir)
1113 (format "/sudo:%s@%s:%s" user host dir)))) 1115 (format "/sudo:%s@%s:%s" user host dir))))
1114 ;; Ensure, that Tramp has connected to that construct already.
1115 (ignore (file-exists-p default-directory))
1116 (eshell-named-command (car orig-args) (cdr orig-args)))))))) 1116 (eshell-named-command (car orig-args) (cdr orig-args))))))))
1117 1117
1118(put 'eshell/sudo 'eshell-no-numeric-conversions t) 1118(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 @@
27;; Really cool code to lookup info indexes. 27;; Really cool code to lookup info indexes.
28;; Try especially info-lookup-symbol (aka C-h S). 28;; Try especially info-lookup-symbol (aka C-h S).
29 29
30;; Some additional sources of (Tex)info files for non-GNU packages:
31;;
32;; Scheme: <URL:http://groups.csail.mit.edu/mac/ftpdir/scm/r5rs.info.tar.gz>
33;; LaTeX:
34;; <URL:ftp://ctan.tug.org/tex-archive/info/latex2e-help-texinfo/latex2e.texi>
35;; (or CTAN mirrors)
36;; Perl: <URL:ftp://ftp.cpan.org/pub/CPAN/doc/manual/texinfo/> (or CPAN mirrors)
37
30;;; Code: 38;;; Code:
31 39
32(require 'info) 40(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."
2784 (or (null program) tramp-process-connection-type)) 2784 (or (null program) tramp-process-connection-type))
2785 (bmp (and (buffer-live-p buffer) (buffer-modified-p buffer))) 2785 (bmp (and (buffer-live-p buffer) (buffer-modified-p buffer)))
2786 (name1 name) 2786 (name1 name)
2787 (i 0)) 2787 (i 0)
2788 ;; We do not want to raise an error when
2789 ;; `start-file-process' has been started several time in
2790 ;; `eshell' and friends.
2791 (tramp-current-connection nil))
2788 2792
2789 (unless buffer 2793 (unless buffer
2790 ;; BUFFER can be nil. We use a temporary buffer. 2794 ;; 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."
708 ;; After backslash 708 ;; After backslash
709 ((setq start (when (not (or (python-syntax-context 'string ppss) 709 ((setq start (when (not (or (python-syntax-context 'string ppss)
710 (python-syntax-context 'comment ppss))) 710 (python-syntax-context 'comment ppss)))
711 (let ((line-beg-pos (line-beginning-position))) 711 (let ((line-beg-pos (line-number-at-pos)))
712 (when (python-info-line-ends-backslash-p 712 (python-info-line-ends-backslash-p
713 (1- line-beg-pos)) 713 (1- line-beg-pos)))))
714 (- line-beg-pos 2)))))
715 'after-backslash) 714 'after-backslash)
716 ;; After beginning of block 715 ;; After beginning of block
717 ((setq start (save-excursion 716 ((setq start (save-excursion
@@ -3115,7 +3114,7 @@ With optional argument LINE-NUMBER, check that line instead."
3115 (save-restriction 3114 (save-restriction
3116 (widen) 3115 (widen)
3117 (when line-number 3116 (when line-number
3118 (goto-char line-number)) 3117 (python-util-goto-line line-number))
3119 (while (and (not (eobp)) 3118 (while (and (not (eobp))
3120 (goto-char (line-end-position)) 3119 (goto-char (line-end-position))
3121 (python-syntax-context 'paren) 3120 (python-syntax-context 'paren)
@@ -3131,7 +3130,7 @@ Optional argument LINE-NUMBER forces the line number to check against."
3131 (save-restriction 3130 (save-restriction
3132 (widen) 3131 (widen)
3133 (when line-number 3132 (when line-number
3134 (goto-char line-number)) 3133 (python-util-goto-line line-number))
3135 (when (python-info-line-ends-backslash-p) 3134 (when (python-info-line-ends-backslash-p)
3136 (while (save-excursion 3135 (while (save-excursion
3137 (goto-char (line-beginning-position)) 3136 (goto-char (line-beginning-position))
@@ -3210,7 +3209,9 @@ operator."
3210 3209
3211(defun python-info-current-line-comment-p () 3210(defun python-info-current-line-comment-p ()
3212 "Check if current line is a comment line." 3211 "Check if current line is a comment line."
3213 (char-equal (or (char-after (+ (point) (current-indentation))) ?_) ?#)) 3212 (char-equal
3213 (or (char-after (+ (line-beginning-position) (current-indentation))) ?_)
3214 ?#))
3214 3215
3215(defun python-info-current-line-empty-p () 3216(defun python-info-current-line-empty-p ()
3216 "Check if current line is empty, ignoring whitespace." 3217 "Check if current line is empty, ignoring whitespace."
@@ -3225,12 +3226,10 @@ operator."
3225 3226
3226;;; Utility functions 3227;;; Utility functions
3227 3228
3228(defun python-util-position (item seq) 3229(defun python-util-goto-line (line-number)
3229 "Find the first occurrence of ITEM in SEQ. 3230 "Move point to LINE-NUMBER."
3230Return the index of the matching item, or nil if not found." 3231 (goto-char (point-min))
3231 (let ((member-result (member item seq))) 3232 (forward-line (1- line-number)))
3232 (when member-result
3233 (- (length seq) (length member-result)))))
3234 3233
3235;; Stolen from org-mode 3234;; Stolen from org-mode
3236(defun python-util-clone-local-variables (from-buffer &optional regexp) 3235(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 @@
12013-02-19 Eli Zaretskii <eliz@gnu.org>
2
3 * w32proc.c (new_child): Avoid leaking handles if the subprocess
4 resources were not orderly released.
5
12013-02-17 Eli Zaretskii <eliz@gnu.org> 62013-02-17 Eli Zaretskii <eliz@gnu.org>
2 7
3 * xdisp.c (x_draw_vertical_border): For a window that is neither 8 * 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)
849 cp = &child_procs[child_proc_count++]; 849 cp = &child_procs[child_proc_count++];
850 850
851 Initialize: 851 Initialize:
852 /* Last opportunity to avoid leaking handles before we forget them
853 for good. */
854 if (cp->procinfo.hProcess)
855 CloseHandle (cp->procinfo.hProcess);
856 if (cp->procinfo.hThread)
857 CloseHandle (cp->procinfo.hThread);
852 memset (cp, 0, sizeof (*cp)); 858 memset (cp, 0, sizeof (*cp));
853 cp->fd = -1; 859 cp->fd = -1;
854 cp->pid = -1; 860 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)
28244 if (FRAME_HAS_VERTICAL_SCROLL_BARS (XFRAME (w->frame))) 28244 if (FRAME_HAS_VERTICAL_SCROLL_BARS (XFRAME (w->frame)))
28245 return; 28245 return;
28246 28246
28247 /* Note: It is necessary to redraw bot the left and the right 28247 /* Note: It is necessary to redraw both the left and the right
28248 borders, for when only this single window W is being 28248 borders, for when only this single window W is being
28249 redisplayed. */ 28249 redisplayed. */
28250 if (!WINDOW_RIGHTMOST_P (w) 28250 if (!WINDOW_RIGHTMOST_P (w)