]> git.eshelyaron.com Git - emacs.git/log
emacs.git
9 years agoBump version to 24.4.91 emacs-24.4.91
Nicolas Petton [Sun, 8 Mar 2015 14:42:28 +0000 (15:42 +0100)]
Bump version to 24.4.91

9 years ago* etc/AUTHORS: Update the AUTHORS file
Nicolas Petton [Sun, 8 Mar 2015 14:40:45 +0000 (15:40 +0100)]
* etc/AUTHORS: Update the AUTHORS file

9 years ago* lisp/ChangeLog: Fix a changelog entry
Nicolas Petton [Sun, 8 Mar 2015 14:39:59 +0000 (15:39 +0100)]
* lisp/ChangeLog: Fix a changelog entry

9 years agoMake tramp-ssh-controlmaster-options a defcustom. Do not merge with master.
Michael Albinus [Sat, 7 Mar 2015 20:02:04 +0000 (21:02 +0100)]
Make tramp-ssh-controlmaster-options a defcustom.  Do not merge with master.

Fixes: debbugs:20015
* net/tramp.el (tramp-ssh-controlmaster-options): Make it a
defcustom.

9 years agoImprove MS-Windows build instructions (Bug#19989)
Eli Zaretskii [Sat, 7 Mar 2015 13:12:57 +0000 (15:12 +0200)]
Improve MS-Windows build instructions  (Bug#19989)

 nt/INSTALL: Add some more installation instructions for mingw-get
 users.

9 years agolisp/dired.el (dired-delete-file): Doc fix. (Bug#20021)
Eli Zaretskii [Sat, 7 Mar 2015 09:55:58 +0000 (11:55 +0200)]
lisp/dired.el (dired-delete-file): Doc fix.  (Bug#20021)

9 years ago# Changelog fixes (no need to merge to trunk)
Glenn Morris [Wed, 4 Mar 2015 17:04:54 +0000 (09:04 -0800)]
# Changelog fixes (no need to merge to trunk)

9 years agotextmodes/ispell.el: Look for aspell .dat files also under dict-dir, as aspell does.
Agustin Martin Domingo [Tue, 3 Mar 2015 12:12:38 +0000 (13:12 +0100)]
textmodes/ispell.el: Look for aspell .dat files also under dict-dir, as aspell does.

Originally reported as http://bugs.debian.org/765349.
Noticed when aspell has different data-dir and dict-dir.

* textmodes/ispell.el (ispell-aspell-find-dictionary): Make sure
.dat files for aspell dicts are also searched for in location
described by `ispell-aspell-dict-dir', matching aspell's dict-dir
variable.

9 years agoispell.el: Extend to aspell current hunspell handling of aliases names for standard...
Agustin Martin Domingo [Tue, 24 Feb 2015 18:36:30 +0000 (19:36 +0100)]
ispell.el: Extend to aspell current hunspell handling of aliases names for standard dicts.

Extend `ispell-hunspell-dictionary-equivs-alist' use to aspell, once
renamed to a more general `ispell-dicts-name2locale-equivs-alist' name.

Originally reported as http://bugs.debian.org/745613

* textmodes/ispell.el (ispell-dicts-name2locale-equivs-alist)
(ispell-hunspell-fill-dictionary-entry)
(ispell-find-hunspell-dictionaries)
(ispell-set-spellchecker-params): New generic name for
`ispell-hunspell-dictionary-equivs-alist'.
(ispell-aspell-add-aliases): Also use
`ispell-dicts-name2locale-equivs-alist' to get aspell aliases for
standard dict names.

9 years ago# Auto-commit of loaddefs files.
Glenn Morris [Sun, 1 Mar 2015 12:24:12 +0000 (07:24 -0500)]
# Auto-commit of loaddefs files.

9 years agoAvoid assertion violations in Rmail due to newline cache
Eli Zaretskii [Sat, 28 Feb 2015 10:33:32 +0000 (12:33 +0200)]
Avoid assertion violations in Rmail due to newline cache

 src/search.c (find_newline): Avoid assertion violations in
 CHAR_TO_BYTE when a portion of the buffer was deleted and we look
 for newlines near the end of the buffer.  This happens in Rmail
 hen JIT font-lock fontifies a newly displayed portion of the
 buffer.

9 years agobrowse-url-firefox: update for firefox 36's removal of -remote
Glenn Morris [Tue, 24 Feb 2015 23:02:11 +0000 (18:02 -0500)]
browse-url-firefox: update for firefox 36's removal of -remote

Ref: https://bugzilla.mozilla.org/show_bug.cgi?id=1080319

* lisp/net/browse-url.el (browse-url-firefox-startup-arguments):
Make obsolete.
(browse-url-firefox): Doc fix.  Remove -remote.
(browse-url-firefox-sentinel): Remove function.

* etc/NEWS: Mention this.

Fixes: debbugs:19921
9 years agoAvoid erratic behavior of menu-bar tooltips on w32 (Bug#19925)
Eli Zaretskii [Mon, 23 Feb 2015 17:46:44 +0000 (19:46 +0200)]
Avoid erratic behavior of menu-bar tooltips on w32  (Bug#19925)

 src/w32fns.c (Fw32__menu_bar_in_use): New internal function.

 lisp/frame.el (blink-cursor-timer-function): Don't increment
 blink-cursor-blinks-done counter when a menu is active on a w32
 frame.

9 years agoBump python.el version
Fabián Ezequiel Gallina [Sat, 21 Feb 2015 21:43:33 +0000 (18:43 -0300)]
Bump python.el version

9 years agoSpelling fixes
Paul Eggert [Sat, 21 Feb 2015 20:34:19 +0000 (12:34 -0800)]
Spelling fixes

9 years ago* src/fileio.c (Fmake_temp_name): Doc tweaks.
Glenn Morris [Fri, 20 Feb 2015 05:42:22 +0000 (21:42 -0800)]
* src/fileio.c (Fmake_temp_name): Doc tweaks.

Fixes: debbugs:19858
9 years ago* lisp/comint.el (comint-line-beginning-position): Revert searching for
Juri Linkov [Thu, 19 Feb 2015 19:28:41 +0000 (21:28 +0200)]
* lisp/comint.el (comint-line-beginning-position): Revert searching for
the prompt when comint-use-prompt-regexp is non-nil because it
doesn't distinguish input from output.  Check the field property
`output' for the case when comint-use-prompt-regexp is nil.

Fixes: debbugs:19710
9 years agoMention in admin/notes/repo how to mark commits that are not to be merged.
Eli Zaretskii [Thu, 19 Feb 2015 15:40:41 +0000 (17:40 +0200)]
Mention in admin/notes/repo how to mark commits that are not to be merged.

9 years ago# Remove NEWS temporary markup
Glenn Morris [Wed, 18 Feb 2015 17:09:50 +0000 (09:09 -0800)]
# Remove NEWS temporary markup

9 years agoerc.el: Add old version header for package.el compatibilty
kwhite [Tue, 17 Feb 2015 18:41:02 +0000 (13:41 -0500)]
erc.el: Add old version header for package.el compatibilty

9 years agoTramp: Disable paging with PAGER=cat
Jérémy Compostella [Sun, 15 Feb 2015 15:11:33 +0000 (16:11 +0100)]
Tramp: Disable paging with PAGER=cat

Fixes: debbugs:19870
* net/tramp-sh.el (tramp-remote-process-environment): Disable paging
with PAGER=cat.

9 years agoFix assertions in popping up menus on TTY (Bug#19862)
Eli Zaretskii [Sat, 14 Feb 2015 13:03:20 +0000 (15:03 +0200)]
Fix assertions in popping up menus on TTY  (Bug#19862)

Do not merge this commit to trunk!

 src/menu.c (Fx_popup_menu) [HAVE_X_WINDOWS]: Call
 mouse_position_for_popup only for X frames.

9 years ago# NEWS copyedits
Glenn Morris [Fri, 13 Feb 2015 18:20:06 +0000 (13:20 -0500)]
# NEWS copyedits

9 years ago* lisp/erc/erc.el (erc-rename-buffers): Doc fix. Add :version.
Glenn Morris [Fri, 13 Feb 2015 18:19:20 +0000 (13:19 -0500)]
* lisp/erc/erc.el (erc-rename-buffers): Doc fix.  Add :version.

9 years ago* lisp/textmodes/flyspell.el (flyspell-duplicate-distance): Bump :version.
Glenn Morris [Fri, 13 Feb 2015 18:17:07 +0000 (13:17 -0500)]
* lisp/textmodes/flyspell.el (flyspell-duplicate-distance): Bump :version.

9 years agoAugment text-mode syntax table for a few special characters
Eli Zaretskii [Fri, 13 Feb 2015 15:44:51 +0000 (17:44 +0200)]
Augment text-mode syntax table for a few special characters

 lips/textmodes/text-mode.el (text-mode-syntax-table): Make some
 punctuation character behave as word-constituent, for more
 compatibility with Unicode.

9 years agoImprove docs of transient-mark-mode (Bug#19841)
Eli Zaretskii [Fri, 13 Feb 2015 09:09:21 +0000 (11:09 +0200)]
Improve docs of transient-mark-mode  (Bug#19841)

 src/buffer.c (syms_of_buffer): Doc fix.

 lisp/simple.el (transient-mark-mode): Doc fix.

9 years agoNEWS: Add section to include ERC changes
kwhite [Thu, 12 Feb 2015 18:41:10 +0000 (13:41 -0500)]
NEWS: Add section to include ERC changes

9 years agoImprove string search in `flyspell-word-search-*`. (Bug#16800)
Agustin Martin Domingo [Thu, 12 Feb 2015 17:38:11 +0000 (18:38 +0100)]
Improve string search in `flyspell-word-search-*`. (Bug#16800)

* flyspell.el (flyspell-duplicate-distance): Limit default search
distance for duplicated words to 40000.
(flyspell-word-search-backward, flyspell-word-search-forward):
Search as full word with defined casechars, not as substring.

Fixes: debbugs:16800
9 years agoBackport NEWS typo fix
Glenn Morris [Wed, 11 Feb 2015 18:18:45 +0000 (13:18 -0500)]
Backport NEWS typo fix

9 years agoBackport fix for bug#18745 from master.
Noam Postavsky [Tue, 10 Feb 2015 16:51:14 +0000 (18:51 +0200)]
Backport fix for bug#18745 from master.

 nt/cmdproxy.c (batch_file_p): New function.
 (spawn): If calling a quoted batch file pass NULL for progname.

9 years agoFix invocation of commands whose file name includes extension (Bug#19817)
Eli Zaretskii [Tue, 10 Feb 2015 16:26:23 +0000 (18:26 +0200)]
Fix invocation of commands whose file name includes extension  (Bug#19817)

 nt/cmdproxy.c (get_next_token): Don't make backslashes disappear
 without a trace when they are not followed by a quote.
 (search_dir): Support searching programs whose file name already
 has an arbitrary extension.
 (main): When passing a command line to the shell, use cmd.exe
 rules for quoting command-line tail.

9 years agoBetter support for the case of typing RET on the prompt in comint.
Juri Linkov [Tue, 10 Feb 2015 00:38:09 +0000 (02:38 +0200)]
Better support for the case of typing RET on the prompt in comint.

* lisp/comint.el (comint-get-old-input-default): Go to the field end
when comint-use-prompt-regexp is nil.
(comint-line-beginning-position): Check if point is already
on the prompt before searching for the prompt when
comint-use-prompt-regexp is non-nil.

Fixes: debbugs:19710
9 years agoDon't lose frame's background color when setting foreground (Bug#19802)
Eli Zaretskii [Sun, 8 Feb 2015 18:09:19 +0000 (20:09 +0200)]
Don't lose frame's background color when setting foreground  (Bug#19802)

 lisp/frame.el ((set-background-color, set-foreground-color): Pass the
 other color, if defined, to face-set-after-frame-default.

9 years agoFix handling of frame color parameters in TTY sessions (Bug#19802)
Eli Zaretskii [Sun, 8 Feb 2015 16:17:40 +0000 (18:17 +0200)]
Fix handling of frame color parameters in TTY sessions  (Bug#19802)

 src/xfaces.c (map_tty_color): Use assoc_no_quit instead of
 assq_no_quit to fetch color definition by its string name.

 lisp/frame.el (frame-notice-user-settings): Refresh the value of
 frame parameters after calling tty-handle-reverse-video.  Call
 face-set-after-frame-default with the actual parameters, to avoid
 resetting colors back to unspecified.
 (set-background-color, set-foreground-color): Pass the selected
 color to face-set-after-frame-default.

9 years agoComplete the remaining documentation updates for 24.5
Eli Zaretskii [Sat, 7 Feb 2015 09:04:52 +0000 (11:04 +0200)]
Complete the remaining documentation updates for 24.5

 doc/lispref/processes.texi (Synchronous Processes): Update documentation of
 call-process-shell-command and process-file-shell-command.

 etc/NEWS: Mark the entry for changed calling sequence of
 call-process-shell-command and process-file-shell-command as documented.

9 years agoBackport the :end-of-capability fix
Wolfgang Jenkner [Fri, 6 Feb 2015 02:43:58 +0000 (13:43 +1100)]
Backport the :end-of-capability fix

* lisp/net/network-stream.el (network-stream-open-tls): Respect the
:end-of-capability setting (backport)

9 years agoFix vertical-motion and posn-at-point when word-wrap is on (Bug#19769)
Eli Zaretskii [Thu, 5 Feb 2015 17:07:15 +0000 (19:07 +0200)]
Fix vertical-motion and posn-at-point when word-wrap is on  (Bug#19769)

 src/xdisp.c (move_it_in_display_line_to): Handle the case where the
 last character of a screen line is whitespace, and we are under
 word-wrap with overflow-newline-into-fringe turned on.

9 years agoBetter multi-line input support in comint.el
Juri Linkov [Thu, 5 Feb 2015 00:52:41 +0000 (02:52 +0200)]
Better multi-line input support in comint.el

Revert the change of comint-line-beginning-position callers,
and modify comint-line-beginning-position instead.

* lisp/comint.el (comint-history-isearch-search)
(comint-history-isearch-message, comint-history-isearch-wrap):
Use comint-line-beginning-position instead of field-beginning.
(comint-send-input): Use either end-of-line or field-end
depending on comint-use-prompt-regexp.
(comint-line-beginning-position): Search backward
for comint-prompt-regexp if comint-use-prompt-regexp is non-nil.
Use field-beginning instead of line-beginning-position
if comint-use-prompt-regexp is nil.

Fixes: debbugs:19710
9 years agotodo-mode.el: Restore point on setting item done (Bug#19727)
Robert Pluim [Wed, 4 Feb 2015 21:38:52 +0000 (22:38 +0100)]
todo-mode.el: Restore point on setting item done  (Bug#19727)

calendar/todo-mode.el (todo-item-done): When done items are hidden,
restore point to its location prior to invoking this command.

9 years agodoc/misc/erc.texi: fix typo
kwhite [Wed, 4 Feb 2015 19:33:07 +0000 (14:33 -0500)]
doc/misc/erc.texi: fix typo

9 years agoUpdate ERC docs and update MAINTANERS to include myself
kwhite [Wed, 4 Feb 2015 16:23:10 +0000 (11:23 -0500)]
Update ERC docs and update MAINTANERS to include myself

9 years agoFix filling circle/ellipse in Artist Mode (Bug#19763)
Eli Zaretskii [Wed, 4 Feb 2015 15:31:37 +0000 (17:31 +0200)]
Fix filling circle/ellipse in Artist Mode  (Bug#19763)

 lisp/textmodes/artist.el (artist-ellipse-compute-fill-info): Use
 mapcar, not mapc, to create the other half of fill-info.

9 years agoBump version to 24.4.90 emacs-24.4.90
Nicolas Petton [Wed, 4 Feb 2015 00:14:26 +0000 (01:14 +0100)]
Bump version to 24.4.90

9 years agoauthors.el: Add missing ignored and renamed files
Nicolas Petton [Wed, 4 Feb 2015 00:11:13 +0000 (01:11 +0100)]
authors.el: Add missing ignored and renamed files

* emacs-lisp/authors.el (authors-ignored-files)
(authors-renamed-files-alist): Additions.

9 years agoA more thorough fix for bug#19307
Eli Zaretskii [Tue, 3 Feb 2015 18:52:18 +0000 (20:52 +0200)]
A more thorough fix for bug#19307

 src/xdisp.c (handle_stop, handle_single_display_spec)
 (next-element_from_image): Don't reset the
 ignore_overlay_strings_at_pos_p flag here.
 (next_element_from_buffer): Reset ignore_overlay_strings_at_pos_p
 here.
 (next_overlay_string): Set ignore_overlay_strings_at_pos_p here,
 after we've exhausted all the overlay strings at the current
 position.

9 years agoFix last commit
Michael Albinus [Tue, 3 Feb 2015 09:42:13 +0000 (10:42 +0100)]
Fix last commit

9 years agoTramp: Don't use a tempfile for ControlPath.
Michael Albinus [Tue, 3 Feb 2015 09:32:00 +0000 (10:32 +0100)]
Tramp: Don't use a tempfile for ControlPath.

Fixes: debbugs:19702
* net/tramp.el (tramp-ssh-controlmaster-options): Don't use a
tempfile for ControlPath.

9 years agoFix display of overlay strings with faces after ellipsis (Bug#19307)
Eli Zaretskii [Mon, 2 Feb 2015 16:23:32 +0000 (18:23 +0200)]
Fix display of overlay strings with faces after ellipsis  (Bug#19307)

 src/xdisp.c (set_iterator_to_next): Set value of stop_charpos
 according to the object we are about to resume iterating.

9 years agoFix redrawing of mode lines when exposed (Bug#19721)
Eli Zaretskii [Mon, 2 Feb 2015 16:15:13 +0000 (18:15 +0200)]
Fix redrawing of mode lines when exposed  (Bug#19721)

 src/dispnew.c (adjust_glyph_matrix): Set the update_mode_line flag
 of the window whose current glyph matrix was resized, which
 disables the mode-line row as side effect.
 src/xdisp.c (redisplay_window): Don't avoid redisplay of a window
 whose update_mode_line flag is set.

9 years agonet/tramp.el (tramp-ssh-controlmaster-options): Use "%C"
Michael Albinus [Mon, 2 Feb 2015 09:16:04 +0000 (10:16 +0100)]
net/tramp.el (tramp-ssh-controlmaster-options): Use "%C"

Fixes: debbugs:19702
* net/tramp.el (tramp-ssh-controlmaster-options): Use "%C" for
ControlPath if possible.

9 years agoauthors.el: backport some additions
Glenn Morris [Mon, 2 Feb 2015 01:17:57 +0000 (17:17 -0800)]
authors.el: backport some additions

* lisp/emacs-lisp/authors.el (authors-obsolete-files-regexps)
(authors-valid-file-names, authors-renamed-files-alist): Additions.

9 years ago# ChangeLog fixes, backported
Glenn Morris [Mon, 2 Feb 2015 01:08:51 +0000 (17:08 -0800)]
# ChangeLog fixes, backported

9 years ago* admin/admin.el (manual-meta-string): Use bug-gnu-emacs@gnu rather than webmasters@gnu
Glenn Morris [Mon, 2 Feb 2015 00:55:24 +0000 (16:55 -0800)]
* admin/admin.el (manual-meta-string): Use bug-gnu-emacs@gnu rather than webmasters@gnu

9 years agoCC Mode: Stop Font Lock forcing fontification from BOL. Fixes debbugs#19669.
Alan Mackenzie [Sun, 1 Feb 2015 21:20:35 +0000 (21:20 +0000)]
CC Mode: Stop Font Lock forcing fontification from BOL.  Fixes debbugs#19669.

cc-mode.el (c-font-lock-init): Setq font-lock-extend-region-functions to
nil.

9 years ago# Auto-commit of loaddefs files.
Glenn Morris [Sun, 1 Feb 2015 12:24:05 +0000 (07:24 -0500)]
# Auto-commit of loaddefs files.

9 years agoHandle "#" operator properly inside macro. Fix coding bug.
Alan Mackenzie [Sat, 31 Jan 2015 21:44:47 +0000 (21:44 +0000)]
Handle "#" operator properly inside macro.  Fix coding bug.

cc-mode.el (c-neutralize-syntax-in-and-mark-CPP): On finding a "#" which
looks like the start of a macro, check it isn't already inside a macro.

cc-engine.el (c-state-safe-place): Don't record a new "safe" position
into the list of them when this is beyond our current position.

9 years agoHandle dead frame in menu-bar-non-minibuffer-window-p. (Bug#19728)
Martin Rudalics [Sat, 31 Jan 2015 18:38:58 +0000 (19:38 +0100)]
Handle dead frame in menu-bar-non-minibuffer-window-p.  (Bug#19728)

* menu-bar.el (menu-bar-non-minibuffer-window-p): Return nil when
the menu frame is dead.  (Bug#19728)

9 years agoDocument MS-Windows file-name idiosyncrasies (Bug#19463)
Eli Zaretskii [Sat, 31 Jan 2015 16:32:11 +0000 (18:32 +0200)]
Document MS-Windows file-name idiosyncrasies  (Bug#19463)

 doc/emacs/msdog.texi (Windows Files): Document characters invalid in
 Windows file names.

9 years agoFix description of Customize buffer in Emacs manual.
Eli Zaretskii [Sat, 31 Jan 2015 16:05:38 +0000 (18:05 +0200)]
Fix description of Customize buffer in Emacs manual.

 doc/emacs/custom.texi (Customization Groups): Update the looks of the
 Customize Group buffer.

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