Dmitry Gutov [Sun, 4 Jan 2015 00:24:53 +0000 (03:24 +0300)]
Unbreak `mouse-action' property in text buttons
* lisp/button.el (push-button): Fix regression from 2012-12-06.
Paul Eggert [Sat, 3 Jan 2015 22:37:05 +0000 (14:37 -0800)]
Revert previous change to produce_composite_glyph
* term.c (produce_composite_glyph): Revert previous change (Bug#19496).
Dmitry Gutov [Sat, 3 Jan 2015 14:02:04 +0000 (16:02 +0200)]
Only show "Back" when the marker stack is non-empty
* lisp/menu-bar.el (menu-bar-goto-menu): Use it.
* lisp/progmodes/xref.el (xref-marker-stack-empty-p): New function.
Dmitry Gutov [Sat, 3 Jan 2015 13:53:18 +0000 (15:53 +0200)]
Don't remap `next-line' and `previous-line' in xref keymap
* lisp/progmodes/xref.el (xref--window-configuration): New variable.
(xref-show-location-at-point): New command.
(xref--restore-window-configuration): New function.
(xref-next-line, xref-prev-line): Delegate to
`xref-show-location-at-point'.
(xref--location-at-point): Don't signal the error.
(xref-goto-xref): Do that here instead.
(xref--xref-buffer-mode): Add `xref--restore-window-configuration'
to `pre-command-hook'.
(xref--xref-buffer-mode-map): Don't remap `next-line' and
`previous-line'. Additionally bind `xref-next-line' and
`xref-prev-line' to `n' and `p' respectively. Bind
`xref-show-location-at-point' to `C-o'.
Paul Eggert [Sat, 3 Jan 2015 20:19:00 +0000 (12:19 -0800)]
Pacify gcc -Wparentheses
* frame.c (x_set_frame_parameters): Add parens (Bug#19428).
Martin Rudalics [Sat, 3 Jan 2015 16:40:40 +0000 (17:40 +0100)]
Two fixes for setting up sizes of a new frame (Bug#19428).
* frame.c (x_set_frame_parameters): Call Fset_frame_size only if
f->can_x_set_window_size is true.
* xterm.c (x_set_window_size_1): Call change_frame_size with
text sizes instead of pixel sizes (Bug#19428).
Glenn Morris [Fri, 2 Jan 2015 19:52:03 +0000 (11:52 -0800)]
ChangeLog fixes
Glenn Morris [Fri, 2 Jan 2015 11:22:24 +0000 (06:22 -0500)]
Auto-commit of loaddefs files.
Paul Eggert [Fri, 2 Jan 2015 00:44:53 +0000 (16:44 -0800)]
Less 'make' chatter for unidata
* unidata/Makefile.in (AM_DEFAULT_VERBOSITY, AM_V_GEN, am__v_GEN_)
(am__v_GEN_0, am__v_GEN_1, AM_V_at, am__v_at_, am__v_at_0, am__v_at_1):
New macros, from ../src/Makefile.in.
(${top_srcdir}/src/macuvs.h, %.elc, unidata.txt)
(${unidir}/charprop.el, unifiles): Use them.
(PHONY_EXTRAS): New macro.
(.PHONY, ${unidir}/charprop.el): Use it.
(FORCE): Remove; all uses replaced by PHONY_EXTRAS manipulation.
(${unidir}/charprop.el, extraclean):
Use 'make' conditionals rather than shell.
Paul Eggert [Thu, 1 Jan 2015 22:27:34 +0000 (14:27 -0800)]
Fix copyright years by hand
These are dates that admin/update-copyright did not update, or
updated incorrectly. Also, back out the copyright-date change to
doc/misc/texinfo.tex, as upstream hasn't updated that date yet.
Paul Eggert [Thu, 1 Jan 2015 22:26:41 +0000 (14:26 -0800)]
Update copyright year to 2015
Run admin/update-copyright.
Paul Eggert [Thu, 1 Jan 2015 21:43:26 +0000 (13:43 -0800)]
* update-copyright (emacsver): Change to emacsver.tex.in.
Paul Eggert [Thu, 1 Jan 2015 19:05:24 +0000 (11:05 -0800)]
Merge from gnulib, incorporating:
2015-01-01 version-etc: new year
Paul Eggert [Thu, 1 Jan 2015 18:47:17 +0000 (10:47 -0800)]
Merge from origin/emacs-24
a5f90a3 * .gitattributes: New file.
5a9710f Make sure tool-bar changes are reflected on display.
93796ba * autogen.sh: Port better to non-GNU 'cp'.
9758516 Fix a typo in a comment in the previous commit.
aa472a3 Fix the pixel coordinates returned by pos-visible-in-window-p. (Bug#19473)
d261229 * 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.
9278f05 Omit trailing white space
1c93fd3 Sync with Tramp 2.2.11.
96ebe18 Sync with Tramp 2.2.11.
e792450 Sync with Tramp 2.2.11.
2d17e12 Fix ChangeLog entry.
6444482 Fix auto-revert-tail-mode for remote files
b5c9c13 Spelling fixes
c5504d1 src/w32proc.c (Fw32_get_codepage_charset): Doc fix. (Bug#19458)
Conflicts:
ChangeLog
doc/misc/ChangeLog
lisp/ChangeLog
src/ChangeLog
test/ChangeLog
Paul Eggert [Thu, 1 Jan 2015 16:58:26 +0000 (08:58 -0800)]
* .gitattributes: New file.
Simen Heggestøyl [Thu, 1 Jan 2015 16:19:02 +0000 (11:19 -0500)]
* lisp/textmodes/css-mode.el (scss-mode): Fix typo.
Fixes: debbugs:19446
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.
Glenn Morris [Thu, 1 Jan 2015 11:17:46 +0000 (06:17 -0500)]
Auto-commit of loaddefs files.
Paul Eggert [Wed, 31 Dec 2014 19:59:02 +0000 (11:59 -0800)]
Less 'make' chatter for doc and lisp
[doc/emacs/ChangeLog]
Less 'make' chatter for Emacs doc
* Makefile.in (AM_DEFAULT_VERBOSITY, AM_V_GEN, am__v_GEN_)
(am__v_GEN_0, am__v_GEN_1): New macros, from ../../src/Makefile.in.
(ENVADD, $(buildinfodir)/emacs.info, emacs.html):
Use them.
[doc/lispintro/ChangeLog]
Less 'make' chatter for Emacs doc
* Makefile.in (AM_DEFAULT_VERBOSITY, AM_V_GEN, am__v_GEN_)
(am__v_GEN_0, am__v_GEN_1): New macros, from ../../src/Makefile.in.
(ENVADD, $(buildinfodir)/eintr.info, emacs-lisp-intro.html):
Use them.
[doc/lispref/ChangeLog]
Less 'make' chatter for Emacs doc
* Makefile.in (AM_DEFAULT_VERBOSITY, AM_V_GEN, am__v_GEN_)
(am__v_GEN_0, am__v_GEN_1): New macros, from ../../src/Makefile.in.
(ENVADD, $(buildinfodir)/elisp.info, elisp.html):
Use them.
[doc/misc/ChangeLog]
Less 'make' chatter for Emacs doc
* Makefile.in (AM_DEFAULT_VERBOSITY, AM_V_GEN, am__v_GEN_)
(am__v_GEN_0, am__v_GEN_1): New macros, from ../../src/Makefile.in.
(ENVADD, $(buildinfodir)/%.info, %.html, ${buildinfodir}/ccmode.info)
(${buildinfodir}/efaq%.info, efaq%.html):
Use them.
[lisp/ChangeLog]
Less 'make' chatter in lisp directory
* Makefile.in (AM_DEFAULT_VERBOSITY, AM_V_GEN, am__v_GEN_)
(am__v_GEN_0, am__v_GEN_1): New macros, from ../src/Makefile.in.
(custom-deps, finder-data, autoloads, update-subdirs): Use them.
Paul Eggert [Wed, 31 Dec 2014 15:47:41 +0000 (07:47 -0800)]
Less 'make' chatter at top level
* Makefile.in (AM_DEFAULT_VERBOSITY, AM_V_GEN, am__v_GEN_)
(am__v_GEN_0, am__v_GEN_1, AM_V_at, am__v_at_, am__v_at_0)
(am__v_at_1): New macros, copied from src/Makefile.in.
($(srcdir)/src/config.in, ${srcdir}/info/dir):
Be less chatty when not verbose.
($(srcdir)/src/stamp-h.in): Simplify with '$@'.
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.
Filipp Gunbin [Wed, 31 Dec 2014 14:14:33 +0000 (17:14 +0300)]
Use prefix argument in `info-display-manual'
* lisp/info.el (info-display-manual): Limit the completion alternatives
to currently visited manuals if prefix argument is non-nil.
Paul Eggert [Wed, 31 Dec 2014 07:29:33 +0000 (23:29 -0800)]
Simplify setfattr use by assuming GNU make
* Makefile.in (PAXCTL_if_present, SETFATTR_if_present): New macros.
(emacs$(EXEEXT), temacs$(EXEEXT), bootstrap-emacs$(EXEEXT)): Use them.
Simplify by using GNU make rather than shell conditionals,
by using ln -f rather than rm -f followed by ln,
and by preferring $@ to spelling out the destination.
Paul Eggert [Wed, 31 Dec 2014 00:00:03 +0000 (16:00 -0800)]
* Makefile.in (semantic): Simplify.
Juri Linkov [Tue, 30 Dec 2014 23:50:06 +0000 (01:50 +0200)]
Multi-page isearch support in eww
* lisp/net/eww.el (eww-isearch-next-buffer): New function.
(eww-mode): Set multi-isearch-next-buffer-function to it.
http://lists.gnu.org/archive/html/emacs-devel/2014-12/msg02300.html
Dmitry Gutov [Tue, 30 Dec 2014 19:54:03 +0000 (21:54 +0200)]
(xref-find-definitions): Mention "no identifier at point" case
* lisp/progmodes/xref.el (xref-find-definitions): Mention "no
identifier at point" case in the docstring.
Eli Zaretskii [Tue, 30 Dec 2014 19:51:34 +0000 (21:51 +0200)]
Fix a typo in a comment in the previous commit.
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.
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.
Martin Rudalics [Tue, 30 Dec 2014 09:56:43 +0000 (10:56 +0100)]
Update documentation of Temporary Displays.
* display.texi (Temporary Displays): Amend description of
`with-temp-buffer-window'. Add descriptions for
`with-current-buffer-window', `with-displayed-buffer-window' and
`temp-buffer-resize-mode', `temp-buffer-max-height' and
`temp-buffer-max-width'.
* frame.c (frame_inhibit_implied_resize): Escape left paren in
doc-string.
Paul Eggert [Tue, 30 Dec 2014 06:39:10 +0000 (22:39 -0800)]
Omit trailing white space
This should simplify switching to automated ChangeLogs.
Paul Eggert [Tue, 30 Dec 2014 04:42:26 +0000 (20:42 -0800)]
* PROBLEMS: Omit obsolete mention of FQDNs.
Dmitry Gutov [Tue, 30 Dec 2014 03:18:48 +0000 (05:18 +0200)]
Hide "Set Tags File Name" and the separator when tags are not used
* lisp/menu-bar.el (menu-bar-goto-uses-etags-p): New function.
(menu-bar-goto-menu): Use it to show or hide the `set-tags-name'
and `separator-tag-file' items.
Eli Zaretskii [Mon, 29 Dec 2014 21:02:22 +0000 (23:02 +0200)]
Fix the MS-Windows build.
src/sysdep.c [WINDOWSNT]: Include sys/socket.h, without which this
file doesn't compile on MS-Windows.
Paul Eggert [Mon, 29 Dec 2014 20:45:25 +0000 (12:45 -0800)]
* obsolete/pc-select.el (pc-selection-mode): Use system-type.
This is instead of system-name, which is both wrong here and obsolete.
Paul Eggert [Mon, 29 Dec 2014 20:39:58 +0000 (12:39 -0800)]
Fix previous patch to match its commit message
Paul Eggert [Mon, 29 Dec 2014 20:37:53 +0000 (12:37 -0800)]
system-name's returned value can vary
Also, the system-name variable is now obsolete.
Fixes Bug#19438.
* doc/lispref/os.texi (System Environment):
* etc/NEWS: Document this.
* doc/misc/efaq.texi:
(Displaying the current file name in the titlebar):
* lisp/desktop.el (desktop-save-frameset):
* lisp/dnd.el (dnd-get-local-file-uri):
* lisp/gnus/message.el (message-make-fqdn):
* lisp/gnus/nnvirtual.el (nnvirtual-retrieve-headers)
(nnvirtual-update-xref-header):
* lisp/nxml/rng-uri.el (rng-uri-file-name-1):
* lisp/org/org-clock.el (org-clock-save):
* src/filelock.c (current_lock_owner):
* src/xrdb.c (get_environ_db):
* src/xterm.c (same_x_server):
* src/xterm.c (x_term_init):
Prefer (system-name) to system-name, and avoid naming
locals 'system-name'.
* doc/misc/smtpmail.texi (Server workarounds): Fix grammar.
* lisp/startup.el (system-name): Now an obsolete variable.
* src/editfns.c (cached_system_name): New static var.
(init_and_cache_system_name): New function.
(init_editfns, Fsystem_name): Use it.
(syms_of_editfns): Initialize it and Vsystem_name to the same value.
* src/sysdep.c [HAVE_SOCKETS]: Don't include <sys/socket.h>, <netdb.h>.
(h_errno) [TRY_AGAIN && !HAVE_H_ERRNO]: Remove decl.
(init_system_name) [HAVE_SOCKETS]: Don't canonicalize the name.
Don't create a new string if the current value is already correct.
Michael Albinus [Mon, 29 Dec 2014 16:37:37 +0000 (17:37 +0100)]
Sync with Tramp 2.2.11.
* trampver.texi: Update release number.
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.
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.
Michael Albinus [Mon, 29 Dec 2014 15:27:09 +0000 (16:27 +0100)]
Fix ChangeLog entry.
Dmitry Gutov [Mon, 29 Dec 2014 15:04:51 +0000 (17:04 +0200)]
Update ChangeLog for the latest menu-bar.el change
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)
K. Handa [Mon, 29 Dec 2014 13:54:07 +0000 (22:54 +0900)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs.
K. Handa [Mon, 29 Dec 2014 13:39:38 +0000 (22:39 +0900)]
international/mule.el (make-translation-table-from-alist): Accept nil or zero-length vector for FROM and TO.
Lars Ingebrigtsen [Mon, 29 Dec 2014 13:04:25 +0000 (13:04 +0000)]
lisp/gnus/gnus-cloud.el: Start collecting a newsrc
Lars Ingebrigtsen [Mon, 29 Dec 2014 12:47:43 +0000 (13:47 +0100)]
Make eww rendering default to `window-width' again
* lisp/gnus/mm-decode.el (mm-shr): Bind `shr-width' to `fill-column'
so that lines don't get overlong when responding.
* lisp/net/eww.el (eww-mode): Truncate overlong lines for prettier
display when resizing.
* lisp/net/shr.el (shr-width): Default to using the window width when
rendering.
Ulrich Müller [Mon, 29 Dec 2014 10:20:50 +0000 (11:20 +0100)]
CONTRIBUTE: Use consistent spelling for 'ChangeLog'.
Dmitry Gutov [Mon, 29 Dec 2014 02:21:51 +0000 (04:21 +0200)]
Unbreak jumping to an alias's definition
* lisp/emacs-lisp/find-func.el (find-function-library): Return a pair
(ORIG-FUNCTION . LIBRARY) instead of just its second element.
(find-function-noselect): Use it.
* lisp/progmodes/elisp-mode.el (elisp--xref-identifier-file): Rename to
`elisp--xref-identifier-location', incorporate logic from
`elisp--xref-find-definitions', use the changed
`find-function-library' return value.
Juri Linkov [Mon, 29 Dec 2014 00:54:41 +0000 (02:54 +0200)]
Small fixes in etc/grep.txt
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.
Juri Linkov [Mon, 29 Dec 2014 00:47:05 +0000 (02:47 +0200)]
* lisp/vc/vc-dir.el (vc-dir-display-file): New command.
(vc-dir-mode-map): Bind it to "\C-o".
(vc-dir-menu-map): Add it to menu.
Fixes: debbugs:19450
Dmitry Gutov [Mon, 29 Dec 2014 00:36:57 +0000 (02:36 +0200)]
Declare many etags command obsolete; update the goto menu
* lisp/menu-bar.el (menu-bar-goto-menu): Replace all but one etags item
with xref ones.
* lisp/progmodes/etags.el (find-tag-other-window)
(find-tag-other-frame, find-tag-regexp, tags-loop-continue)
(tags-apropos): Declare obsolete.
Paul Eggert [Sun, 28 Dec 2014 23:06:16 +0000 (15:06 -0800)]
Spelling fixes
Eli Zaretskii [Sun, 28 Dec 2014 18:32:53 +0000 (20:32 +0200)]
src/w32proc.c (Fw32_get_codepage_charset): Doc fix. (Bug#19458)
Paul Eggert [Sun, 28 Dec 2014 18:17:48 +0000 (10:17 -0800)]
Merge from origin/emacs-24
f646cd9 * build-aux/git-hooks/commit-msg: Allow tabs.
Paul Eggert [Sun, 28 Dec 2014 18:14:19 +0000 (10:14 -0800)]
Merge from origin/emacs-24
The following commits were skipped:
39eaef9 lisp/international/mule.el (define-coding-system): Fix typos in the doc string. Add missing ChangeLog entry for the previous commit.
df932d8 lisp/international/mule.el (define-coding-system): Improve docstring.
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.
Paul Eggert [Sun, 28 Dec 2014 17:00:14 +0000 (09:00 -0800)]
Fix produce_composite_width typo
* term.c (produce_composite_glyph):
Fix typo that confused number of columns for pixel width.
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)
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)
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.
K. Handa [Sun, 28 Dec 2014 14:16:13 +0000 (23:16 +0900)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Ivan Shmakov [Sun, 28 Dec 2014 14:06:05 +0000 (15:06 +0100)]
shr table header/footer fixes
Fixes: debbugs:19444
* lisp/net/shr.el (shr-tag-table): Fix handling of tbody/header/footer
elements in tables.
Ivan Shmakov [Sun, 28 Dec 2014 13:54:46 +0000 (14:54 +0100)]
Fix eww typo in "up" handling
Fixes: debbugs:19445
* lisp/net/eww.el (eww-handle-link): Fix typo in "up" rel handling.
K. Handa [Sun, 28 Dec 2014 13:18:39 +0000 (22:18 +0900)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Kenichi Handa [Sun, 28 Dec 2014 13:17:33 +0000 (22:17 +0900)]
(define-coding-system): Improve docstring.
Paul Eggert [Fri, 26 Dec 2014 17:32:06 +0000 (09:32 -0800)]
Wrap dll functions more simply
* decompress.c, gnutls.c, image.c, xml.c:
If WINDOWSNT, use '#define FOO fn_FOO' to wrap dll functions,
rather than the inverse when not WINDOWSNT. This isolates the
fn_* business into the WINDOWSNT-specific section of the code,
which makes it easier to maintain the generic code.
* decompress.c (DEF_ZLIB_FN, LOAD_ZLIB_FN):
* gnutls.c (DEF_GNUTLS_FN, LOAD_GNUTLS_FN):
* image.c (DEF_IMGLIB_FN, LOAD_IMGLIB_FN):
* xml.c (DEF_XML2_FN, LOAD_XML2_FN):
Remove. All uses replaced by DEF_DLL_FN.
* w32.h (DEF_DLL_FN, LOAD_DLL_FN): New macros.
Paul Eggert [Sun, 28 Dec 2014 08:07:00 +0000 (00:07 -0800)]
Merge from origin/emacs-24
b54f572 Port memory-full checking to GnuTLS 3.3
Conflicts:
src/ChangeLog
src/gnutls.c
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.
Juri Linkov [Sun, 28 Dec 2014 00:52:50 +0000 (02:52 +0200)]
Avoid compilation warning in saveplace.el for dired-current-directory
Juri Linkov [Sun, 28 Dec 2014 00:48:05 +0000 (02:48 +0200)]
Use diff faces for compare-windows
* lisp/vc/compare-w.el: Require diff-mode for diff faces.
(compare-windows-removed, compare-windows-added): New faces
inheriting from diff faces.
(compare-windows): Define obsolete face alias.
(compare-windows-highlight): Replace face `compare-windows' with
new faces `compare-windows-added' and `compare-windows-removed'.
(compare-windows-get-recent-window): Signal an error when
no other window is found.
Fixes: debbugs:19451
Fabián Ezequiel Gallina [Sat, 27 Dec 2014 23:58:45 +0000 (20:58 -0300)]
python.el: Native readline completion.
This commit adds native readline completion that fallbacks to the old
mechanism when it cannot be used for the current interpreter.
* lisp/progmodes/python.el (python-shell-completion-native-disabled-interpreters)
(python-shell-completion-native-enable)
(python-shell-completion-native-output-timeout): New defcustoms.
(python-shell-completion-native-interpreter-disabled-p)
(python-shell-completion-native-try)
(python-shell-completion-native-setup)
(python-shell-completion-native-turn-off)
(python-shell-completion-native-turn-on)
(python-shell-completion-native-turn-on-maybe)
(python-shell-completion-native-turn-on-maybe-with-msg)
(python-shell-completion-native-toggle): New functions.
(python-shell-completion-native-get-completions): New function.
(python-shell-completion-at-point): Use it.
* test/automated/python-tests.el
(python-shell-completion-native-interpreter-disabled-p-1): New
test.
Dmitry Gutov [Sat, 27 Dec 2014 23:54:43 +0000 (01:54 +0200)]
(elisp--xref-identifier-file): Skip features that have no sources
* lisp/progmodes/elisp-mode.el (elisp--xref-identifier-file):
Skip features that have no sources.
Glenn Morris [Sat, 27 Dec 2014 23:33:08 +0000 (15:33 -0800)]
* test/automated/let-alist.el: Load dependency.
Dmitry Gutov [Sat, 27 Dec 2014 23:24:17 +0000 (01:24 +0200)]
Handle nil value of suggest-key-bindings
* lisp/simple.el (execute-extended-command):
When `suggest-key-bindings' is nil, don't.
Fabián Ezequiel Gallina [Sat, 27 Dec 2014 23:12:00 +0000 (20:12 -0300)]
python.el: Enhance shell user interaction and deprecate python-shell-get-or-create-process.
* lisp/progmodes/python.el
(python-shell-get-process-or-error): New function.
(python-shell-with-shell-buffer): Use it.
(python-shell-send-string, python-shell-send-region)
(python-shell-send-buffer, python-shell-send-defun)
(python-shell-send-file, python-shell-switch-to-shell): Use it.
Add argument MSG to display user-friendly message when no process
is running.
(python-shell-switch-to-shell): Call pop-to-buffer with NORECORD.
(python-shell-make-comint): Rename argument SHOW from POP. Use
display-buffer instead of pop-to-buffer.
(run-python): Doc fix. Return process.
(python-shell-get-or-create-process): Make obsolete.
* test/automated/python-tests.el (python-shell-get-or-create-process-1)
(python-shell-get-or-create-process-2)
(python-shell-get-or-create-process-3): Remove tests.
Fabián Ezequiel Gallina [Sat, 27 Dec 2014 23:09:32 +0000 (20:09 -0300)]
Merge from origin/emacs-24
433af0a * lisp/progmodes/python.el (python-shell-buffer-substring): Handle cornercase when region sent starts at point-min.
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.
Paul Eggert [Sat, 27 Dec 2014 20:00:29 +0000 (12:00 -0800)]
Fix parse_settings to match internal documentation
* xsettings.c (parse_settings): Return the number of settings seen.
Count the settings changes accurately.
(read_settings): Don't confuse number of settings changes with
the return code from XGetWindowProperty.
Eli Zaretskii [Sat, 27 Dec 2014 19:46:03 +0000 (21:46 +0200)]
Fix compilation of lib-src executables on MS-Windows.
lib-src/Makefile.in (etags_libs, ebrowse${EXEEXT}, profile${EXEEXT})
(make-docfile${EXEEXT}, movemail${EXEEXT})
(update-game-score${EXEEXT}): Put $(NTLIB) before $(LOADLIBES),
since GCC sometimes calls stpcpy when it sees strcpy, under
optimization switches. Reported by Dani Moncayo <dmoncayo@gmail.com>.
Fabián Ezequiel Gallina [Sat, 27 Dec 2014 17:15:05 +0000 (14:15 -0300)]
Sanitize ChangeLog entries for previous merges.
Fabián Ezequiel Gallina [Sat, 27 Dec 2014 16:31:20 +0000 (13:31 -0300)]
Merge from origin/emacs-24
a5f38fa Fix ChangeLog typo
c6400e1 Fix composition of characters from Syriac and Arabis scripts.
7e9dfde python.el: Fix message when sending region.
800260c python.el: Cleanup temp files even with eval errors.
ed65b91 Fix for previous commit
2dd5163 python.el: Handle file encoding for shell.
7aa506e Spelling fixes
4cd6d77 * automated/tramp-tests.el (tramp-test17-insert-directory): Do not expect a given order of "." and "..".
a41d07b Fix rendering of composed caharacters on the mode line. (Bug#19435)
b70977c Small doc markup fixes
73c050c * doc/lispref/modes.texi (Defining Minor Modes, SMIE Lexer): Markup fixes.
1783e6c ChangeLog fix
c741b1b TUTORIAL.es: Improve style consistency
f89efea TUTORIAL.es: spelling fixes
0d48826 Avoid compiler warning.
Conflicts:
doc/lispref/ChangeLog
doc/lispref/control.texi
etc/ChangeLog
lisp/ChangeLog
src/ChangeLog
test/ChangeLog
Fabián Ezequiel Gallina [Sat, 27 Dec 2014 16:27:15 +0000 (13:27 -0300)]
Merge from origin/emacs-24
The following commit was skipped:
5fc8210 Backport: Memory leak fix and 19133 fix.
Fabián Ezequiel Gallina [Sat, 27 Dec 2014 16:26:58 +0000 (13:26 -0300)]
Merge from origin/emacs-24
bef46ba Fix bad bug number reference, shall be 19427.
Conflicts:
src/ChangeLog
Fabián Ezequiel Gallina [Sat, 27 Dec 2014 16:21:17 +0000 (13:21 -0300)]
Merge from origin/emacs-24
The following commit was skipped:
2566f38 Backport: Don't cache images in nsimage.m (Bug#18918).
Fabián Ezequiel Gallina [Sat, 27 Dec 2014 16:21:17 +0000 (13:21 -0300)]
Merge from origin/emacs-24
216c6aa * 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.
20cfd24 Improve indexing on the chapter/section/subsection levels.
14c3739 * lisp/progmodes/js.el (js-syntax-propertize): "return" can't be divided.
ea78112 * net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band): Use "\n" as end-of-line delimeter for passwords, when running on MS Windows.
012479a * lisp/progmodes/sh-script.el: Don't set global indent-line-function
75e114f Fix line numbers on Python shell.
d0fd23c doc/emacs/buffers.texi (Kill Buffer): Improve indexing.
8e818d1 Keep maximized when going fullscreen.
749813e python.el: Fix electric colon behavior
936d5e5 Fix last patch.
74d3b20 Fixes: debbugs:18623
Conflicts:
doc/emacs/ChangeLog
doc/lispref/ChangeLog
doc/lispref/functions.texi
lisp/ChangeLog
src/ChangeLog
src/xterm.c
test/ChangeLog
Fabián Ezequiel Gallina [Sat, 27 Dec 2014 16:17:18 +0000 (13:17 -0300)]
Merge from origin/emacs-24
The following commit was skipped:
48a9d9f Merge branch 'emacs-24' of git.sv.gnu.org:/srv/git/emacs into emacs-24
Fabián Ezequiel Gallina [Sat, 27 Dec 2014 16:16:44 +0000 (13:16 -0300)]
Merge from origin/emacs-24
230c010 * net/tramp-sh.el (tramp-send-command-and-read): New optional arg MARKER. (tramp-get-remote-path): Use it.
Conflicts:
lisp/ChangeLog
Fabián Ezequiel Gallina [Sat, 27 Dec 2014 16:15:55 +0000 (13:15 -0300)]
Merge from origin/emacs-24
The following commit was skipped:
09ab6fe Merge branch 'emacs-24' of git.sv.gnu.org:/srv/git/emacs into emacs-24
Fabián Ezequiel Gallina [Sat, 27 Dec 2014 16:15:55 +0000 (13:15 -0300)]
Merge from origin/emacs-24
2616307 * net/tramp-sh.el (tramp-send-command-and-read): New optional arg MARKER. (tramp-get-remote-path): Use it.
c773edc * 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.
8032fc1 * .gitignore: Ignore /conftest*.
fb420e7 * lisp/subr.el (sit-for): Tweak docstring.
061db13 Fix vc-git-dir-status-files WRT up-to-date vs edited
bb57c94 Consider electric-pair-mode in tex-mode.
7b94572 * test/automated/flymake/warnpred/test.pl: Tweak earlier change.
59c218f ChangeLog fix
db2a768 * test/automated/flymake/warnpred/test.pl: Tweak format
d9005dd src/gnutls.c (gnutls_init): Fix deprecation warning from GCC.
Conflicts:
ChangeLog
lisp/ChangeLog
src/ChangeLog
test/ChangeLog
Fabián Ezequiel Gallina [Sat, 27 Dec 2014 16:10:44 +0000 (13:10 -0300)]
Fix ChangeLog typo
Dmitry Gutov [Sat, 27 Dec 2014 14:06:37 +0000 (16:06 +0200)]
elisp-xref-find: Don't create buffers eagerly
* lisp/emacs-lisp/find-func.el (find-function-library): New function,
extracted from `find-function-noselect'.
* lisp/progmodes/elisp-mode.el (elisp--identifier-location): Fold back
into `elisp--company-location'.
(elisp--identifier-completion-table): Rename to
`elisp--identifier-completion-table', and do not include just any
symbols with a property list.
(elisp-completion-at-point): Revert the 2014-12-25 change.
(elisp--xref-identifier-file): New function.
(elisp--xref-find-definitions): Use it.
* lisp/progmodes/xref.el (xref-elisp-location): New class.
(xref-make-elisp-location): New function.
(xref-location-marker): New implementation.
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.
Glenn Morris [Sat, 27 Dec 2014 11:17:50 +0000 (06:17 -0500)]
Auto-commit of loaddefs files.
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.
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.
Fabián Ezequiel Gallina [Sat, 27 Dec 2014 06:32:01 +0000 (03:32 -0300)]
Fix for previous commit
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.
Juri Linkov [Sat, 27 Dec 2014 00:54:56 +0000 (02:54 +0200)]
Avoid duplicate calls of window-height in with-displayed-buffer-window
* lisp/minibuffer.el (minibuffer-completion-help):
Use shrink-window-if-larger-than-buffer in window-height
when temp-buffer-resize-mode is nil.
* lisp/window.el (with-displayed-buffer-window): Remove window-height
from the action alist in the temp-buffer-window-show call
when window-height is handled explicitly afterwards.
Fixes: debbugs:19355