]> code.delx.au - gnu-emacs/log
gnu-emacs
8 years agoMake (setf (image-property ...)) return VALUE
Lars Ingebrigtsen [Tue, 23 Feb 2016 01:26:30 +0000 (12:26 +1100)]
Make (setf (image-property ...)) return VALUE

* lisp/image.el (image--set-property): Return VALUE, not IMAGE.

8 years agoMerge from origin/emacs-25
John Wiegley [Mon, 22 Feb 2016 19:33:54 +0000 (11:33 -0800)]
Merge from origin/emacs-25

a9c48d5 Additional fixes for file notification
6bd9d69 Fix documentation of 'global-disable-point-adjustment'
8c22ac9 ; Spelling fix
2975784 Set file modes of pinentry socket for extra safety
2667b3e Clarify GnuPG version compatibility chapter
5e34c36 Revert "Change the default socket location for pinentry"
e19c1c3 Kill off xref--display-history
5698947 Keep the xref buffer visible until the user quits it explicitly
e34fbde Change the default socket location for pinentry
5f89658 Mention how to enable pinentry feature
db51224 Sync with gnulib
aa5a794 Remove `semanticdb-save-all-db-idle' from `auto-save-hook'
2d8b2fd Restore point when writing semantic table to disk
27d3430 Mention pinentry.el in epa manual
5baa001 Fix Bug#22736
7261355 Grammar fix in doc string
d0f3b18 Naming fix for consistency
74ec92d Prefer customized value for GnuPG executable
ea0b604 Fix memory reservation on MS-Windows
c5f72aa Update NextStep readme and add wish list.
6de26a7 Report also result in `file-notify--test-event-handler'
5d17ae7 Improve file-notify-test08-watched-file-in-watched-dir
1cb1268 Fix todo-mode item date editing bugs
1e996cf Fix "[:upper:]" for non-ASCII characters
896f993 Allow customising the article mode cursor behavior
24c1c1d Use pop-to-buffer-same-window in woman.el
2a75f64 New filenotify test for bug#22736
c9bccf7 Report critical battery errors
d675db9 Make eww message toggling message clearer
5e0bb40 * lisp/calc/calc-units.el (math-standard-units): Update to 2014 CODATA adjustment.
fa8fd65 ; Improve character-folding entries in NEWS
3722a69 Fix bugs in window resizing code
289d5c6 Fix decoding DOS EOL in a unibyte buffer
2abcb06 Correct c-parse-state cache manipulation error.
14aec91 Take advantage of new GnuPG version check function
e80c2a7 Make GnuPG version check robuster
15a9464 Fix x-load-color-file pointer signedness
132dbf0 * lisp/time-stamp.el (time-stamp-time-zone): Fix doc string punct.
78ab6f1 Follow convention for greek letter constants.
106b5bb Add Stefan-Boltzmann constant to calc units table.
b96baa8 * lisp/calc/calc-units.el (math-build-units-table-buffer): Use special-mode.
5f91cf9 Avoid loading cl-lib for term/xterm.elc, eg in -Q -nw.  (Bug#22669)
2d40f7d Fix soffice UserInstallation-URL for Windows
b1a3ebe Fix display of <pre> elements
57d0e3d ; * lisp/help-fns.el: Remove outdated comment.
7a0628d ; * admin/make-tarball.txt: Mention cleaning.

8 years agoAdditional fixes for file notification
Michael Albinus [Mon, 22 Feb 2016 17:52:37 +0000 (18:52 +0100)]
Additional fixes for file notification

* lisp/filenotify.el (top): Require 'cl when compiling.
(file-notify--event-watched-file): New defun.
(file-notify--rm-descriptor, file-notify-callback):
Handle case of several monitors running in parallel.

* test/automated/file-notify-tests.el
(file-notify--test-event-test): Simplify test.
(file-notify--test-with-events): Get rid of outer definition.
Check also results of tests performed in callbacks.
(file-notify-test02-events): No wrapping when calling
`file-notify-rm-watch'.  No special checking for callback tests.
(file-notify-test07-backup): Adapt expected events for gfilenotify.
(file-notify-test08-watched-file-in-watched-dir): Improve.

8 years agoFix documentation of 'global-disable-point-adjustment'
Eli Zaretskii [Mon, 22 Feb 2016 17:30:01 +0000 (19:30 +0200)]
Fix documentation of 'global-disable-point-adjustment'

* src/keyboard.c (syms_of_keyboard) <disable-point-adjustment>
<global-disable-point-adjustment>: Doc fixes.  (Bug#22771)

8 years ago; Spelling fix
Paul Eggert [Mon, 22 Feb 2016 15:44:01 +0000 (07:44 -0800)]
; Spelling fix

8 years agolisp/calendar/appt.el (appt-delete-window): Check if buffer is live
Oleh Krehel [Mon, 22 Feb 2016 13:43:23 +0000 (14:43 +0100)]
lisp/calendar/appt.el (appt-delete-window): Check if buffer is live

* lisp/calendar/appt.el (appt-delete-window): Avoid trying to delete a
  non-existing buffer.

8 years agoMention the further asynchronousity
Lars Ingebrigtsen [Mon, 22 Feb 2016 05:18:32 +0000 (16:18 +1100)]
Mention the further asynchronousity

8 years agoFix async TLS boot problem
Lars Ingebrigtsen [Mon, 22 Feb 2016 04:29:15 +0000 (15:29 +1100)]
Fix async TLS boot problem

* src/process.c (wait_reading_process_output): Verify the boot
of the correct process.

8 years agoClean up forgotten text in manual
Lars Ingebrigtsen [Mon, 22 Feb 2016 04:20:14 +0000 (15:20 +1100)]
Clean up forgotten text in manual

* doc/lispref/display.texi (Defining Images): Remove example
forgotten when making previous change.

8 years agoClean up debugging code
Lars Ingebrigtsen [Mon, 22 Feb 2016 04:18:41 +0000 (15:18 +1100)]
Clean up debugging code

* src/process.c (Fmake_network_process): Remove debugging printf.
(wait_for_socket_fds, wait_while_connecting)
(wait_for_tls_negotiation): Remove newlines from messages.

8 years agoFix merge conflicts in network-stream-tests.el
Lars Ingebrigtsen [Mon, 22 Feb 2016 04:06:33 +0000 (15:06 +1100)]
Fix merge conflicts in network-stream-tests.el

8 years agoPort recent filevercmp addition to MS-Windows
Paul Eggert [Mon, 22 Feb 2016 03:59:44 +0000 (19:59 -0800)]
Port recent filevercmp addition to MS-Windows

Reported by Andy Moreton in:
http://lists.gnu.org/archive/html/emacs-devel/2016-02/msg01302.html
* nt/gnulib.mk (libgnu_a_SOURCES): Add filevercmp.c.
(EXTRA_DIST): Add filevercmp.h.

8 years agoSet file modes of pinentry socket for extra safety
Daiki Ueno [Mon, 22 Feb 2016 02:28:11 +0000 (11:28 +0900)]
Set file modes of pinentry socket for extra safety

* lisp/net/pinentry.el: Require 'cl-lib for `cl-letf'.
(pinentry-start): Change the file modes of the socket file to 0700.
This is just for extra safety since the parent directory is already
protected with `server-ensure-safe-dir'.

8 years agoadd_to_log expects Lisp parameters origin/feature/async-dns
Lars Ingebrigtsen [Mon, 22 Feb 2016 02:34:54 +0000 (13:34 +1100)]
add_to_log expects Lisp parameters

8 years agoMention sentinels in conjunction with :nowait t.
Lars Ingebrigtsen [Mon, 22 Feb 2016 02:20:04 +0000 (13:20 +1100)]
Mention sentinels in conjunction with :nowait t.

* doc/lispref/processes.texi (Network Processes): Mention the
recommended way of using sentinels with :nowait t.

8 years agoMention in the doc strings that process functions may block
Lars Ingebrigtsen [Mon, 22 Feb 2016 02:14:35 +0000 (13:14 +1100)]
Mention in the doc strings that process functions may block

(Fprocess_contact, Fprocess_datagram_address)
(Fset_process_datagram_address, Fset_network_process_option)
(Fprocess_send_region, Fprocess_send_string): Mention that the
functions may block.
(Fset_process_coding_system): Ditto.

8 years agoAdd blocker warnings to the *Messages* buffer
Lars Ingebrigtsen [Mon, 22 Feb 2016 02:07:27 +0000 (13:07 +1100)]
Add blocker warnings to the *Messages* buffer

* src/process.c (wait_for_socket_fds): Add warning to the log.
(wait_while_connecting): Ditto.
(wait_for_tls_negotiation): Ditto.

8 years agoRework the image property getter/setters
Lars Ingebrigtsen [Mon, 22 Feb 2016 01:50:40 +0000 (12:50 +1100)]
Rework the image property getter/setters

* doc/lispref/display.texi (Defining Images): Document the
renamed `image-get/set-property' functions.

* lisp/image.el (image--set-property): Rename from
image-set-property.
(image-property): Declare a setf form.
(image-property): Rename from `image-get-property'.

8 years agoClarify GnuPG version compatibility chapter
Daiki Ueno [Mon, 22 Feb 2016 01:40:42 +0000 (10:40 +0900)]
Clarify GnuPG version compatibility chapter

* doc/misc/epa.texi (GnuPG version compatibility): Make the gpg-agent
description a bit clearer.

8 years agoRevert "Change the default socket location for pinentry"
Daiki Ueno [Mon, 22 Feb 2016 01:45:53 +0000 (10:45 +0900)]
Revert "Change the default socket location for pinentry"

This reverts commit e34fbdee8aca84b98393b06b2450837d175999ca.
It turned out that the address is fixed in Pinentry itself.

8 years agoKill off xref--display-history
Dmitry Gutov [Sun, 21 Feb 2016 22:40:53 +0000 (00:40 +0200)]
Kill off xref--display-history

Now that the core workflow keeps the xref window visible, there's
less value in storing this history.  And it never was
comprehensive enough to undo scrolling changes.
* lisp/progmodes/xref.el (xref--display-history)
(xref--save-to-history, xref-quit): Remove.
(xref--show-pos-in-buf): Update accordingly.
(xref--xref-buffer-mode-map): Remove xref-quit binding.

8 years agoKeep the xref buffer visible until the user quits it explicitly
Dmitry Gutov [Sun, 21 Feb 2016 22:26:24 +0000 (00:26 +0200)]
Keep the xref buffer visible until the user quits it explicitly

* lisp/progmodes/xref.el (xref--pop-to-location):
Rename WINDOW argument to ACTION.
(xref--with-dedicated-window): New macro.
(xref--show-pos-in-buf): Rename from `xref--display-position'.
Add and handle new argument, SELECTED.  Use the above macro.
(xref--show-location): Add SELECTED argument.
(xref-show-location-at-point): Make an effort to avoid the
original window when showing the location.
(xref-goto-xref): Don't quit the xref window (bug#20487 and
http://lists.gnu.org/archive/html/emacs-devel/2016-01/msg01133.html).
(xref--query-replace-1): Use xref--with-dedicated-window as well.
(xref--next-error-function): Call xref--show-location instead of
xref--pop-to-location.
(xref--show-xrefs): Rename WINDOW argument to DISPLAY-ACTION.
Only pass that value to xref--pop-to-location.  Pass the current
selected window to xref-show-xrefs-function as the `window'
property.
(xref--find-xrefs, xref--find-definitions): Rename WINDOW argument
to DISPLAY-ACTION as well.

8 years agoUse Gnulib filevercmp for version comparison
Paul Eggert [Sun, 21 Feb 2016 21:25:24 +0000 (13:25 -0800)]
Use Gnulib filevercmp for version comparison

* admin/merge-gnulib (GNULIB_MODULES): Add filevercmp.
* doc/lispref/strings.texi (Text Comparison):
* etc/NEWS, src/fns.c:
* test/src/fns-tests.el (fns-tests-string-version-lessp):
Rename newly-introduced function to string-version-lessp, by
analogy with strverscmp.
* lib/filevercmp.c, lib/filevercmp.h: New files, copied from gnulib.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* src/fns.c: Include <filevercmp.h>.
(gather_number_from_string): Remove.
(Fstring_version_lessp): Reimplement via filevercmp.

8 years agoChange the default socket location for pinentry
Daiki Ueno [Sun, 21 Feb 2016 21:06:50 +0000 (06:06 +0900)]
Change the default socket location for pinentry

* lisp/net/pinentry.el: Require 'cl-lib for `cl-letf'.
(pinentry--socket-dir): Change the default from /tmp/emacsXXX to
~/.emacs.d/pinentry.
(pinentry-start): Change the file modes of the socket file to 0700.
This is just for extra safety since the parent directory is already
protected with `server-ensure-safe-dir'.

8 years agoMention how to enable pinentry feature
Daiki Ueno [Sun, 21 Feb 2016 21:05:14 +0000 (06:05 +0900)]
Mention how to enable pinentry feature

* etc/NEWS: Mention "gpgconf --reload gpg-agent".
* lisp/net/pinentry.el: Likewise.

8 years agoSync with gnulib
Paul Eggert [Sun, 21 Feb 2016 20:34:00 +0000 (12:34 -0800)]
Sync with gnulib

This incorporates:
2016-02-10 stdalign: port to older HP and IBM cc
* doc/misc/texinfo.tex, lib/stdalign.in.h: Copy from gnulib.

8 years agoRemove `semanticdb-save-all-db-idle' from `auto-save-hook'
David Engster [Sun, 21 Feb 2016 16:16:45 +0000 (17:16 +0100)]
Remove `semanticdb-save-all-db-idle' from `auto-save-hook'

* lisp/cedet/semantic/db-mode.el (semanticdb-hooks): Do not put
  `semanticdb-save-all-db-idle' into `auto-save-hook'. The latter is
  not an idle hook, so it's not appropriate to call it there. It will
  already be called in the `semantic-idle-work-core-handler', which
  runs when Emacs is actually idle.

8 years agoRestore point when writing semantic table to disk
David Engster [Sun, 21 Feb 2016 16:11:01 +0000 (17:11 +0100)]
Restore point when writing semantic table to disk

* lisp/cedet/semantic/db-file.el (object-write): Wrap call to
  `semantic-fetch-tags' in `save-excursion', since it might move point
  in current buffer. (Bug #22287)

8 years agoMention pinentry.el in epa manual
Daiki Ueno [Sun, 21 Feb 2016 09:20:40 +0000 (18:20 +0900)]
Mention pinentry.el in epa manual

* doc/misc/epa.texi (GnuPG version compatibility): New chapter,
describing the differences between three GnuPG branches, and how
to enable pinentry.el.
(Caching Passphrases): Add xref to the compatibility chapter.

8 years agoFix Bug#22736
Michael Albinus [Sun, 21 Feb 2016 08:58:55 +0000 (09:58 +0100)]
Fix Bug#22736

* lisp/filenotify.el (file-notify-callback): Use the proper
descriptor when calling the callback.  (Bug#22736)

* test/automated/file-notify-tests.el
(file-notify--test-event-handler): Deactivate trace.
(file-notify-test08-watched-file-in-watched-dir): Bind
`file-notify--test-tmpfile' temporarily in `dir-callback'.

8 years agoAdd a function to delete URL cookies
Lars Ingebrigtsen [Sun, 21 Feb 2016 05:57:04 +0000 (16:57 +1100)]
Add a function to delete URL cookies

* doc/misc/url.texi (Cookies): Document
url-cookie-delete-cookies.

* lisp/url/url-cookie.el (url-cookie-delete-cookies): New function.

8 years agoAvoid integer overflows in string-numeric-lessp
Lars Ingebrigtsen [Sun, 21 Feb 2016 05:28:37 +0000 (16:28 +1100)]
Avoid integer overflows in string-numeric-lessp

* src/fns.c (Fstring_numeric_lessp): If we have an integer
overflow, compare lexicographically.

8 years agoAdd the string-numeric-lessp function
Lars Ingebrigtsen [Sun, 21 Feb 2016 04:32:45 +0000 (15:32 +1100)]
Add the string-numeric-lessp function

* doc/lispref/strings.texi (Text Comparison): Document
`string-numerical-lessp'.

* src/fns.c (Fstring_numeric_lessp): New function.
(gather_number_from_string): Helper function for that function.

* test/src/fns-tests.el (fns-tests-string-numeric-lessp): Add tests.

8 years agoClarify levels of :nowait t.
Lars Ingebrigtsen [Sun, 21 Feb 2016 03:08:17 +0000 (14:08 +1100)]
Clarify levels of :nowait t.

* doc/lispref/processes.texi (Network Processes): Mention
levels of asynchronicity.

8 years agoRespect DNS timeouts
Alain Schneble [Sun, 21 Feb 2016 02:36:25 +0000 (13:36 +1100)]
Respect DNS timeouts

* src/process.c (check_for_dns): If the async DNS request
failed and the associated process is still in "connect" state,
deactivate the process and set status to "failed".

8 years agoGrammar fix in doc string
Wieland Hoffmann [Sun, 21 Feb 2016 02:32:22 +0000 (13:32 +1100)]
Grammar fix in doc string

* lisp/custom.el (defgroup): Grammar fix in doc string.

Copyright-paperwork-exempt: yes

8 years agoNaming fix for consistency
Daiki Ueno [Sat, 20 Feb 2016 22:26:40 +0000 (07:26 +0900)]
Naming fix for consistency

* lisp/epg-config.el (epg-find-configuration): Rename from
`epg-configuration-find' to be consistent with other epg-* functions.
Change all callers.

8 years agoPrefer customized value for GnuPG executable
Daiki Ueno [Sat, 20 Feb 2016 22:11:04 +0000 (07:11 +0900)]
Prefer customized value for GnuPG executable

* lisp/epg-config.el (epg-configuration-find): Don't check GPG
configuration if it is already set with custom.  (Bug#22747)

8 years agoFix memory reservation on MS-Windows
Eli Zaretskii [Sat, 20 Feb 2016 16:59:14 +0000 (18:59 +0200)]
Fix memory reservation on MS-Windows

* src/w32heap.c (mmap_alloc): Reserve memory in 64KB granular
units.  This avoids leaving gaps in reserved memory regions that
no one can use, since memory reservation must produce 64KB-aligned
addresses.  (Bug#22526)

8 years agoUpdate NextStep readme and add wish list.
Anders Lindgren [Sat, 20 Feb 2016 15:24:40 +0000 (16:24 +0100)]
Update NextStep readme and add wish list.

* nextstep/README: Rewritten from scratch. New sections on
"History", "Overview of Cocoa and Objective-C", "Guidelines",
"Tracing Support", and "GNUStep". Expanded the "See Also" section.
* nextstep/WISHLIST: New file containing list of issues and ideas
associated with the NS port of Emacs.

8 years agoReport also result in `file-notify--test-event-handler'
Michael Albinus [Sat, 20 Feb 2016 13:20:54 +0000 (14:20 +0100)]
Report also result in `file-notify--test-event-handler'

8 years agoImprove file-notify-test08-watched-file-in-watched-dir
Michael Albinus [Sat, 20 Feb 2016 13:04:36 +0000 (14:04 +0100)]
Improve file-notify-test08-watched-file-in-watched-dir

* test/automated/file-notify-tests.el (file-notify--test-desc2):
New variable.
(file-notify--test-cleanup): Use it.
(file-notify--test-event-handler): Enable trace.
(file-notify-test08-watched-file-in-watched-dir): Tag it as
:expensive-test.  Rewrite callbacks to use
`file-notify--test-event-handler'.  Read events in loop.  Check
`file-notify--test-results'.
(file-notify-test08-watched-file-in-watched-dir): Fix docstring.

8 years agoFix todo-mode item date editing bugs
Stephen Berman [Sat, 20 Feb 2016 12:44:47 +0000 (13:44 +0100)]
Fix todo-mode item date editing bugs

* lisp/calendar/todo-mode.el (todo-edit-item--header): Prevent out of
range error by making sure the value of the numerical month date
component cannot be nil.  Prevent wrong type error on trying to edit
day number in February by making sure numerical instead of string
value of the year component is passed to todo-read-date.
(todo-read-date): When using the numerical month date component make
sure to use `*' for an arbitrary month instead of its numerical value.

8 years agoFix "[:upper:]" for non-ASCII characters
Eli Zaretskii [Sat, 20 Feb 2016 11:03:20 +0000 (13:03 +0200)]
Fix "[:upper:]" for non-ASCII characters

* src/regex.c (re_match_2_internal): Support [:upper:] and
[:lower:] for non-ASCII characters.  (Bug#18150)

8 years agoAllow customising the article mode cursor behavior
Lars Ingebrigtsen [Sat, 20 Feb 2016 08:05:45 +0000 (19:05 +1100)]
Allow customising the article mode cursor behavior

* doc/misc/gnus.texi (HTML): Mention gnus-article-show-cursor.

* lisp/gnus/gnus-art.el (gnus-article-show-cursor): New variable.
(gnus-article-mode): Use it.

8 years agoUse pop-to-buffer-same-window in woman.el
Ari Roponen [Sat, 20 Feb 2016 07:57:44 +0000 (18:57 +1100)]
Use pop-to-buffer-same-window in woman.el

* lisp/woman.el (woman-really-find-file): Work around going to
the wrong buffer by using `pop-to-buffer-same-window' (bug#22332).
(WoMan-find-buffer): Ditto.

8 years agoAdd a frame around the placeholder image in shr
Lars Ingebrigtsen [Sat, 20 Feb 2016 07:48:40 +0000 (18:48 +1100)]
Add a frame around the placeholder image in shr

* lisp/net/shr.el (shr-make-placeholder-image): Add a frame
around the image.

8 years agoNew filenotify test for bug#22736
Tassilo Horn [Sat, 20 Feb 2016 07:33:11 +0000 (08:33 +0100)]
New filenotify test for bug#22736

* test/automated/file-notify-tests.el
(file-notify-test08-watched-file-in-watched-dir):
(file-notify--test-desc1): New filenotify test for bug#22736

8 years agoReport critical battery errors
Marcin Borkowski [Sat, 20 Feb 2016 07:33:48 +0000 (18:33 +1100)]
Report critical battery errors

* lisp/battery.el (battery-pmset): Report critical battery
errors (bug#18157).

8 years agoUse placeholder images in shr to avoid text moving around
Lars Ingebrigtsen [Sat, 20 Feb 2016 07:01:52 +0000 (18:01 +1100)]
Use placeholder images in shr to avoid text moving around

* lisp/net/shr.el (shr-rescale-image): Pass in width/height
from the HTML.
(shr-tag-img): Ditto.
(shr-string-number): New function.
(shr-make-placeholder-image): Make placeholder images.
(shr-tag-img): Insert them if we have SVG support.

8 years agoGet explicit width/height + scale computations right
Lars Ingebrigtsen [Sat, 20 Feb 2016 06:55:43 +0000 (17:55 +1100)]
Get explicit width/height + scale computations right

* src/image.c (compute_image_size): :scale should also be
taken into account when :width and :height are explicitly names.

8 years agoNew functions for getting and setting image properties
Lars Ingebrigtsen [Sat, 20 Feb 2016 06:54:05 +0000 (17:54 +1100)]
New functions for getting and setting image properties

* doc/lispref/display.texi (Defining Images): Document
image-get/set-property.

* lisp/image.el (image-set-property): New function.
(image-get-property): Ditto.

8 years agoAwait the final mouse event in C-h c and C-h k.
Alan Mackenzie [Fri, 19 Feb 2016 17:10:57 +0000 (17:10 +0000)]
Await the final mouse event in C-h c and C-h k.

* lisp/help.el (describe-key-briefly, describe-key): On receiving a mouse
event, keep reading further events until a timeout occurs, to ensure we have
the complete mouse event from the user.

8 years agoMake eww message toggling message clearer
Kaushal Modi [Fri, 19 Feb 2016 05:55:54 +0000 (16:55 +1100)]
Make eww message toggling message clearer

* lisp/net/eww.el (eww-toggle-fonts): Make the message
clearer.

Copyright-paperwork-exempt: Yes

8 years agoAdd a library for creating and manipulating SVG images
Lars Ingebrigtsen [Fri, 19 Feb 2016 05:04:11 +0000 (16:04 +1100)]
Add a library for creating and manipulating SVG images

* doc/lispref/display.texi (SVG Images): New section.

* lisp/svg.el: New file.

8 years ago* lisp/calc/calc-units.el (math-standard-units): Update to 2014 CODATA adjustment.
Mark Oteiza [Fri, 19 Feb 2016 02:38:44 +0000 (21:38 -0500)]
* lisp/calc/calc-units.el (math-standard-units): Update to 2014 CODATA adjustment.

8 years agoFix up tests for async TLS negotiation
Lars Ingebrigtsen [Fri, 19 Feb 2016 01:37:34 +0000 (12:37 +1100)]
Fix up tests for async TLS negotiation

8 years agoFix coding system setup
Lars Ingebrigtsen [Fri, 19 Feb 2016 00:58:50 +0000 (11:58 +1100)]
Fix coding system setup

* src/process.c (set_network_socket_coding_system): Pass in
the host/service that's been computed already.

8 years ago; Improve character-folding entries in NEWS
Eli Zaretskii [Thu, 18 Feb 2016 17:42:17 +0000 (19:42 +0200)]
; Improve character-folding entries in NEWS

* etc/NEWS: Expand description of character-folding support.
Suggested by Mark Oteiza <mvoteiza@udel.edu>.

8 years agoReference `tramp-theme' in GNU ELPA.
Michael Albinus [Thu, 18 Feb 2016 12:58:12 +0000 (13:58 +0100)]
Reference `tramp-theme' in GNU ELPA.

* doc/misc/tramp.texi (Frequently Asked Questions):
Reference `tramp-theme' in GNU ELPA.

8 years agoFix bugs in window resizing code
Martin Rudalics [Thu, 18 Feb 2016 10:25:07 +0000 (11:25 +0100)]
Fix bugs in window resizing code

* lisp/window.el (adjust-window-trailing-edge): Fix mismatched
parenthesis.
(shrink-window, enlarge-window): Fix bug#22723 where windows
with preserved size would not get resized.  Also now signal an
error when the window cannot be shrunk or enlarged as requested.

8 years agoVerify the TLS connection asynchronously
Lars Ingebrigtsen [Thu, 18 Feb 2016 05:25:37 +0000 (16:25 +1100)]
Verify the TLS connection asynchronously

* src/gnutls.c (gnutls_verify_boot): Refactor out into its own
function so that we can call it asynchronously.
(Fgnutls_boot): Use it.

* src/process.c (wait_reading_process_output): Verify the TLS
negotiation.

8 years agoFix decoding DOS EOL in a unibyte buffer
Eli Zaretskii [Wed, 17 Feb 2016 15:48:30 +0000 (17:48 +0200)]
Fix decoding DOS EOL in a unibyte buffer

* src/coding.c (decode_eol): Loop over bytes, not characters.
(Bug#5251)

8 years agoCorrect c-parse-state cache manipulation error.
Alan Mackenzie [Wed, 17 Feb 2016 11:53:01 +0000 (11:53 +0000)]
Correct c-parse-state cache manipulation error.

* lisp/progmodes/cc-engine.el (c-invalidate-state-cache-1): Correct a
comparison bound.  Amend comments.

8 years agoTake advantage of new GnuPG version check function
Daiki Ueno [Wed, 17 Feb 2016 07:44:16 +0000 (16:44 +0900)]
Take advantage of new GnuPG version check function

* lisp/emacs-lisp/package.el (epg-configuration-find): Declare.
(package-refresh-contents): Use `epg-configuration-find' to check if EPG
is usable.

8 years agoMake GnuPG version check robuster
Daiki Ueno [Wed, 17 Feb 2016 07:32:25 +0000 (16:32 +0900)]
Make GnuPG version check robuster

We changed the default gpg program to "gpg2" from "gpg" in the commit
f93d669a16bd3cb3f43f0c8cfd22fe18b627a6a1.  However, there are two
maintained branches (2.0 and 2.1) and Emacs doesn't work well with 2.0
series.  Check the actual version of "gpg2" at run time, and properly
divert to "gpg" if necessary.
* lisp/epg-config.el: Require 'cl-lib for `cl-destructuring-bind'.
(epg-config--program-alist): New variable.
(epg--configurations): New variable.
(epg-configuration-find): New function.
(epg-config--make-gpg-configuration): New function.
(epg-config--make-gpgsm-configuration): New function.
(epg-configuration): Mark as obsolete.
* lisp/epg.el (epg-context): Use `epg-configuration-find'.

8 years agoFix x-load-color-file pointer signedness
Paul Eggert [Wed, 17 Feb 2016 07:25:21 +0000 (23:25 -0800)]
Fix x-load-color-file pointer signedness

* src/xfaces.c (Fx_load_color_file) [!HAVE_X_WINDOWS]:
For sscanf and int *, use %d, not %u.
Problem found on Ubuntu 15.10 x32, which lacks X support.

8 years ago* lisp/time-stamp.el (time-stamp-time-zone): Fix doc string punct.
Paul Eggert [Tue, 16 Feb 2016 23:01:50 +0000 (15:01 -0800)]
* lisp/time-stamp.el (time-stamp-time-zone): Fix doc string punct.

8 years agoFollow convention for greek letter constants.
Mark Oteiza [Tue, 16 Feb 2016 22:16:16 +0000 (17:16 -0500)]
Follow convention for greek letter constants.

* list/calc/calc-units.el (math-standard-units):
Add "sigma" and alias σ to it.

8 years agoAdd column layout module to CSS property list
Simen Heggestøyl [Tue, 16 Feb 2016 20:52:59 +0000 (21:52 +0100)]
Add column layout module to CSS property list

* lisp/textmodes/css-mode.el (css-property-ids): Add properties from
CSS Multi-column Layout Module.

8 years agoAdd Stefan-Boltzmann constant to calc units table.
Mark Oteiza [Tue, 16 Feb 2016 17:04:39 +0000 (12:04 -0500)]
Add Stefan-Boltzmann constant to calc units table.

* lisp/calc/calc-units.el (math-standard-units):
Add Stefan-Boltzmann constant.

8 years ago* lisp/calc/calc-units.el (math-build-units-table-buffer): Use special-mode.
Mark Oteiza [Tue, 16 Feb 2016 16:48:46 +0000 (11:48 -0500)]
* lisp/calc/calc-units.el (math-build-units-table-buffer): Use special-mode.

8 years agoAvoid loading cl-lib for term/xterm.elc, eg in -Q -nw. (Bug#22669)
Glenn Morris [Tue, 16 Feb 2016 16:49:05 +0000 (11:49 -0500)]
Avoid loading cl-lib for term/xterm.elc, eg in -Q -nw.  (Bug#22669)

* lisp/emacs-lisp/cl-generic.el (cl--generic-dispatchers):
Prefill with relevant elements for term/xterm.

8 years agoFix soffice UserInstallation-URL for Windows
Tassilo Horn [Tue, 16 Feb 2016 16:38:44 +0000 (17:38 +0100)]
Fix soffice UserInstallation-URL for Windows

* lisp/doc-view.el (doc-view-odf->pdf-converter-soffice): Fix
UserInstallation-URL when calling soffice on Windows.

8 years agoMinor cleanup in CONTRIBUTE and test/README
Michael Albinus [Tue, 16 Feb 2016 10:23:58 +0000 (11:23 +0100)]
Minor cleanup in CONTRIBUTE and test/README

* CONTRIBUTE: Remove detailed explanation about testing; this
is now in test/README.

* test/README: Don't mention automated/ subdirectory.

8 years agoFix display of <pre> elements
Lars Ingebrigtsen [Tue, 16 Feb 2016 06:38:58 +0000 (17:38 +1100)]
Fix display of <pre> elements

* lisp/net/eww.el (eww-display-html): Remove CRLF before
parsing so that <pre> elements don't render with ^M at the end
of the lines.

8 years ago; * lisp/help-fns.el: Remove outdated comment.
Glenn Morris [Tue, 16 Feb 2016 06:25:01 +0000 (22:25 -0800)]
; * lisp/help-fns.el: Remove outdated comment.

8 years agoProvide 'term/name in lisp/term files.
Glenn Morris [Tue, 16 Feb 2016 05:59:40 +0000 (21:59 -0800)]
Provide 'term/name in lisp/term files.

* lisp/term/AT386.el, lisp/term/bobcat.el, lisp/term/cygwin.el:
* lisp/term/internal.el, lisp/term/iris-ansi.el, lisp/term/linux.el:
* lisp/term/lk201.el, lisp/term/news.el, lisp/term/ns-win.el:
* lisp/term/pc-win.el, lisp/term/rxvt.el, lisp/term/screen.el:
* lisp/term/sun.el, lisp/term/tty-colors.el, lisp/term/tvi970.el:
* lisp/term/vt100.el, lisp/term/vt200.el, lisp/term/w32-win.el:
* lisp/term/w32console.el, lisp/term/wyse50.el, lisp/term/x-win.el:
For consistency, provide 'term/name in all files that don't already.

8 years agoDeactivate the correct process
Lars Ingebrigtsen [Tue, 16 Feb 2016 05:47:55 +0000 (16:47 +1100)]
Deactivate the correct process

* src/process.c (wait_reading_process_output): Deactivate the
correct process on failure.

8 years ago; * admin/make-tarball.txt: Mention cleaning.
Glenn Morris [Tue, 16 Feb 2016 05:38:21 +0000 (21:38 -0800)]
; * admin/make-tarball.txt: Mention cleaning.

8 years agoImplement asynch TLS negotiation
Lars Ingebrigtsen [Tue, 16 Feb 2016 04:56:56 +0000 (15:56 +1100)]
Implement asynch TLS negotiation

* src/gnutls.c (gnutls_try_handshake): Factor out into its own
function.
(emacs_gnutls_handshake): Use it.
(emacs_gnutls_read): Just return instead of retrying the handshake.

* src/process.c (finish_after_tls_connection): Factor out
into its own function.
(connect_network_socket): Use it.
(wait_reading_process_output): Retry TLS handshakes.
(wait_reading_process_output): Defer sentinel until TLS completes.

8 years agoSimplify the DNS resolution loop a bit
Lars Ingebrigtsen [Tue, 16 Feb 2016 02:58:26 +0000 (13:58 +1100)]
Simplify the DNS resolution loop a bit

* src/process.c (wait_reading_process_output): Simplify the
DNS resolution loop a bit.

8 years agoLoop over the process list instead of maintaining a separate list
Alain Schneble [Tue, 16 Feb 2016 02:50:23 +0000 (13:50 +1100)]
Loop over the process list instead of maintaining a separate list

* src/process.c: Remove declaration/definition of dns_processes list.
* src/process.c (wait_reading_process_output): Loop over all processes in
Vprocess_alist instead of dns_processes, to check for completed DNS
requests.

8 years agoAllow setting the filter masks later
Lars Ingebrigtsen [Tue, 16 Feb 2016 02:37:33 +0000 (13:37 +1100)]
Allow setting the filter masks later

* src/process.c (Fset_process_filter): Don't set the socket
masks here, because we may not have a socket yet.
(set_process_filter_masks): New function.
(connect_network_socket): Set the filter masks here.

8 years agoRemove debugging
Lars Ingebrigtsen [Tue, 16 Feb 2016 02:24:47 +0000 (13:24 +1100)]
Remove debugging

8 years agoEnsure we always free DNS resources when deleting a process
Lars Ingebrigtsen [Tue, 16 Feb 2016 02:23:15 +0000 (13:23 +1100)]
Ensure we always free DNS resources when deleting a process

* src/process.c (free_dns_request): Factor out into own function.
(Fdelete_process): When deleting a process, free any DNS
structures associated with it.
(check_for_dns): Always free all DNS resources.

8 years agoDon't block in set-process-window-size
Alain Schneble [Tue, 16 Feb 2016 02:13:06 +0000 (13:13 +1100)]
Don't block in set-process-window-size

* src/process.c (set-process-window-size): Explicitly return Qnil when
called with network processes as set_window_size won't work anyway on
socket fds.  As a welcome side effect, this makes the blocking
wait_for_socket_fds call obsolete.

8 years agoDo most of the coding system setup earlier
Lars Ingebrigtsen [Tue, 16 Feb 2016 02:01:05 +0000 (13:01 +1100)]
Do most of the coding system setup earlier

* src/process.c (Fmake_network_process): Set the read/write
coding systems here, so that special bindings work.
(Fmake_network_process): Complete the coding system setup here.

8 years agoMerge from origin/emacs-25
John Wiegley [Mon, 15 Feb 2016 22:11:03 +0000 (14:11 -0800)]
Merge from origin/emacs-25

d4b93e1 Minor fixes in global-auto-composition-mode
02b037b Allow arithmetic operators inside C++ template constructs.
44b16f6 Avoid crashes in semi-malformed 'condition-case'
652e5b4 Allow arithmetic operators inside C++ template constructs.
d9ea795 Fix regression with 'recent-keys' and keyboard macros
903603f Fix wording in a doc-view.el comment
cf79616 ; Spelling fixes
f8bf1b3 CONTRIBUTE cleanups and updates
f3aaca3 Port USE_STACK_LISP_OBJECTS fix to Clang
1834ac7 Port to x86 GCC 4.3.1 and earlier
8482949 Fix point movement under 'scroll-conservatively'
c1313b5 Replace colon in file name (not legal on Windows)
f7af26c Fix a typo in edt.texi
8badf95 Make 'mmap_realloc' on MS-Windows more reliable
856cd94 Grep alias `all' shall not match parent directory

8 years ago; Merge from origin/emacs-25
John Wiegley [Mon, 15 Feb 2016 22:10:37 +0000 (14:10 -0800)]
; Merge from origin/emacs-25

The following commits were skipped:

cc6d906 ; Auto-commit of ChangeLog files.
1af4493 ; Auto-commit of loaddefs files.
23ca48d Bump version to 25.0.91

8 years agoMerge from origin/emacs-25
John Wiegley [Mon, 15 Feb 2016 22:10:25 +0000 (14:10 -0800)]
Merge from origin/emacs-25

dacde7e * etc/AUTHORS: Update the AUTHORS file
478ca5d ; fix changelog entries
2b7d006 ; make change-history-commit
851decb * lisp/dired-aux.el: Require cl-lib.  (Bug#22613)
47896c8 ; Improve commentary in insdel.c
53ca1e1 Index tilde characters in names of backup files
d97f522 Document deprecation of hi-lock-mode's 'C-x w' bindings
b55f06d ; * etc/NEWS: Use double spaces to end a sentence.
28bb214 Announce that the `C-x w' bindings are deprecated
1c98f98 Suppress GNUstep hardening
d82f24b Fix redisplay after a large insertion
85a2753 Revert "Fix gnus-group-get-new-news-this-group on group with
        closed server"
e8e3db0 ; Improve merge documentation in CONTRIBUTE
5be9989 * lib-src/make-docfile.c: Include stdarg.h.
c95ebbf Extend gpm-mouse-mode's doc string and doc to point out
        limitations.

8 years ago; Merge from origin/emacs-25
John Wiegley [Mon, 15 Feb 2016 22:09:19 +0000 (14:09 -0800)]
; Merge from origin/emacs-25

The following commit was skipped:

a91b4b5 Revert "Backport: * lisp/isearch.el: Turn char-folding off by default"

8 years agoMerge from origin/emacs-25
John Wiegley [Mon, 15 Feb 2016 22:09:12 +0000 (14:09 -0800)]
Merge from origin/emacs-25

f5d6b9b Revert "Support integer image rotation and respect EXIF rotations"
afe7d1f Revert "Document EXIF image rotation"
c6f377c Document OS X LANG default
eb4a18c Set locale when run from OS X GUI
456c0a3 make-docfile cleanup for I/O, etc.
25ec995 Memory-management cleanup in make-docfile
02d925e Kevin Gallagher has new email address
4ef153b Improve doc strings of 'forward/backward-word-strictly'
3ad05a0 Describe Makefile test targets in test/README

8 years ago; Merge from origin/emacs-25
John Wiegley [Mon, 15 Feb 2016 22:08:03 +0000 (14:08 -0800)]
; Merge from origin/emacs-25

The following commit was skipped:

12c50e8 Backport: * lisp/isearch.el: Turn char-folding off by default

8 years agoMerge from origin/emacs-25
John Wiegley [Mon, 15 Feb 2016 22:07:46 +0000 (14:07 -0800)]
Merge from origin/emacs-25

10b8ed2 Document EXIF image rotation
0f60049 Support integer image rotation and respect EXIF rotations
7dd45b6 Quote table names for postgres listings (sql-mode)
6bac035 * lisp/replace.el (replace-match-maybe-edit): Make arg
        `backward' optional.
ee909aa * lisp/simple.el (next-line-or-history-element): Reset
        temporary-goal-column.
0a289d3 Suppress ACL ops if configured with --disable-acl
1a9dbf5 Mention web bugs
fa55da2 Make mm-html-blocked-images default to "" again

8 years agoMinor fixes in global-auto-composition-mode
Eli Zaretskii [Mon, 15 Feb 2016 19:46:17 +0000 (21:46 +0200)]
Minor fixes in global-auto-composition-mode

* lisp/emacs-lisp/easy-mmode.el (easy-mmode-pretty-mode-name):
Produce prettier names of globalized minor modes.
* lisp/composite.el (global-auto-composition-mode): Make it a
globalized mode.  (Bug#22682)

8 years agoAllow arithmetic operators inside C++ template constructs.
Alan Mackenzie [Mon, 15 Feb 2016 12:45:42 +0000 (12:45 +0000)]
Allow arithmetic operators inside C++ template constructs.

Fixes debbugs #22486.  This corrects the previous patch with this message
which was empty.

* lisp/progmodes/cc-langs.el (c-multichar->-op-not->>-regexp): New language
variable.
(c-<>-notable-chars-re): New language variable.

* lisp/progmodes/cc-engine.el (c-forward-<>-arglist-recur): User
c-<>-notable-chars-re in place of the former fixed string in searching for
places to stop and examine.
Use c-multichar->-op-not->>-regexp to check that a found ">" is not part of a
multichar operator in place of the former c->-op-without->-cont-regexp.
Add code to skip forwards over a balanced parenthesized expression.

8 years agoAvoid crashes in semi-malformed 'condition-case'
Eli Zaretskii [Mon, 15 Feb 2016 14:03:54 +0000 (16:03 +0200)]
Avoid crashes in semi-malformed 'condition-case'

* src/eval.c (internal_lisp_condition_case): Treat a handler
'(nil)' as if it were '(nil nil)'.  (Bug#22675)

8 years agoAllow arithmetic operators inside C++ template constructs.
Alan Mackenzie [Mon, 15 Feb 2016 12:45:42 +0000 (12:45 +0000)]
Allow arithmetic operators inside C++ template constructs.

Fixes debbugs #22486.

* lisp/progmodes/cc-langs.el (c-multichar->-op-not->>-regexp): New language
variable.
(c-<>-notable-chars-re): New language variable.

* lisp/progmodes/cc-engine.el (c-forward-<>-arglist-recur): User
c-<>-notable-chars-re in place of the former fixed string in searching for
places to stop and examine.
Use c-multichar->-op-not->>-regexp to check that a found ">" is not part of a
multichar operator in place of the former c->-op-without->-cont-regexp.
Add code to skip forwards over a balanced parenthesized expression.

8 years agoFix regression with 'recent-keys' and keyboard macros
Eli Zaretskii [Mon, 15 Feb 2016 12:03:57 +0000 (14:03 +0200)]
Fix regression with 'recent-keys' and keyboard macros

* src/keyboard.c (record_char): Don't record in 'recent_keys'
events that come from executing keyboard macros.  (Bug#22674)