]> code.delx.au - gnu-emacs/log
gnu-emacs
9 years ago* lisp/progmodes/sh-script.el: Don't set global indent-line-function
Stefan Monnier [Tue, 23 Dec 2014 04:22:20 +0000 (23:22 -0500)]
* lisp/progmodes/sh-script.el: Don't set global indent-line-function

Fixes: debbugs:19433
(sh-set-shell): Don't change the global value of indent-line-function.

9 years agoFix line numbers on Python shell.
Fabián Ezequiel Gallina [Tue, 23 Dec 2014 03:45:22 +0000 (00:45 -0300)]
Fix line numbers on Python shell.

* lisp/progmodes/python.el (python-shell--save-temp-file): Do not
append coding cookie.
(python-shell-send-string): Generalize for
python-shell-send-region.
(python--use-fake-loc): Delete var.
(python-shell-buffer-substring): Cleanup fake-loc logic.
(python-shell-send-region): Remove fake-loc logic, simplify.

9 years agodoc/emacs/buffers.texi (Kill Buffer): Improve indexing.
Eli Zaretskii [Mon, 22 Dec 2014 18:23:06 +0000 (20:23 +0200)]
doc/emacs/buffers.texi (Kill Buffer): Improve indexing.

9 years agoKeep maximized when going fullscreen.
Jan D [Mon, 22 Dec 2014 10:04:24 +0000 (11:04 +0100)]
Keep maximized when going fullscreen.

Author:
Fixes: Bug#19427
* xterm.c (do_ewmh_fullscreen): Don't remove maximized_horz/vert
when going to fullscreen (Bug#19427).

9 years agopython.el: Fix electric colon behavior
Fabián Ezequiel Gallina [Mon, 22 Dec 2014 05:24:42 +0000 (02:24 -0300)]
python.el: Fix electric colon behavior

* lisp/progmodes/python.el (python-indent-post-self-insert-function):
Make colon to re-indent only for dedenters, handling
multiline-statements gracefully.

* test/automated/python-tests.el (python-indent-electric-colon-2)
(python-indent-electric-colon-3): New tests.

9 years agoFix last patch.
Michael Albinus [Sun, 21 Dec 2014 15:19:26 +0000 (16:19 +0100)]
Fix last patch.

9 years agoFixes: debbugs:18623
Michael Albinus [Sun, 21 Dec 2014 11:10:31 +0000 (12:10 +0100)]
Fixes: debbugs:18623
* net/tramp.el (tramp-handle-insert-file-contents):
Set `find-file-not-found-functions' in case of errors.

9 years agoMerge branch 'emacs-24' of git.sv.gnu.org:/srv/git/emacs into emacs-24
Michael Albinus [Fri, 19 Dec 2014 11:56:52 +0000 (12:56 +0100)]
Merge branch 'emacs-24' of git.sv.gnu.org:/srv/git/emacs into emacs-24

Conflicts:
lisp/ChangeLog

9 years ago* net/tramp-sh.el (tramp-send-command-and-read): New optional arg MARKER.
Michael Albinus [Fri, 19 Dec 2014 11:51:42 +0000 (12:51 +0100)]
* net/tramp-sh.el (tramp-send-command-and-read): New optional arg MARKER.
(tramp-get-remote-path): Use it.

9 years agoMerge branch 'emacs-24' of git.sv.gnu.org:/srv/git/emacs into emacs-24
Michael Albinus [Fri, 19 Dec 2014 11:48:49 +0000 (12:48 +0100)]
Merge branch 'emacs-24' of git.sv.gnu.org:/srv/git/emacs into emacs-24

Conflicts:
lisp/ChangeLog

9 years ago* net/tramp-sh.el (tramp-send-command-and-read): New optional arg MARKER.
Michael Albinus [Fri, 19 Dec 2014 11:45:01 +0000 (12:45 +0100)]
* net/tramp-sh.el (tramp-send-command-and-read): New optional arg MARKER.
(tramp-get-remote-path): Use it.

9 years agoFix content decoding in gnus-read-ephemeral-bug-group
Andreas Schwab [Fri, 19 Dec 2014 10:47:51 +0000 (11:47 +0100)]
Fix content decoding in gnus-read-ephemeral-bug-group

* gnus-group.el (gnus-read-ephemeral-bug-group): Bind
coding-system-for-read and coding-system-for-write only around
with-temp-file, and make buffer unibyte.  Don't write temp file twice.

9 years agosrc/window.c (Fwindow_body_width): Doc fix. (Bug#19395)
Eli Zaretskii [Thu, 18 Dec 2014 17:15:01 +0000 (19:15 +0200)]
src/window.c (Fwindow_body_width): Doc fix.  (Bug#19395)

9 years ago* lisp/subr.el (redisplay-dont-pause): Mark as obsolete.
Stefan Monnier [Thu, 18 Dec 2014 15:25:54 +0000 (10:25 -0500)]
* lisp/subr.el (redisplay-dont-pause): Mark as obsolete.

* doc/lispref/display.texi (Forcing Redisplay): Remove references to
redisplay-dont-pause and redisplay-preemption-period (which doesn't
even exist).

9 years ago* net/tramp-gw.el (tramp-gw-open-connection): Suppress traces in
Michael Albinus [Wed, 17 Dec 2014 21:08:30 +0000 (22:08 +0100)]
* net/tramp-gw.el (tramp-gw-open-connection): Suppress traces in
wrong debug buffer.
(tramp-gw-open-connection): Set process coding system 'binary.
(tramp-gw-open-network-stream): Handle HTTP error 403.

* net/tramp-sh.el (tramp-compute-multi-hops): Suppress traces in
wrong debug buffer.
(tramp-maybe-open-connection): Set connection property "gateway".

* net/tramp.el (tramp-error-with-buffer): Call `message' properly.
(tramp-accept-process-output): Use nil as argument for
`accept-process-output', when there is a gateway prepended.

9 years ago* .gitignore: Ignore /conftest*.
Paul Eggert [Wed, 17 Dec 2014 02:42:58 +0000 (18:42 -0800)]
* .gitignore: Ignore /conftest*.

9 years ago* lisp/subr.el (sit-for): Tweak docstring.
Stefan Monnier [Mon, 15 Dec 2014 20:09:04 +0000 (15:09 -0500)]
* lisp/subr.el (sit-for): Tweak docstring.

Fixes: debbugs:19381
* src/buffer.c (syms_of_buffer) <Vafter_change_functions>: fix docstring.
* build-aux/git-hooks/commit-msg (at_sign): Bump up line-length limit
to 78.

9 years agoFix vc-git-dir-status-files WRT up-to-date vs edited
Dmitry Gutov [Mon, 15 Dec 2014 14:18:34 +0000 (16:18 +0200)]
Fix vc-git-dir-status-files WRT up-to-date vs edited

Fixes: debbugs:19386
* lisp/vc/vc-git.el (vc-git-after-dir-status-stage): Move `up-to-date'
stage to after `diff-index'.

9 years agoConsider electric-pair-mode in tex-mode.
Joao Tavora [Sun, 14 Dec 2014 11:22:46 +0000 (11:22 +0000)]
Consider electric-pair-mode in tex-mode.

Fixes: debbugs:19356
* lisp/textmodes/tex-mode.el (tex-insert-quote): Consider and respect
`electric-pair-mode'.

* test/automated/electric-tests.el (autowrapping-7): New test for
tex-mode's autowrapping.
(electric-pair-test-for): Call the actual key-binding
interactively.

9 years ago* test/automated/flymake/warnpred/test.pl: Tweak earlier change.
Glenn Morris [Sat, 13 Dec 2014 21:17:38 +0000 (13:17 -0800)]
* test/automated/flymake/warnpred/test.pl: Tweak earlier change.

9 years agoChangeLog fix
Glenn Morris [Sat, 13 Dec 2014 21:10:14 +0000 (13:10 -0800)]
ChangeLog fix

9 years ago* test/automated/flymake/warnpred/test.pl: Tweak format
Glenn Morris [Sat, 13 Dec 2014 20:56:22 +0000 (12:56 -0800)]
* test/automated/flymake/warnpred/test.pl: Tweak format

The previous format seems to have stopped giving a warning with perl 5.20.1,
for some reason.

9 years agosrc/gnutls.c (gnutls_init): Fix deprecation warning from GCC.
Eli Zaretskii [Sat, 13 Dec 2014 16:58:08 +0000 (18:58 +0200)]
src/gnutls.c (gnutls_init): Fix deprecation warning from GCC.

9 years ago* simple.el (password-word-equivalents): Add "passcode", used for
Michael Albinus [Fri, 12 Dec 2014 13:09:10 +0000 (14:09 +0100)]
* simple.el (password-word-equivalents): Add "passcode", used for
numeric secrets like PINs or RSA tokens.

9 years agoA better fix for bug#19346
Eli Zaretskii [Fri, 12 Dec 2014 09:19:59 +0000 (11:19 +0200)]
A better fix for bug#19346

 src/gnutls.c (Fgnutls_available_p, syms_of_gnutls): Move
 gnutls-available-p out of the HAVE_GNUTLS conditional, and define
 them only once.

9 years ago* .gitignore: Add !lib/std*.in.h, so as to not ignore the .in.h files.
Paul Eggert [Fri, 12 Dec 2014 02:24:33 +0000 (18:24 -0800)]
* .gitignore: Add !lib/std*.in.h, so as to not ignore the .in.h files.

9 years agoGit ignore lib/std*.h
Paul Eggert [Fri, 12 Dec 2014 02:11:46 +0000 (18:11 -0800)]
Git ignore lib/std*.h

* .gitignore: Add lib/std*.h, to ignore stdarg.h, stdbool.h, and
stddef.h.  Remove subsumed entries.

9 years agoAlways define `gnutls-available-p' even if GnuTLS is not available.
Ted Zlatanov [Thu, 11 Dec 2014 22:55:36 +0000 (17:55 -0500)]
Always define `gnutls-available-p' even if GnuTLS is not available.

Fixes: debbugs:19346
* gnutls.c (Fgnutls_available_p syms_of_gnutls): Move later for
clarity.  Let the availability check return Qnil when the GnuTLS
integration is not available, instead of erroring out.

* gnutls.h: Always declare syms_of_gnutls.

* emacs.c (main): Always include gnutls.h and run syms_of_gnutls.

9 years agoDon't break example string between 2 lines (bug#19257)
Eli Zaretskii [Thu, 11 Dec 2014 18:27:00 +0000 (20:27 +0200)]
Don't break example string between 2 lines (bug#19257)

 doc/lispref/text.texi (Comparing Text): Prevent a text string from being
 broken between 2 lines by using @w{}.

9 years agoPort commit-msg to mawk
Paul Eggert [Thu, 11 Dec 2014 07:17:04 +0000 (23:17 -0800)]
Port commit-msg to mawk

Problem reported by Ted Zlatanov in:
http://lists.gnu.org/archive/html/emacs-devel/2014-12/msg01093.html
* build-aux/git-hooks/commit-msg (space, non_space, non_print):
New vars.  Use them as approximations to POSIX bracket expressions,
on implementations like mawk that do not support POSIX regexps.

9 years agoImprove commit-msg messages and autosquash
Paul Eggert [Thu, 11 Dec 2014 04:44:35 +0000 (20:44 -0800)]
Improve commit-msg messages and autosquash

Problem reported by Michal Nazarewicz in Bug#19337.
* build-aux/git-hooks/commit-msg: Add "commit message" to
diagnostics.  Distinguish better between tabs and other
unprintable chars in diagnostics.  Don't complain if a prefix
"fixup! " or "squash! " makes a summary line too long.

9 years agoSupport overflow-newline-into-fringe together with word-wrap (bug#19300)
Eli Zaretskii [Wed, 10 Dec 2014 17:54:19 +0000 (19:54 +0200)]
Support overflow-newline-into-fringe together with word-wrap (bug#19300)

 src/xdisp.c (move_it_in_display_line_to, display_line): Don't
 disallow overflow-newline-into-fringe when word-wrap is in
 effect.

9 years ago* net/tramp-sh.el (tramp-get-remote-path): Use a login shell in
Michael Albinus [Wed, 10 Dec 2014 13:15:51 +0000 (14:15 +0100)]
* net/tramp-sh.el (tramp-get-remote-path): Use a login shell in
order to determine `tramp-own-remote-path'.

9 years agopython.el: Support interpreter paths with spaces
Fabián Ezequiel Gallina [Tue, 9 Dec 2014 01:32:53 +0000 (22:32 -0300)]
python.el: Support interpreter paths with spaces

Fixes: debbugs:19289
* lisp/progmodes/python.el (python-shell-parse-command): Quote
`python-shell-interpreter`.

9 years agoChangeLog fix
Glenn Morris [Mon, 8 Dec 2014 16:53:04 +0000 (08:53 -0800)]
ChangeLog fix

9 years agoPort commit-message checking to FreeBSD 9.
Paul Eggert [Mon, 8 Dec 2014 00:17:20 +0000 (16:17 -0800)]
Port commit-message checking to FreeBSD 9.

This fixes a bug reported by Jan Djärv in:
http://lists.gnu.org/archive/html/emacs-devel/2014-12/msg00704.html
along with some other issues I noticed while testing with FreeBSD.
* build-aux/git-hooks/commit-msg: Prefer gawk if available.
Prefer en_US.UTF-8 to en_US.utf8, as it's more portable.
Work around bug in FreeBSD 9 awk, where /[[:cntrl:]]/ matches
ordinary text characters.
Be less tricky about quoting "'" in a shell script.

9 years agoadmin/MAINTAINERS: Update my interests and responsibilities.
Eli Zaretskii [Sat, 6 Dec 2014 19:52:00 +0000 (21:52 +0200)]
admin/MAINTAINERS: Update my interests and responsibilities.

9 years ago* .gitignore: Ignore autosave files.
Stefan Monnier [Fri, 5 Dec 2014 20:31:28 +0000 (15:31 -0500)]
* .gitignore: Ignore autosave files.

9 years ago* src/eval.c (Fsignal): Remove duplicate test.
Lee Duhem [Thu, 4 Dec 2014 19:13:13 +0000 (14:13 -0500)]
* src/eval.c (Fsignal): Remove duplicate test.

(Fautoload_do_load): Fix up docstring.

9 years ago* lisp/progmodes/sh-script.el: Fix indentation rule of "| while".
Stefan Monnier [Thu, 4 Dec 2014 15:09:08 +0000 (10:09 -0500)]
* lisp/progmodes/sh-script.el: Fix indentation rule of "| while".

Fixes: debbugs:18031
* lisp/progmodes/sh-script.el (sh-smie-sh-rules): Go back to the beginning
of the whole pipe when indenting an opening keyword after a |.
Generalize this treatment to opening keywords like "while".

9 years agoMore flicker fixes for OSX, related to bug 18757.
Jan Djärv [Tue, 2 Dec 2014 13:05:27 +0000 (14:05 +0100)]
More flicker fixes for OSX, related to bug 18757.

* nsfns.m (ns_set_name_as_filename): Don't set represented filename
at once, call ns_set_represented_filename instead.

* nsterm.h: Declare ns_set_represented_filename.

* nsterm.m (represented_filename, represented_frame): New variables.
(ns_set_represented_filename): New function.
(sendEvent:): Set represented filename here to avoid flicker,
related to Bug#18757.

9 years ago* admin/update_autogen (commit): Revert earlier change.
Glenn Morris [Mon, 1 Dec 2014 18:40:06 +0000 (13:40 -0500)]
* admin/update_autogen (commit): Revert earlier change.

This was based on a misunderstanding due to the mess that had been
made in trunk of this file and its ChangeLog.

9 years ago* lisp/simple.el (newline): Place the hook buffer-locally,
Stefan Monnier [Mon, 1 Dec 2014 18:10:05 +0000 (13:10 -0500)]
* lisp/simple.el (newline): Place the hook buffer-locally,
to make sure it's first.

9 years ago* admin/update_autogen (commit): With git, call "add" before "commit".
Glenn Morris [Mon, 1 Dec 2014 17:58:51 +0000 (12:58 -0500)]
* admin/update_autogen (commit): With git, call "add" before "commit".

9 years ago* .gitignore: Avoid "**", as it requires Git 1.8.2 or later.
Paul Eggert [Mon, 1 Dec 2014 17:16:04 +0000 (09:16 -0800)]
* .gitignore: Avoid "**", as it requires Git 1.8.2 or later.

9 years ago* .gitignore: Remove redundant pattern (subsumed by _*).
Paul Eggert [Mon, 1 Dec 2014 17:13:35 +0000 (09:13 -0800)]
* .gitignore: Remove redundant pattern (subsumed by _*).

9 years agoAuto-commit of loaddefs files.
Glenn Morris [Mon, 1 Dec 2014 12:23:04 +0000 (07:23 -0500)]
Auto-commit of loaddefs files.

9 years ago* lisp/progmodes/prog-mode.el (prettify-symbols--compose-symbol): Refine.
Stefan Monnier [Mon, 1 Dec 2014 04:07:19 +0000 (23:07 -0500)]
* lisp/progmodes/prog-mode.el (prettify-symbols--compose-symbol): Refine.

Fix handling of symbols with different syntax at beginning/end or with
symbol rather than word syntax.

9 years agoFix bug #19211 with move-end-of-line in non-interactive session.
Eli Zaretskii [Sun, 30 Nov 2014 16:06:19 +0000 (18:06 +0200)]
Fix bug #19211 with move-end-of-line in non-interactive session.

 lisp/simple.el (line-move): If noninteractive, call line-move-1, not
 forward-line, since the former is compatible with line-move-visual
 both in terms of the column to which it moves and the return
 value.

9 years agoChangeLog fix (do not merge to master)
Glenn Morris [Sat, 29 Nov 2014 21:28:25 +0000 (13:28 -0800)]
ChangeLog fix (do not merge to master)

9 years agoPython.el: Update commentary on RET-behavior
Rasmus [Sat, 29 Nov 2014 12:37:13 +0000 (13:37 +0100)]
Python.el: Update commentary on RET-behavior

Commentary reflect that `electric-indent-mode' in enabled by default.

9 years agoFix bug #19201 with after-strings not being displayed.
Eli Zaretskii [Thu, 27 Nov 2014 16:35:27 +0000 (18:35 +0200)]
Fix bug #19201 with after-strings not being displayed.

 src/xdisp.c (handle_single_display_spec): When ignoring a fringe
 bitmap display, reset the ignore_overlay_strings_at_pos_p flag.
 (next_element_from_buffer): When done with overlays, reset the
 ignore_overlay_strings_at_pos_p flag.

9 years agooutline.el: Fix subtree movement.
Stephen Berman [Thu, 27 Nov 2014 10:03:58 +0000 (11:03 +0100)]
outline.el: Fix subtree movement.

Fixes: debbugs:19102
Co-authored-by: Stefan Monnier <monnier@iro.umontreal.ca>
* outline.el (outline-move-subtree-down): Make sure we can move
forward to find the end of the subtree and the insertion point.

9 years agoBackport regexp stack overflow fix from emacs-24.
Leonard Randall [Thu, 27 Nov 2014 08:38:21 +0000 (09:38 +0100)]
Backport regexp stack overflow fix from emacs-24.

* textmodes/reftex-parse.el (reftex-using-biblatex-p): Make search
for comment lines non-greedy and stopping at newlines to fix stack
overflows with large files. [Backport]

Signed-off-by: Tassilo Horn <tsdh@gnu.org>
9 years ago* lisp/progmodes/python.el (python-shell-completion-setup-code): Use
Fabián Ezequiel Gallina [Thu, 27 Nov 2014 02:45:24 +0000 (23:45 -0300)]
* lisp/progmodes/python.el (python-shell-completion-setup-code): Use
__builtin__ module (or builtins in Python 3) and catch all errors
when importing readline and rlcompleter.

9 years agotodo-mode.el: Handle calling revert-buffer.
Stephen Berman [Wed, 26 Nov 2014 22:17:41 +0000 (23:17 +0100)]
todo-mode.el: Handle calling revert-buffer.

Fixes: debbugs:19187
* calendar/todo-mode.el: (todo-revert-buffer): New function.
(todo-modes-set-1): Use it as the buffer-local value of
revert-buffer-function.

9 years agotodo-mode.el: Handle calling todo-mode interactively.
Stephen Berman [Wed, 26 Nov 2014 22:00:42 +0000 (23:00 +0100)]
todo-mode.el: Handle calling todo-mode interactively.

Fixes: debbugs:19112
* calendar/todo-mode.el (todo-mode): If called interactively, just
display a message saying to call todo-show to enter Todo mode.

9 years agoMention zlib1.dll as a potential reason for libgcc-induced crashes.
Eli Zaretskii [Wed, 26 Nov 2014 15:54:24 +0000 (17:54 +0200)]
Mention zlib1.dll as a potential reason for libgcc-induced crashes.

9 years agoauth-source: Fix Mac OS X keychain lookups.
John Mastro [Wed, 26 Nov 2014 14:15:08 +0000 (09:15 -0500)]
auth-source: Fix Mac OS X keychain lookups.

* auth-source.el (auth-source-macos-keychain-search-items): Return
result of `auth-source-macos-keychain-result-append' (bug#19074).

9 years agoFix bug #19141 with UNCs in w32-shell-execute.
Eli Zaretskii [Tue, 25 Nov 2014 17:04:14 +0000 (19:04 +0200)]
Fix bug #19141 with UNCs in w32-shell-execute.

 src/w32fns.c (Fw32_shell_execute): Convert forward slashes in
 DOCUMENT to backslashes, if DOCUMENT is a file.

9 years agoUse consistent paxctl and setfattr flags for temacs.
Ulrich Müller [Sun, 16 Nov 2014 11:37:54 +0000 (12:37 +0100)]
Use consistent paxctl and setfattr flags for temacs.

* Makefile.in (temacs$(EXEEXT)): Use consistent flag settings
for paxctl and setfattr. Fixes temacs startup failure with
grsecurity/PaX enabled Linux kernel (bug#19067).

9 years agoAdjust copyright notice and obviously-wrong dates.
Paul Eggert [Tue, 25 Nov 2014 01:47:29 +0000 (17:47 -0800)]
Adjust copyright notice and obviously-wrong dates.

9 years agoFix white-space problems in ChangeLogs.
Paul Eggert [Tue, 25 Nov 2014 01:14:29 +0000 (17:14 -0800)]
Fix white-space problems in ChangeLogs.

9 years agoSpelling fix.
Paul Eggert [Mon, 24 Nov 2014 16:38:57 +0000 (08:38 -0800)]
Spelling fix.

9 years ago* src/keyboard.c: Fix comment typo.
Glenn Morris [Mon, 24 Nov 2014 07:49:39 +0000 (23:49 -0800)]
* src/keyboard.c: Fix comment typo.

9 years agoFixes: debbugs:18579
Dmitry Gutov [Mon, 24 Nov 2014 02:11:36 +0000 (04:11 +0200)]
Fixes: debbugs:18579
* lisp/vc/vc-hg.el (vc-hg-dir-status-files): Include ignored files.

9 years agoFixes: debbugs:18579
Dmitry Gutov [Mon, 24 Nov 2014 01:44:42 +0000 (03:44 +0200)]
Fixes: debbugs:18579
* lisp/vc/vc-bzr.el (vc-bzr-after-dir-status): Don't skip ignored
files.

9 years ago* textmodes/makeinfo.el (makeinfo-buffer): Make it work also for
Michael Albinus [Sun, 23 Nov 2014 10:49:31 +0000 (11:49 +0100)]
* textmodes/makeinfo.el (makeinfo-buffer): Make it work also for
remote `buffer-file-name'.

9 years agoFix calendar-mark-1
Leo Liu [Sun, 23 Nov 2014 07:51:24 +0000 (15:51 +0800)]
Fix calendar-mark-1

* calendar/diary-lib.el (calendar-mark-1): Fix thinko.

9 years agoAdd git commit hooks that do some simple checks on commits.
Paul Eggert [Sat, 22 Nov 2014 23:46:17 +0000 (15:46 -0800)]
Add git commit hooks that do some simple checks on commits.

* autogen.sh: Install Git hooks, if using Git.
* build-aux/git-hooks/commit-msg, build-aux/git-hooks/pre-commit:
New files, which are Git hooks that check for portable file names, and
do some simple checks for commit message format.

9 years agoSet PYTHONUNBUFFERED on shell startup.
Fabián Ezequiel Gallina [Sat, 22 Nov 2014 23:09:30 +0000 (20:09 -0300)]
Set PYTHONUNBUFFERED on shell startup.

Fixes: debbugs:18595
* lisp/progmodes/python.el (python-shell-unbuffered): New var.
(python-shell-calculate-process-environment): Use it.

* test/automated/python-tests.el
(python-shell-calculate-process-environment-4)
(python-shell-calculate-process-environment-5): New tests.
(python-shell-make-comint-3): Use file-equal-p.
(python-shell-get-or-create-process-1)
(python-shell-get-or-create-process-2)
(python-shell-get-or-create-process-3): Fix interpreter for
Windows.

9 years agoFixes: debbugs:19047
Michael Albinus [Sat, 22 Nov 2014 16:04:47 +0000 (17:04 +0100)]
Fixes: debbugs:19047
* net/tramp.el (tramp-action-password): Clean password on subsequent
attempts even if there was no wrong password indication.

9 years ago* net/tramp-sh.el (tramp-get-remote-locale): Return "LC_ALL=C" as
Michael Albinus [Sat, 22 Nov 2014 09:30:36 +0000 (10:30 +0100)]
* net/tramp-sh.el (tramp-get-remote-locale): Return "LC_ALL=C" as
fallback.
(tramp-open-connection-setup-interactive-shell): No need to check
for nil as `tramp-get-remote-locale' return value.

9 years agoAdd more of the old .bzrignore to .gitignore.
Paul Eggert [Fri, 21 Nov 2014 17:11:25 +0000 (09:11 -0800)]
Add more of the old .bzrignore to .gitignore.

Plus a few more .gitignore improvements.
* .gitignore: Add copyright notice, since it's big enough.
Put exceptions immediately after the patterns they're exceptions
to, to make them easier to follow.
Give four exceptions for the Makefile pattern.
Ignore /confdefs.h, test/indent/*.new, TAGS, GPATH, GSYMS, GRTAGS,
GTAGS, ID, *.exe, some nextstep-related files,
jisx2131-filter, *.orig, *.rej, etc/emacs.tmpdesktop, *.in-h
_* (except for build-aux/snippet/_Noreturn.h), /bin/, /BIN/,
/data/, etc/icons/, lib/cxxdefs.h, lib/SYS/, /libexec/, /lock/,
/README.W32, /share/, /site-lisp/, src/gdb.ini, /var/.
Ignore /configure.lineno, since POSIX requires
LINENO only with the User Portability Utilities option.
Ignore *cust-load.el and *loaddefs.el only under lisp.
Ignore core files of various flavors.
Do not ignore etc/refcards/gnus-logo.pdf.

9 years agoUse "~1" instead of "^" in vc-git.el to specify the parent of a Git commit.
Eli Zaretskii [Fri, 21 Nov 2014 10:34:59 +0000 (12:34 +0200)]
Use "~1" instead of "^" in vc-git.el to specify the parent of a Git commit.

 lisp/vc/vc-git.el (vc-git-previous-revision): Use "~1" instead of
 "^", since the latter is a special character for MS-Windows system
 shells.

9 years agoUse correct encoding to communicate with Git.
Eli Zaretskii [Fri, 21 Nov 2014 10:26:35 +0000 (12:26 +0200)]
Use correct encoding to communicate with Git.

 lisp/vc/vc-git.el (vc-git-command, vc-git--call): Bind
 coding-system-for-read and coding-system-for-write to
 vc-git-commits-coding-system.

9 years agoAdd src/_gdbinit to .gitignore.
Eli Zaretskii [Fri, 21 Nov 2014 08:56:15 +0000 (10:56 +0200)]
Add src/_gdbinit to .gitignore.

 .gitignore: Add back src/_gdbinit, which is a temporary file
 created by the MS-DOS build.

9 years agoAdd a.out to .gitignore.
Paul Eggert [Thu, 20 Nov 2014 20:40:41 +0000 (12:40 -0800)]
Add a.out to .gitignore.

Suggested by Lee Duhem in:
http://lists.gnu.org/archive/html/emacs-devel/2014-11/msg01665.html
* .gitignore: Add a.out.
Move *.log next to *.tmp, since it's generic.
Put *.exe before non-generics.

9 years agoFix typo in ChangeLog.
Michael Albinus [Thu, 20 Nov 2014 19:17:35 +0000 (20:17 +0100)]
Fix typo in ChangeLog.

9 years agoImprove XEmacs compatibility.
Michael Albinus [Thu, 20 Nov 2014 19:10:15 +0000 (20:10 +0100)]
Improve XEmacs compatibility.

* net/tramp.el (tramp-autoload-file-name-handler):
Wrap `temporary-file-directory' by `symbol-value', it doesn't exist in XEmacs.
(tramp-read-passwd): Don't use `with-timeout-suspend' and
`with-timeout-unsuspend' if they don't exist, like in XEmacs.
(tramp-time-less-p, tramp-time-subtract): Remove functions.
(tramp-handle-file-newer-than-file-p, tramp-time-diff):
* net/ttramp-adb.el (tramp-adb-ls-output-time-less-p):
* net/ttramp-cache.el (tramp-get-file-property):
* net/ttramp-smb.el (tramp-smb-handle-insert-directory):
Use `time-less-p' and `time-subtract, respectively.

9 years agoLessen focus on ChangeLog files, as opposed to change log entries.
Paul Eggert [Wed, 19 Nov 2014 19:29:40 +0000 (11:29 -0800)]
Lessen focus on ChangeLog files, as opposed to change log entries.

This is in preparation for generating the former automatically
from the latter.
* admin/notes/bugtracker, admin/notes/copyright, admin/notes/newfile:
ChangeLog -> change log
* admin/notes/changelogs: Remove, merging old contents to ...
* admin/notes/repo: ... here.
* doc/emacs/maintaining.texi (Change Log): Mention that ChangeLog files may
be copied to or from a version control system.
* doc/emacs/trouble.texi (Sending Patches): Point to the commit messages.
* doc/lispref/intro.texi (Acknowledgments): ChangeLog file -> change log entries.
* doc/lispref/tips.texi (Library Headers): Emacs uses a version control system.
* etc/CONTRIBUTE: Give advice about git commit messages and how
to generate proposed patches containing them.

9 years ago.gitignore: Resurrect Windows-specific ignorables lost in last changes.
Eli Zaretskii [Wed, 19 Nov 2014 19:13:34 +0000 (21:13 +0200)]
.gitignore: Resurrect Windows-specific ignorables lost in last changes.

9 years agoFix VC documentation related to switching branches.
Eli Zaretskii [Wed, 19 Nov 2014 18:33:17 +0000 (20:33 +0200)]
Fix VC documentation related to switching branches.

 lisp/vc/vc.el (vc-retrieve-tag): Doc fix.

 doc/emacs/maintaining.texi (Switching Branches): Mention "C-x v r".
 Correct commands for switching branches in various VCSs.

9 years ago* .gitignore: Add /emacs-[1-9]*/, and sort better.
Paul Eggert [Wed, 19 Nov 2014 18:30:30 +0000 (10:30 -0800)]
* .gitignore: Add /emacs-[1-9]*/, and sort better.

9 years ago* .gitignore: Add some nextstep/mac ignorables.
Ivan Andrus [Sat, 15 Nov 2014 06:41:09 +0000 (23:41 -0700)]
* .gitignore: Add some nextstep/mac ignorables.

9 years ago.gitignore cleanup.
Paul Eggert [Tue, 18 Nov 2014 01:56:49 +0000 (17:56 -0800)]
.gitignore cleanup.

* .gitignore: Merge contents of subsidiary files and organize the
result so as to avoid duplication.  Remove no-longer needed entries.
* admin/charsets/.gitignore, admin/unidata/.gitignore:
* doc/lispintro/.gitignore, etc/.gitignore, leim/.gitignore:
* leim/ja-dic/.gitignore, lib-src/.gitignore, lisp/.gitignore:
* lisp/calc/.gitignore, lisp/calendar/.gitignore:
* lisp/cedet/.gitignore, lisp/emulation/.gitignore:
* lisp/erc/.gitignore, lisp/eshell/.gitignore, lisp/gnus/.gitignore:
* lisp/international/.gitignore, lisp/language/.gitignore:
* lisp/leim/.gitignore, lisp/leim/quail/.gitignore:
* lisp/mail/.gitignore, lisp/mh-e/.gitignore, lisp/net/.gitignore:
* lisp/nxml/.gitignore, lisp/obsolete/.gitignore:
* lisp/play/.gitignore, lisp/progmodes/.gitignore:
* lisp/term/.gitignore, lisp/textmodes/.gitignore:
* lisp/url/.gitignore, nt/.gitignore, src/.gitignore:
Remove; no longer needed.

9 years agoDefine MINGW_W64 and use it instead of _W64
Oscar Fuentes [Mon, 17 Nov 2014 22:06:13 +0000 (23:06 +0100)]
Define MINGW_W64 and use it instead of _W64

... for detecting MinGW-w64. _W64 is not specific of MinGW-w64, it is
defined for compatibility with MS VC++.

* nt/inc/ms-w32.h: Define MINGW_W64.

* admin/CPP-DEFINES: Mention MINGW_W64.

* nt/addpm.c: Use it.

* nt/addsection.c: Use it.

* nt/preprep.c: Use it.

* src/w32.c: Use MINGW_W64 instead of _W64

* src/w32term.c: Likewise.

9 years agoDon't assume "bzr log" uses --long format by default.
Eli Zaretskii [Mon, 17 Nov 2014 17:36:29 +0000 (19:36 +0200)]
Don't assume "bzr log" uses --long format by default.

 lisp/vc/vc-bzr.el (vc-bzr-print-log, vc-bzr-expanded-log-entry):
 Don't assume --long is the default for "bzr log", always specify
 it explicitly, in case the user defined an alias for 'log' that
 uses some other format.

9 years agoRestore 'Bug#' -> 'debbugs:' rewrite in log-edit-mode.
Paul Eggert [Mon, 17 Nov 2014 03:43:26 +0000 (19:43 -0800)]
Restore 'Bug#' -> 'debbugs:' rewrite in log-edit-mode.

* .dir-locals.el (log-edit-mode): Restore the (log-edit-rewrite-fixes
"[ \n](bug#\\([0-9]+\\))" . "debbugs:\\1").  See Glenn Morris in:
http://lists.gnu.org/archive/html/emacs-devel/2014-11/msg01187.html

9 years agoSimplify and fix doc-related .gitignore files.
Paul Eggert [Mon, 17 Nov 2014 01:19:05 +0000 (17:19 -0800)]
Simplify and fix doc-related .gitignore files.

This fixes some unwanted 'git status' output after 'make docs'.
* .gitignore: Add **/Makefile, **/makefile.
Remove Makefile, makefile.
Add doc/*/*.xxx rules for the usual kinds of documentation outputs
and temporaries.  Add doc/misc/cc-mode.ss.
* doc/emacs/.gitignore, doc/lispref/.gitignore, doc/misc/.gitignore:
* lwlib/.gitignore, oldXMenu/.gitignore:
Remove, as these .gitignore files are no longer needed.
* doc/lispintro/.gitignore: Replace with list of exceptional PDF files.

9 years agoPrevent resizing the echo area when iPython is enabled
Fabián Ezequiel Gallina [Sun, 16 Nov 2014 14:11:49 +0000 (11:11 -0300)]
Prevent resizing the echo area when iPython is enabled

Fixes: debbugs:18794
* lisp/progmodes/python.el (python-eldoc--get-doc-at-point): Strip
shell output before returning.

9 years agoFix indentation before `!=' and after `+='
Dmitry Gutov [Sun, 16 Nov 2014 12:19:16 +0000 (14:19 +0200)]
Fix indentation before `!=' and after `+='

Originally reported in https://github.com/mooz/js2-mode/issues/174.
* lisp/progmodes/js.el (js--indent-operator-re): Make assignments and
(in)equality operator a separate case.
(js--continued-expression-p): Escape the second `+' in the regexp.

9 years agoFix DocView slicing docs
Tassilo Horn [Sun, 16 Nov 2014 08:39:01 +0000 (09:39 +0100)]
Fix DocView slicing docs

* doc/emacs/misc.texi (DocView Slicing): Describe how to slice with the
mouse.  Fix command mentioned by slice by BoundingBox paragraph.
(Bug#18040)

9 years ago* src/frame.c (Fhandle_switch_frame): Deactivate shift-region (bug#19003).
Stefan Monnier [Sun, 16 Nov 2014 05:30:12 +0000 (00:30 -0500)]
* src/frame.c (Fhandle_switch_frame): Deactivate shift-region (bug#19003).
* lisp/window.el (handle-select-window): Deactivate shift-region.

9 years agoDon't ignore .gitattributes
Andreas Schwab [Sat, 15 Nov 2014 23:49:38 +0000 (00:49 +0100)]
Don't ignore .gitattributes

Local attributes belong to .git/info/attributes.

9 years agoUse git rev-parse to get repository version
Andreas Schwab [Sat, 15 Nov 2014 22:48:47 +0000 (23:48 +0100)]
Use git rev-parse to get repository version

* version.el (emacs-repository-get-version): Use git rev-parse
instead of git log.

9 years agoBackport 2014-06-30 admin/update_autogen change
Glenn Morris [Sat, 15 Nov 2014 23:16:28 +0000 (18:16 -0500)]
Backport 2014-06-30 admin/update_autogen change

* admin/update_autogen: Auto-detect VCS in use.
(vcs): New variable.
(status, commit, main): Handle git.

9 years agoFixes: debbugs:18432
Fabián Ezequiel Gallina [Sat, 15 Nov 2014 22:02:52 +0000 (19:02 -0300)]
Fixes: debbugs:18432
* lisp/progmodes/python.el (python-indent-calculate-levels): Fix
indentation behavior multiline dedenter statement.

* test/automated/python-tests.el (python-indent-dedenters-8): New test
for Bug#18432.

9 years agoIgnore generated file lib/stdalign.h.
Christoph Scholtes [Sat, 15 Nov 2014 21:11:06 +0000 (14:11 -0700)]
Ignore generated file lib/stdalign.h.

9 years agoFix region indentation
Fabián Ezequiel Gallina [Sat, 15 Nov 2014 21:10:58 +0000 (18:10 -0300)]
Fix region indentation

Fixes: debbugs:18843
* lisp/progmodes/python.el (python-indent-region): Use
python-indent-line and skip special cases.

* test/automated/python-tests.el (python-indent-region-1)
(python-indent-region-2, python-indent-region-3)
(python-indent-region-4, python-indent-region-5): New tests.