]> code.delx.au - gnu-emacs/log
gnu-emacs
9 years agoFix a typo in the Emacs manual's Hungry Delete description.
Eli Zaretskii [Sat, 31 Jan 2015 15:50:36 +0000 (17:50 +0200)]
Fix a typo in the Emacs manual's Hungry Delete description.

 doc/emacs/programs.texi (Hungry Delete): Fix a typo: "C-d" instead of
 "C-c C-d" in hungry-delete mode.

9 years agosrc/dispextern.h (FACE_FOR_CHAR): Fix the commentary.
Eli Zaretskii [Fri, 30 Jan 2015 11:47:47 +0000 (13:47 +0200)]
src/dispextern.h (FACE_FOR_CHAR): Fix the commentary.

9 years agoSpelling fixes
Paul Eggert [Fri, 30 Jan 2015 03:45:04 +0000 (19:45 -0800)]
Spelling fixes

9 years agopython.el: Handle tabs in python-indent-dedent-line.
Fabián Ezequiel Gallina [Fri, 30 Jan 2015 03:41:52 +0000 (00:41 -0300)]
python.el: Handle tabs in python-indent-dedent-line.

Fixes: debbugs:19730
* lisp/progmodes/python.el (python-indent-dedent-line): Fixes for
indentation with tabs.  Thanks to <dale@codefu.org>.

* test/automated/python-tests.el
(python-indent-dedent-line-backspace-2)
(python-indent-dedent-line-backspace-3): New tests.

9 years ago* lisp/progmodes/python.el (python-indent-context): Respect user
Fabián Ezequiel Gallina [Fri, 30 Jan 2015 03:19:55 +0000 (00:19 -0300)]
* lisp/progmodes/python.el (python-indent-context): Respect user
indentation after comment.

* test/automated/python-tests.el (python-indent-pep8-1)
(python-indent-pep8-2, python-indent-pep8-3)
(python-indent-after-comment-2): Fix tests.
(python-indent-after-comment-3): New test.

9 years agoAvoid compiler warnings in decode_env_path.
Hans Wennborg [Thu, 29 Jan 2015 19:31:14 +0000 (21:31 +0200)]
Avoid compiler warnings in decode_env_path.

 src/emacs.c (decode_env_path): Add parentheses around ternary
 operator to increase readability and pacify compiler warnings.

9 years agoFix XEmacs version typo in comment and ChangeLog
Tassilo Horn [Thu, 29 Jan 2015 19:28:16 +0000 (20:28 +0100)]
Fix XEmacs version typo in comment and ChangeLog

9 years agoImprove solution of bug #19701
Eli Zaretskii [Thu, 29 Jan 2015 18:43:08 +0000 (20:43 +0200)]
Improve solution of bug #19701

 src/w32.c (sys_readdir): Map ERROR_NOT_READY (as in "device not ready")
 to ENOENT.

9 years agoFix refilling of list of language environments in User Manual (Bug#19697)
Eli Zaretskii [Thu, 29 Jan 2015 16:51:24 +0000 (18:51 +0200)]
Fix refilling of list of language environments in User Manual  (Bug#19697)

 doc/emacs/mule.texi (Language Environments): Work around refill bug in
 makeinfo 4.x.

9 years agoRestore XEmacs compatibility
Tassilo Horn [Thu, 29 Jan 2015 14:51:40 +0000 (15:51 +0100)]
Restore XEmacs compatibility

* textmodes/reftex-vars.el (featurep): Conditionalize value of
reftex-label-regexps in order to stay compatible with XEmacs 25
which has no explicitly numbered groups in regexps (bug#19714).

9 years agoMerge remote-tracking branch 'origin/emacs-24' into emacs-24
Katsumi Yamaoka [Thu, 29 Jan 2015 02:29:55 +0000 (02:29 +0000)]
Merge remote-tracking branch 'origin/emacs-24' into emacs-24

9 years ago[Backport] lisp/gnus/message.el (message-smtpmail-send-it): Make non-standard mail...
Lars Magne Ingebrigtsen [Thu, 29 Jan 2015 02:28:18 +0000 (02:28 +0000)]
[Backport] lisp/gnus/message.el (message-smtpmail-send-it): Make non-standard mail header separators work with smtpmail

9 years ago[Backport] lisp/gnus/message.el (message-smtpmail-send-it): Make non-standard mail...
Lars Magne Ingebrigtsen [Thu, 29 Jan 2015 02:22:34 +0000 (02:22 +0000)]
[Backport] lisp/gnus/message.el (message-smtpmail-send-it): Make non-standard mail header separators work with smtpmail

9 years agolisp/gnus/nimap.el (nnimap-find-expired-articles): nnimap `never' expiration fix
Elias Oltmanns [Thu, 29 Jan 2015 01:41:44 +0000 (01:41 +0000)]
lisp/gnus/nimap.el (nnimap-find-expired-articles): nnimap `never' expiration fix

9 years ago[Backport] lisp/gnus/nnimap.el (nnimap-find-expired-articles): nnimap `never' expirat...
Elias Oltmanns [Thu, 29 Jan 2015 01:20:00 +0000 (01:20 +0000)]
[Backport] lisp/gnus/nnimap.el (nnimap-find-expired-articles): nnimap `never' expiration fix

9 years agoImprove the fix for bug #19701
Eli Zaretskii [Wed, 28 Jan 2015 17:42:28 +0000 (19:42 +0200)]
Improve the fix for bug #19701

 src/dired.c (directory_files_internal, file_name_completion)
 [WINDOWSNT]: Signal an error when errno is set non-zero by
 'readdir', regardless of its value.
 src/w32.c (sys_readdir): Set errno to ENOENT when the directory
 doesn't exist and to EACCES when it's not accessible to the
 current user.  Set errno to zero when FindNextFile exhausts the
 directory, so that callers don't interpret that as an error and
 don't signal a file-error.
 (open_unc_volume): Set errno to ENOENT if WNetOpenEnum fails.

9 years agoFix issues with BibTeX entries containing ")".
Tassilo Horn [Wed, 28 Jan 2015 09:32:50 +0000 (10:32 +0100)]
Fix issues with BibTeX entries containing ")".

* textmodes/reftex.el (reftex-syntax-table-for-bib): Give ( and )
punctuation syntax since to allow bibtex fields with values such
as {Test 1) and 2)} (bug#19205, bug#19707).
(reftex--prepare-syntax-tables): New function.
(reftex-mode): Use it.

[backport from trunk]

9 years agoSignal a file-error from directory-files on MS-Windows (Bug#19701)
Eli Zaretskii [Tue, 27 Jan 2015 19:02:13 +0000 (21:02 +0200)]
Signal a file-error from directory-files on MS-Windows  (Bug#19701)

 src/dired.c (directory_files_internal) [WINDOWSNT]: If readdir
 returns NULL and errno is ENOTDIR, behave as if opendir failed to
 open the directory.
 src/w32.c (sys_readdir): If FindFirstFile fails because the
 directory doesn't exist, set errno to ENOTDIR.

9 years agoAdded missing test for previous commit
Fabián Ezequiel Gallina [Tue, 27 Jan 2015 03:35:07 +0000 (00:35 -0300)]
Added missing test for previous commit

9 years agopython.el: New non-global state dependent indentation engine.
Fabián Ezequiel Gallina [Tue, 27 Jan 2015 03:17:24 +0000 (00:17 -0300)]
python.el: New non-global state dependent indentation engine.

Fixes: debbugs:18319
Fixes: debbugs:19595
* lisp/progmodes/python.el (python-syntax-comment-or-string-p): Accept
PPSS as argument.
(python-syntax-closing-paren-p): New function.
(python-indent-current-level)
(python-indent-levels): Mark obsolete.
(python-indent-context): Return more context cases.
(python-indent--calculate-indentation)
(python-indent--calculate-levels): New functions.
(python-indent-calculate-levels): Use them.
(python-indent-calculate-indentation, python-indent-line):
(python-indent-line-function): Rewritten to use new API.
(python-indent-dedent-line): Simplify logic.
(python-indent-dedent-line-backspace): Use `unless`.
(python-indent-toggle-levels): Delete function.

* test/automated/python-tests.el (python-indent-pep8-1)
(python-indent-pep8-2, python-indent-pep8-3)
(python-indent-after-comment-1, python-indent-after-comment-2)
(python-indent-inside-paren-1, python-indent-inside-paren-2)
(python-indent-after-block-1, python-indent-after-block-2)
(python-indent-after-backslash-1, python-indent-after-backslash-2)
(python-indent-after-backslash-3, python-indent-block-enders-1)
(python-indent-block-enders-2, python-indent-block-enders-3)
(python-indent-block-enders-4, python-indent-block-enders-5)
(python-indent-dedenters-1, python-indent-dedenters-2)
(python-indent-dedenters-3, python-indent-dedenters-4)
(python-indent-dedenters-5, python-indent-dedenters-6)
(python-indent-dedenters-7, python-indent-dedenters-8): Fix tests.
(python-indent-base-case, python-indent-after-block-3)
(python-indent-after-backslash-5, python-indent-inside-paren-3)
(python-indent-inside-paren-4, python-indent-inside-paren-5)
(python-indent-inside-paren-6, python-indent-inside-string-1)
(python-indent-inside-string-2, python-indent-inside-string-3)
(python-indent-dedent-line-backspace-1): New Tests.

9 years agoFix the description of --insert command-line option (Bug#19694)
Eli Zaretskii [Mon, 26 Jan 2015 17:41:38 +0000 (19:41 +0200)]
Fix the description of --insert command-line option  (Bug#19694)

 doc/emacs/cmdargs.texi (Action Arguments): Clarify into which buffer
 '--insert' inserts.

9 years agoAdd a cross-reference in ELisp manual. (Bug#19668)
Eli Zaretskii [Sat, 24 Jan 2015 10:09:02 +0000 (12:09 +0200)]
Add a cross-reference in ELisp manual.  (Bug#19668)

 doc/lispref/searching.texi (Regexp Search): Add a cross-reference to "Syntax
 of Regexps".

9 years agoFixes: debbugs:19660
Jan D [Sat, 24 Jan 2015 09:57:21 +0000 (10:57 +0100)]
Fixes: debbugs:19660
* nsterm.m (drawRect:): Add block/unblock_input.

9 years ago* test/automated/regexp-tests.el: Require regexp-opt
Glenn Morris [Sat, 24 Jan 2015 00:52:07 +0000 (19:52 -0500)]
* test/automated/regexp-tests.el: Require regexp-opt

9 years agoBackport: Fix package tests when TMPDIR is in HOME
Dmitry Gutov [Fri, 23 Jan 2015 00:50:15 +0000 (02:50 +0200)]
Backport: Fix package tests when TMPDIR is in HOME

Fixes: debbugs:19657
* test/automated/package-test.el (with-package-test):
Bind `abbreviated-home-dir' to nil.
(package-test-describe-package, package-test-signed):
Expect abbreviated directory names.

(cherry picked from commit f02406c74a0a91b29073101912a4b80736a69581)

9 years agoBackport: Handle the `neg' operator in some calc-units functions.
Wolfgang Jenkner [Thu, 22 Jan 2015 02:25:01 +0000 (03:25 +0100)]
Backport: Handle the `neg' operator in some calc-units functions.

* lisp/calc/calc-units.el (math-units-in-expr-p)
(math-single-units-in-expr-p, math-find-compatible-unit-rec)
(math-extract-units): Handle the `neg' operator.  (Bug#19582)
* test/automated/calc-tests.el (calc-tests-equal, calc-tests-simple):
New functions.
(test-calc-remove-units, test-calc-extract-units)
(test-calc-convert-units): New tests.

9 years agodoc/emacs/programs.texi (Custom C Indent): Fix a typo. (Bug#19647)
Eli Zaretskii [Wed, 21 Jan 2015 16:16:09 +0000 (18:16 +0200)]
doc/emacs/programs.texi (Custom C Indent): Fix a typo.  (Bug#19647)

9 years agoFix coding.c subscript error
Paul Eggert [Wed, 21 Jan 2015 08:29:02 +0000 (00:29 -0800)]
Fix coding.c subscript error

* coding.c (CODING_ISO_INVOKED_CHARSET):
Avoid undefined behavior if CODING_ISO_INVOCATION returns negative.

9 years agoPrevent artist-mode from creating runaway timers (Bug#6130).
Daniel Koning [Wed, 21 Jan 2015 08:01:30 +0000 (09:01 +0100)]
Prevent artist-mode from creating runaway timers (Bug#6130).

* subr.el (posnp): Correct docstring of `posnp'.
(posn-col-row): Make it work with all mouse position objects.
* textmodes/artist.el (artist-mouse-draw-continously): Cancel
timers if an error occurs during continuous drawing.  (Bug#6130)

* commands.texi (Drag Events, Motion Events, Event Examples)
(Accessing Mouse): Describe actual range of values that mouse
position objects can have.

9 years agoBackport: correct old fix for GTK font selection
Paul Eggert [Wed, 21 Jan 2015 06:05:31 +0000 (22:05 -0800)]
Backport: correct old fix for GTK font selection

* gtkutil.c (xg_get_font): Fix off-by-2 typo.
Fixes: bug#3228
9 years agoBackport from trunk of bug 19531.
Jan D [Wed, 21 Jan 2015 05:18:59 +0000 (06:18 +0100)]
Backport from trunk of bug 19531.

Fixes: debbugs:19531
* nsterm.m (EV_TRAILER2): Set Vinhibit_quit to Qt.

9 years agoImprove documentation of buttons (Bug#19628)
Eli Zaretskii [Tue, 20 Jan 2015 19:20:39 +0000 (21:20 +0200)]
Improve documentation of buttons  (Bug#19628)

 doc/lispref/display.texi (Manipulating Buttons): Explain more about the
 'action' property.

9 years agodoc/lispref/text.texi (Clickable Text): Improve indexing. (Bug#19629)
Eli Zaretskii [Tue, 20 Jan 2015 18:22:20 +0000 (20:22 +0200)]
doc/lispref/text.texi (Clickable Text): Improve indexing.  (Bug#19629)

9 years agolisp/button.el (button-activate, push-button): Doc fix. (Bug#19628)
Eli Zaretskii [Tue, 20 Jan 2015 18:15:20 +0000 (20:15 +0200)]
lisp/button.el (button-activate, push-button): Doc fix.  (Bug#19628)

9 years agoDisallow w32 builds --without-toolkit-scroll-bars.
Eli Zaretskii [Tue, 20 Jan 2015 16:26:28 +0000 (18:26 +0200)]
Disallow w32 builds --without-toolkit-scroll-bars.

 configure.ac (HAVE_W32): Abort with error message if
 --without-toolkit-scroll-bars was specified.  See
 http://lists.gnu.org/archive/html/emacs-devel/2015-01/msg00525.html
 for the details.

9 years agoFix display of images in R2L screen lines
Eli Zaretskii [Sat, 17 Jan 2015 18:32:16 +0000 (20:32 +0200)]
Fix display of images in R2L screen lines

 src/xdisp.c (produce_image_glyph): Fix display of images in R2L
 screen lines: prepend the new glyph to the ones already there
 instead of appending it.

9 years agoUse u+05f4 in TUTORIAL.he.
Eli Zaretskii [Sat, 17 Jan 2015 13:06:55 +0000 (15:06 +0200)]
Use u+05f4 in TUTORIAL.he.

 etc/tutorials/TUTORIAL.he: Use u+05f4 HEBREW PUNCTUATION GERSHAYIM
 instead of u+0022 QUOTATION MARK in Hebrew acronyms.

9 years agoBackport: Parse pcomplete arguments regardless of pcomplete-cycle-completions
Samer Masterson [Fri, 16 Jan 2015 02:35:51 +0000 (05:35 +0300)]
Backport: Parse pcomplete arguments regardless of pcomplete-cycle-completions

* pcomplete.el (pcomplete-parse-arguments): Parse arguments regardless
of pcomplete-cycle-completions's value.

Fixes: debbugs:18950
(cherry picked from commit dfa8729c1086d6461de846aad47f2a0aba732176)

9 years agodoc/lispref/variables.texi (Creating Buffer-Local): Improve indexing (Bug#19608)
Eli Zaretskii [Thu, 15 Jan 2015 17:31:49 +0000 (19:31 +0200)]
doc/lispref/variables.texi (Creating Buffer-Local): Improve indexing (Bug#19608)

9 years agoerc-backend.el: Give hook-name a default value of nil and add-to-list unconditionally...
Dima Kogan [Wed, 14 Jan 2015 21:47:01 +0000 (16:47 -0500)]
erc-backend.el: Give hook-name a default value of nil and add-to-list unconditionally. Fixes debbugs:19363

9 years agoFix support of non-ASCII frame titles on MS-Windows (Bug#19590)
Eli Zaretskii [Wed, 14 Jan 2015 18:14:02 +0000 (20:14 +0200)]
Fix support of non-ASCII frame titles on MS-Windows  (Bug#19590)

 src/w32fns.c (w32_set_title_bar_text): New function, including
 support for titles with non-ASCII characters outside of the
 current system codepage.
 (x_set_name, x_set_title): Use it.

9 years ago* filenotify.el (file-notify--descriptor): Do not cons for remote files.
Michael Albinus [Tue, 13 Jan 2015 14:58:50 +0000 (15:58 +0100)]
* filenotify.el (file-notify--descriptor): Do not cons for remote files.

9 years agoHandle watching of several files in the same directory for inotify.
Michael Albinus [Tue, 13 Jan 2015 10:26:39 +0000 (11:26 +0100)]
Handle watching of several files in the same directory for inotify.

Fixes: debbugs:18880
* filenotify.el (file-notify-descriptors, file-notify-handle-event):
Adapt docstring.
(file-notify--descriptor): New defun.
(file-notify-callback, file-notify-add-watch, file-notify-rm-watch):
Adapt docstring.  Handle multiple values for
`file-notify-descriptors' entries.

* net/tramp.el (tramp-handle-file-notify-rm-watch): Do not check
`file-notify-descriptors', the implementation has been changed.

9 years agoMore fixes to support multi-line search in comint
Juri Linkov [Mon, 29 Dec 2014 00:52:38 +0000 (02:52 +0200)]
More fixes to support multi-line search in comint

* lisp/comint.el (comint-history-isearch-message): Use field-beginning
instead of comint-line-beginning-position - that's more fixes for
http://lists.gnu.org/archive/html/emacs-devel/2014-12/msg00305.html
(comint-history-isearch-message): Fix args of isearch-message-prefix.

[backport from trunk]

9 years agoBetter support for multi-line shell input.
Juri Linkov [Fri, 5 Dec 2014 23:55:20 +0000 (01:55 +0200)]
Better support for multi-line shell input.

* lisp/comint.el (comint-history-isearch-search)
(comint-history-isearch-wrap): Use field-beginning instead of
comint-line-beginning-position.
(comint-send-input): Go to the end of the field instead of the end
of the line to accept whole multi-line input.
http://lists.gnu.org/archive/html/emacs-devel/2014-12/msg00305.html

[backport from trunk]

9 years agoFix return value of vertical-motion at ZV (Bug#19553)
Eli Zaretskii [Sat, 10 Jan 2015 13:03:51 +0000 (15:03 +0200)]
Fix return value of vertical-motion at ZV  (Bug#19553)

 src/indent.c (Fvertical_motion): Return zero if we started from ZV
 and there's an overlay after-string there.

9 years agoFix encoding of I/O in net-utils.el for MS-Windows. (Bug#19458)
Eli Zaretskii [Fri, 9 Jan 2015 09:50:21 +0000 (11:50 +0200)]
Fix encoding of I/O in net-utils.el for MS-Windows.  (Bug#19458)

 lisp/net/net-utils.el (net-utils-run-program, net-utils-run-simple):
 On MS-Windows, bind coding-system-for-read to the console output
 codepage.

9 years agoFix the description of -nl in --help text. (Bug#19542)
Eli Zaretskii [Fri, 9 Jan 2015 09:13:33 +0000 (11:13 +0200)]
Fix the description of -nl in --help text.  (Bug#19542)

 src/emacs.c (usage_message): Fix the description of the -nl switch.

9 years agoFix line-move-visual's following of column in R2L lines (backport from trunk).
Eli Zaretskii [Thu, 8 Jan 2015 14:04:46 +0000 (16:04 +0200)]
Fix line-move-visual's following of column in R2L lines (backport from trunk).

 src/simple.el (line-move-visual): When converting X pixel coordinate
 to temporary-goal-column, adjust the value for right-to-left
 screen lines.  This fixes vertical-motion, next/prev-line, etc.

 src/dispnew.c (buffer_posn_from_coords): Fix the value of the column
 returned for right-to-left screen lines.  (Before the change on
 2014-12-30, the incorrectly-computed X pixel coordinate concealed
 this bug.)

(cherry picked from commit 5fbd17e369ca30a47ab8a2eda0b2f2ea9b690bb4)

Conflicts:
lisp/simple.el

9 years agoFixes: debbugs:18756
Glenn Morris [Tue, 6 Jan 2015 18:52:15 +0000 (13:52 -0500)]
Fixes: debbugs:18756
sh-basic-indent-line fix

* lisp/progmodes/sh-script.el (sh-mode): Doc fix.
(sh-basic-indent-line): Handle electric newline.

9 years agoBackport: Add an extra column for Version in list-packages table
Steve Purcell [Sun, 14 Dec 2014 13:56:22 +0000 (15:56 +0200)]
Backport: Add an extra column for Version in list-packages table

* emacs-lisp/package.el (package-menu-mode): Use an extra column for
the "Version" column, to accomodate date-and-time-based versions.

(cherry picked from commit eaf25ad549dc5a9b26089f588e0a80268708a3d1)

9 years agoFix assertion violations in try_window_id (Bug#19511)
Eli Zaretskii [Mon, 5 Jan 2015 15:42:55 +0000 (17:42 +0200)]
Fix assertion violations in try_window_id (Bug#19511)

 src/xdisp.c (move_it_to, try_cursor_movement): Don't use the window
 end information if the window_end_valid flag is unset.
 (try_window_id): If the call to display_line invalidated the
 window end information, give up the try_window_id optimization.

9 years agoFix dired quoting bug with "Hit`N`Hide"
Paul Eggert [Sun, 4 Jan 2015 21:45:07 +0000 (13:45 -0800)]
Fix dired quoting bug with "Hit`N`Hide"

Fixes Bug#19498.
* files.el (shell-quote-wildcard-pattern): Also quote "`".

9 years agoMore doc fixes for bug#19502 -- make documentation less X-specific.
Eli Zaretskii [Sun, 4 Jan 2015 18:30:16 +0000 (20:30 +0200)]
More doc fixes for bug#19502 -- make documentation less X-specific.

 doc/lispref/frames.texi (Display Feature Testing): Make the description of
 x-server-version and x-server-vendor less X-specific.

 Make doc strings on X and w32 identical.
 src/w32fns.c (Fx_server_version, Fx_server_vendor): Doc fix.
 src/xfns.c (Fx_server_version, Fx_server_vendor): Doc fix.

9 years agosrc/emacs.c (syms_of_emacs) <system-configuration>: Doc fix. (Bug#19502)
Eli Zaretskii [Sun, 4 Jan 2015 15:51:35 +0000 (17:51 +0200)]
src/emacs.c (syms_of_emacs) <system-configuration>: Doc fix.  (Bug#19502)

9 years agoBackport: Unbreak `mouse-action' property in text buttons
Dmitry Gutov [Sun, 4 Jan 2015 00:24:53 +0000 (03:24 +0300)]
Backport: Unbreak `mouse-action' property in text buttons

* lisp/button.el (push-button): Fix regression from 2012-12-06.

(cherry picked from commit d94007484ab6b98054b043c1bedeaf7a58eb8606)

9 years ago* admin/update_autogen (commit): Prepend "# " to commit message.
Glenn Morris [Sat, 3 Jan 2015 01:30:52 +0000 (17:30 -0800)]
* admin/update_autogen (commit): Prepend "# " to commit message.

9 years agoAuto-commit of loaddefs files.
Glenn Morris [Fri, 2 Jan 2015 12:22:18 +0000 (07:22 -0500)]
Auto-commit of loaddefs files.

9 years agoFix copyright years by hand
Paul Eggert [Thu, 1 Jan 2015 17:18:59 +0000 (09:18 -0800)]
Fix copyright years by hand

These are dates that admin/update-copyright did not update,
or updated incorrectly.

9 years agoUpdate copyright year to 2015
Paul Eggert [Thu, 1 Jan 2015 17:18:06 +0000 (09:18 -0800)]
Update copyright year to 2015

Run admin/update-copyright.

9 years ago* .gitattributes: New file.
Paul Eggert [Thu, 1 Jan 2015 16:58:26 +0000 (08:58 -0800)]
* .gitattributes: New file.

9 years agoMake sure tool-bar changes are reflected on display.
Eli Zaretskii [Thu, 1 Jan 2015 15:29:51 +0000 (17:29 +0200)]
Make sure tool-bar changes are reflected on display.

 lisp/tool-bar.el (tool-bar-local-item)
 (tool-bar-local-item-from-menu): Call force-mode-line-update to
 make sure the tool-bar changes show on display.

9 years ago* autogen.sh: Port better to non-GNU 'cp'.
Paul Eggert [Wed, 31 Dec 2014 15:15:09 +0000 (07:15 -0800)]
* autogen.sh: Port better to non-GNU 'cp'.

Problem reported by Han Boetes.

9 years agoFix a typo in a comment in the previous commit.
Eli Zaretskii [Tue, 30 Dec 2014 19:51:34 +0000 (21:51 +0200)]
Fix a typo in a comment in the previous commit.

9 years agoFix the pixel coordinates returned by pos-visible-in-window-p. (Bug#19473)
Eli Zaretskii [Tue, 30 Dec 2014 17:29:24 +0000 (19:29 +0200)]
Fix the pixel coordinates returned by pos-visible-in-window-p.  (Bug#19473)

 src/xdisp.c (pos_visible_p): Fix up the X coordinate for
 right-to-left screen lines.

9 years ago* automated/tramp-tests.el (tramp--test-smb-or-windows-nt-p):
Michael Albinus [Tue, 30 Dec 2014 11:45:48 +0000 (12:45 +0100)]
* automated/tramp-tests.el (tramp--test-smb-or-windows-nt-p):
New defun.
(tramp-test30-special-characters): Use it.
(tramp--test-check-files): Filter nil file names out.

9 years agoOmit trailing white space
Paul Eggert [Tue, 30 Dec 2014 06:39:10 +0000 (22:39 -0800)]
Omit trailing white space

This should simplify switching to automated ChangeLogs.

9 years agoSync with Tramp 2.2.11.
Michael Albinus [Mon, 29 Dec 2014 16:37:37 +0000 (17:37 +0100)]
Sync with Tramp 2.2.11.

* trampver.texi: Update release number.

9 years agoSync with Tramp 2.2.11.
Michael Albinus [Mon, 29 Dec 2014 16:35:09 +0000 (17:35 +0100)]
Sync with Tramp 2.2.11.

* automated/tramp-tests.el (tramp-test30-special-characters):
Skip test on MS-Windows.

9 years agoSync with Tramp 2.2.11.
Michael Albinus [Mon, 29 Dec 2014 16:31:15 +0000 (17:31 +0100)]
Sync with Tramp 2.2.11.

* net/tramp-compat.el (top): Require cl-macs for Emacs 22.
Make an alias for `default-toplevel-value' if it doesn't exist.

* net/tramp-smb.el (tramp-smb-handle-copy-directory):
Use `tramp-compat-delete-directory'.

* net/trampver.el: Update release number.

9 years agoFix ChangeLog entry.
Michael Albinus [Mon, 29 Dec 2014 15:27:09 +0000 (16:27 +0100)]
Fix ChangeLog entry.

9 years agoFix auto-revert-tail-mode for remote files
Filipp Gunbin [Mon, 29 Dec 2014 14:33:11 +0000 (17:33 +0300)]
Fix auto-revert-tail-mode for remote files

Fixes: debbugs:19449
* autorevert.el (auto-revert-handler): Fix auto-revert-tail-mode for
  remote files (bug#19449)

9 years agoSpelling fixes
Paul Eggert [Sun, 28 Dec 2014 23:06:16 +0000 (15:06 -0800)]
Spelling fixes

9 years agosrc/w32proc.c (Fw32_get_codepage_charset): Doc fix. (Bug#19458)
Eli Zaretskii [Sun, 28 Dec 2014 18:32:53 +0000 (20:32 +0200)]
src/w32proc.c (Fw32_get_codepage_charset): Doc fix.  (Bug#19458)

9 years ago* build-aux/git-hooks/commit-msg: Allow tabs.
Paul Eggert [Sun, 28 Dec 2014 18:05:14 +0000 (10:05 -0800)]
* build-aux/git-hooks/commit-msg: Allow tabs.

Treat them as if they were expanded to spaces, with tab stops
every 8 columns.

9 years agolisp/international/mule.el (define-coding-system): Fix typos in the doc string.
Eli Zaretskii [Sun, 28 Dec 2014 15:43:43 +0000 (17:43 +0200)]
lisp/international/mule.el (define-coding-system): Fix typos in the doc string.
Add missing ChangeLog entry for the previous commit.

Backported from trunk; do not merge back.

(cherry picked from commit 79e2dade762491c58aa6396e35bae0ef418bafc6)

9 years agolisp/international/mule.el (define-coding-system): Improve docstring.
Kenichi Handa [Sun, 28 Dec 2014 13:17:33 +0000 (22:17 +0900)]
lisp/international/mule.el (define-coding-system): Improve docstring.

Backported from trunk; do not merge back.

(cherry picked from commit 5979af512bf5d6a28acea24299b67c7939d9e703)

9 years agoPort memory-full checking to GnuTLS 3.3
Paul Eggert [Sun, 28 Dec 2014 07:44:25 +0000 (23:44 -0800)]
Port memory-full checking to GnuTLS 3.3

Instead of using gnutls_global_set_mem_functions, check every call
to a GnuTLS function that might return an indication of memory
exhaustion.  Suggested by Dmitry Antipov in:
http://lists.gnu.org/archive/html/emacs-devel/2014-12/msg02056.html
* src/gnutls.c (gnutls_global_set_mem_functions) [WINDOWSNT]: Remove.
(init_gnutls_functions): Do not load gnutls_global_set_mem_functions.
(fn_gnutls_global_set_mem_functions) [!WINDOWSNT]: Remove.
All uses removed.
(check_memory_full): New function.
(emacs_gnutls_handshake, emacs_gnutls_handle_error)
(gnutls_make_error, Fgnutls_boot): Use it.
(emacs_gnutls_global_init): Avoid gnutls_global_set_mem_functions.

9 years ago* lisp/progmodes/python.el (python-shell-buffer-substring): Handle
Fabián Ezequiel Gallina [Sat, 27 Dec 2014 20:22:29 +0000 (17:22 -0300)]
* lisp/progmodes/python.el (python-shell-buffer-substring): Handle
cornercase when region sent starts at point-min.

9 years agoFix ChangeLog typo
Fabián Ezequiel Gallina [Sat, 27 Dec 2014 16:10:44 +0000 (13:10 -0300)]
Fix ChangeLog typo

9 years agoFix composition of characters from Syriac and Arabis scripts.
Eli Zaretskii [Sat, 27 Dec 2014 12:07:06 +0000 (14:07 +0200)]
Fix composition of characters from Syriac and Arabis scripts.

 lisp/language/misc-lang.el (composition-function-table): Add Syriac
 characters and also ZWJ/ZWNJ.  See
 http://lists.gnu.org/archive/html/help-gnu-emacs/2014-12/msg00248.html
 for the details.

9 years agopython.el: Fix message when sending region.
Fabián Ezequiel Gallina [Sat, 27 Dec 2014 07:01:32 +0000 (04:01 -0300)]
python.el: Fix message when sending region.

* lisp/progmodes/python.el (python-shell-send-region): Rename argument
send-name from nomain.  Fix message.
(python-shell-send-buffer): Rename argument send-name from arg.

9 years agopython.el: Cleanup temp files even with eval errors.
Fabián Ezequiel Gallina [Sat, 27 Dec 2014 06:38:32 +0000 (03:38 -0300)]
python.el: Cleanup temp files even with eval errors.

* lisp/progmodes/python.el (python-shell-send-file): Make file-name
mandatory.  Fix temp file removal in the majority of cases.

9 years agoFix for previous commit
Fabián Ezequiel Gallina [Sat, 27 Dec 2014 06:32:01 +0000 (03:32 -0300)]
Fix for previous commit

9 years agopython.el: Handle file encoding for shell.
Fabián Ezequiel Gallina [Sat, 27 Dec 2014 04:30:21 +0000 (01:30 -0300)]
python.el: Handle file encoding for shell.

* lisp/progmodes/python.el (python-rx-constituents): Add coding-cookie.
(python-shell--save-temp-file): Write file with proper encoding.
(python-shell-buffer-substring): Add coding cookie for detected
encoding to generated content.  Fix blank lines when removing
if-name-main block.
(python-shell-send-file): Handle file encoding.
(python-info-encoding-from-cookie)
(python-info-encoding): New functions.

* test/automated/python-tests.el (python-shell-buffer-substring-1)
(python-shell-buffer-substring-2, python-shell-buffer-substring-3)
(python-shell-buffer-substring-4, python-shell-buffer-substring-5)
(python-shell-buffer-substring-6, python-shell-buffer-substring-7)
(python-shell-buffer-substring-8)
(python-info-encoding-from-cookie-1)
(python-info-encoding-from-cookie-2)
(python-info-encoding-from-cookie-3)
(python-info-encoding-from-cookie-4)
(python-info-encoding-from-cookie-5)
(python-info-encoding-from-cookie-6)
(python-info-encoding-from-cookie-7, python-info-encoding-1)
(python-info-encoding-2): New tests.

9 years agoSpelling fixes
Paul Eggert [Fri, 26 Dec 2014 02:07:15 +0000 (18:07 -0800)]
Spelling fixes

9 years ago* automated/tramp-tests.el (tramp-test17-insert-directory): Do not
Michael Albinus [Thu, 25 Dec 2014 21:00:08 +0000 (22:00 +0100)]
* automated/tramp-tests.el (tramp-test17-insert-directory): Do not
expect a given order of "." and "..".

9 years agoFix rendering of composed caharacters on the mode line. (Bug#19435)
Eli Zaretskii [Thu, 25 Dec 2014 15:38:15 +0000 (17:38 +0200)]
Fix rendering of composed caharacters on the mode line.  (Bug#19435)

 src/xdisp.c (set_iterator_to_next) <GET_FROM_STRING>: Limit search in
 composition_compute_stop_pos to the number of characters in the
 string.
 <GET_FROM_BUFFER, GET_FROM_STRING>: Simplify code.
 src/composite.c (composition_compute_stop_pos): If no composition
 was found in a string before ENDPOS, and ENDPOS is the string end,
 no need to back up to a safe point.
 src/dispextern.h (struct it) <end_charpos>: Improve commentary.

9 years agoSmall doc markup fixes
Glenn Morris [Thu, 25 Dec 2014 00:00:44 +0000 (16:00 -0800)]
Small doc markup fixes

* doc/lispref/control.texi (Pattern matching case statement):
* doc/lispref/os.texi (Desktop Notifications): Markup fixes.

9 years ago* doc/lispref/modes.texi (Defining Minor Modes, SMIE Lexer): Markup fixes.
Glenn Morris [Wed, 24 Dec 2014 23:57:34 +0000 (15:57 -0800)]
* doc/lispref/modes.texi (Defining Minor Modes, SMIE Lexer): Markup fixes.

9 years agoChangeLog fix
Glenn Morris [Wed, 24 Dec 2014 22:43:12 +0000 (14:43 -0800)]
ChangeLog fix

9 years agoTUTORIAL.es: Improve style consistency
Álvar Ibeas [Wed, 24 Dec 2014 19:15:05 +0000 (20:15 +0100)]
TUTORIAL.es: Improve style consistency

* tutorials/TUTORIAL.es: Improve style consistency.

9 years agoTUTORIAL.es: spelling fixes
Álvar Ibeas [Wed, 24 Dec 2014 19:09:46 +0000 (20:09 +0100)]
TUTORIAL.es: spelling fixes

* tutorials/TUTORIAL.es: Spelling fixes.

9 years agoAvoid compiler warning.
Jan D [Wed, 24 Dec 2014 11:26:25 +0000 (12:26 +0100)]
Avoid compiler warning.

* nsimage.m (setPixmapData): Rename local variable bmRep to avoid
compiler warning.

9 years agoBackport: Memory leak fix and 19133 fix.
Jan D [Wed, 24 Dec 2014 11:24:14 +0000 (12:24 +0100)]
Backport: Memory leak fix and 19133 fix.

Fixes: debbugs:19133
* nsimage.m (allocInitFromFile:): Initialize bmRep.
(dealloc): Release bmRep.
(setPixmapData): Make bmRep local so class member is not
set.

9 years agoFix bad bug number reference, shall be 19427.
Jan D [Wed, 24 Dec 2014 11:12:19 +0000 (12:12 +0100)]
Fix bad bug number reference, shall be 19427.

9 years agoBackport: Don't cache images in nsimage.m (Bug#18918).
Jan D [Wed, 24 Dec 2014 11:10:01 +0000 (12:10 +0100)]
Backport: Don't cache images in nsimage.m (Bug#18918).

Fixes: Bug#18918
* nsterm.h (EmacsImage): Remove imageListNext, refCount, reference,
imageListSetNext, imageListNext.

* nsimage.m (ImageList, imageListNext, imageListSetNext:)
(reference): Remove.
(allocInitFromFile:): Remove searching ImageList and calling
reference (Bug#18918).
(dealloc): Remove handling if ImageList.

9 years ago* net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band):
Michael Albinus [Wed, 24 Dec 2014 08:58:49 +0000 (09:58 +0100)]
* net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band):
Use `tramp-rsh-end-of-line', it ought to be more robust.

9 years agoImprove indexing on the chapter/section/subsection levels.
Eli Zaretskii [Tue, 23 Dec 2014 18:42:30 +0000 (20:42 +0200)]
Improve indexing on the chapter/section/subsection levels.

 doc/lispref/windows.texi (Recombining Windows): Index subject of sections.
 doc/lispref/variables.texi (Variables with Restricted Values)
 (Generalized Variables): Index subject of sections.
 doc/lispref/text.texi (Buffer Contents, Examining Properties)
 (Changing Properties, Property Search, Substitution): Index
 subject of sections.
 doc/lispref/syntax.texi (Motion and Syntax, Parsing Expressions)
 (Motion via Parsing, Position Parse, Control Parsing): Index
 subject of sections.
 doc/lispref/strings.texi (Predicates for Strings, Creating Strings)
 (Modifying Strings, Text Comparison): Index subject of sections.
 doc/lispref/searching.texi (Syntax of Regexps, Regexp Special)
 (Regexp Functions, Regexp Functions): Index subject of sections.
 doc/lispref/processes.texi (Subprocess Creation, Process Information): Index
 subject of sections.
 doc/lispref/positions.texi (Screen Lines): Index subject of sections.
 doc/lispref/nonascii.texi (Scanning Charsets, Specifying Coding Systems):
 Index subject of sections.
 doc/lispref/minibuf.texi (Text from Minibuffer, Object from Minibuffer)
 (Multiple Queries, Minibuffer Contents): Index subject of
 sections.
 doc/lispref/markers.texi (Predicates on Markers, Creating Markers)
 (Information from Markers, Moving Markers): Index subject of
 sections.
 doc/lispref/macros.texi (Defining Macros, Problems with Macros): Index
 subject of sections.
 doc/lispref/loading.texi (Loading Non-ASCII, Where Defined): Index subject
 of sections.
 doc/lispref/lists.texi (List-related Predicates, List Variables, Setcar)
 (Setcdr, Plist Access): Index subject of sections.
 doc/lispref/keymaps.texi (Controlling Active Maps, Scanning Keymaps)
 (Modifying Menus): Index subject of sections.
 doc/lispref/help.texi (Accessing Documentation, Help Functions): Index
 subject of sections.
 doc/lispref/hash.texi (Hash Access): Index subject of sections.
 doc/lispref/functions.texi (Core Advising Primitives)
 (Advising Named Functions, Porting old advices): Index subject of
 sections.
 doc/lispref/frames.texi (Creating Frames, Initial Parameters)
 (Position Parameters, Buffer Parameters, Minibuffers and Frames)
 (Pop-Up Menus, Drag and Drop): Index subject of sections.
 doc/lispref/files.texi (Visiting Functions, Kinds of Files)
 (Unique File Names): Index subject of sections.
 doc/lispref/display.texi (Refresh Screen, Echo Area Customization)
 (Warning Variables, Warning Options, Delayed Warnings)
 (Temporary Displays, Managing Overlays, Overlay Properties)
 (Finding Overlays, Size of Displayed Text, Defining Faces)
 (Attribute Functions, Displaying Faces, Face Remapping)
 (Basic Faces, Font Lookup, Fontsets, Replacing Specs)
 (Defining Images, Showing Images): Index subject of sections.
 doc/lispref/debugging.texi (Debugging, Explicit Debug)
 (Invoking the Debugger, Excess Open, Excess Close): Index subject
 of sections.
 doc/lispref/customize.texi (Defining New Types, Applying Customizations)
 (Custom Themes): Index subject of sections.
 doc/lispref/control.texi (Sequencing, Combining Conditions)
 (Processing of Errors, Cleanups): Index subject of sections.
 doc/lispref/compile.texi (Eval During Compile): Index subject of sections.
 doc/lispref/commands.texi (Using Interactive, Distinguish Interactive)
 (Command Loop Info, Classifying Events, Event Mod)
 (Invoking the Input Method): Index subject of sections.
 doc/lispref/buffers.texi (Buffer List, Buffer Gap): Index subject of sections.
 doc/lispref/backups.texi (Making Backups, Numbered Backups, Backup Names)
 (Reverting): Index subject of sections.
 doc/lispref/abbrevs.texi (Abbrev Tables, Defining Abbrevs, Abbrev Files)
 (Abbrev Expansion, Standard Abbrev Tables, Abbrev Properties)
 (Abbrev Table Properties): Index subject of sections.
 doc/lispref/os.texi (Time of Day, Time Conversion, Time Parsing)
 (Time Calculations, Idle Timers): Index subject of sections.

9 years ago* lisp/progmodes/js.el (js-syntax-propertize): "return" can't be divided.
Stefan Monnier [Tue, 23 Dec 2014 15:50:36 +0000 (10:50 -0500)]
* lisp/progmodes/js.el (js-syntax-propertize): "return" can't be divided.

Fixes: debbugs:19397