]> code.delx.au - gnu-emacs/log
gnu-emacs
8 years agoFix <p> and <div> newlines with or without <li> in shr
Lars Magne Ingebrigtsen [Sun, 20 Mar 2016 12:43:42 +0000 (13:43 +0100)]
Fix <p> and <div> newlines with or without <li> in shr

* lisp/net/shr.el (shr-ensure-newline): Respect that we're in
a <li>, if we are, and don't insert newlines there.
(shr-ensure-paragraph): When mixing newlines and paragraph
ensurements, don't insert too many blank lines.
(shr-tag-div): A <div> shouldn't introduce a paragraph, but a
new line.

8 years agoAdd more shr HTML rendering tests
Lars Magne Ingebrigtsen [Sun, 20 Mar 2016 12:41:59 +0000 (13:41 +0100)]
Add more shr HTML rendering tests

8 years agoAdd a test harness for shr HTML rendering and one test
Lars Magne Ingebrigtsen [Sun, 20 Mar 2016 11:55:36 +0000 (12:55 +0100)]
Add a test harness for shr HTML rendering and one test

8 years agoRemove code left over from when overlays were used for padding
Lars Magne Ingebrigtsen [Sun, 20 Mar 2016 11:54:24 +0000 (12:54 +0100)]
Remove code left over from when overlays were used for padding

* lisp/net/shr.el (shr-previous-newline-padding-width): Remove.
(shr-remove-trailing-whitespace): Ditto.
(shr-insert-document): Don't call them.

8 years agoRemove trailing blank lines in shr
Lars Magne Ingebrigtsen [Sun, 20 Mar 2016 11:52:28 +0000 (12:52 +0100)]
Remove trailing blank lines in shr

* lisp/net/shr.el (shr--remove-blank-lines-at-the-end): New function.
(shr-insert-document): Use it to remove trailing blank lines
at the end of documents, since these never seem to be very useful.

8 years agoDon't bug out on nil `patch-buf' arguments
Lars Magne Ingebrigtsen [Sun, 20 Mar 2016 11:12:27 +0000 (12:12 +0100)]
Don't bug out on nil `patch-buf' arguments

* lisp/vc/ediff.el (ediff-patch-file): Don't bug out on nil
`patch-buf' arguments.

8 years agoAdd a Catalan language environment
Ernest Adrogué [Sun, 20 Mar 2016 11:01:23 +0000 (12:01 +0100)]
Add a Catalan language environment

* international/mule-cmds.el (locale-language-names): Map locale
  language name `ca' to language environment `Catalan'.

* language/european.el: Add definition of language environment for
  the Catalan language.

* leim/quail/latin-pre.el: Add quail rule to the `catalan-prefix'
  input method to support input of middle dot characters through
  composition (bug#18279).

8 years agoNo need to block input when reading directories
Paul Eggert [Sun, 20 Mar 2016 01:44:15 +0000 (18:44 -0700)]
No need to block input when reading directories

* src/dired.c: Don’t include blockinput.h.
(open_directory, directory_files_internal_unwind)
(directory_files_internal, file_attributes):
Don’t block input here, as the reasons for blocking input should
no longer apply.  See blockinput.h FIXME.  (Bug#22996).

8 years ago* lisp/vc/vc-hooks.el: Fix typo
Oscar Fuentes [Sat, 19 Mar 2016 17:56:51 +0000 (18:56 +0100)]
* lisp/vc/vc-hooks.el: Fix typo

8 years agoImprove w32notify notifications
Fabrice Popineau [Sat, 19 Mar 2016 12:44:53 +0000 (14:44 +0200)]
Improve w32notify notifications

* src/w32notify.c (DIRWATCH_BUFFER_SIZE): New macro.
(struct notification): 'terminate' is now a HANDLE.
(send_notifications): Argument is now a pointer to a
notification.  Don't loop waiting for the notification to be
acknowledged by the main thread; instead, just add the
notification to the linked list of notifications waiting to be
acknowledged.
(watch_end): Don't close the directory handle.
(watch_completion): Allocate a new notification structure to be
added to the notifications set.  Call ReadDirectoryChangesW
immediately after adding the new notification, and before sending
a message to the main thread about them.
(watch_worker): Don't loop calling ReadDirectoryChangesW; instead,
call it just once -- it will be called again in watch_completion.
Loop waiting for the main thread's indication to terminate.
(start_watching): Create the event to be used to indicate to the
worker thread that its should terminate.
(remove_watch): Indicate to the worker thread that it should
terminate.
* src/w32term.c (queue_notifications): Loop over all the
notifications in the linked list, processing all of them in one
go.
* src/w32inevt.c (handle_file_notifications): Loop over all the
notifications in the linked list.
* src/w32xfns.c (init_crit): Initialize the linked list of file
notifications.
(delete_crit): Free the linked list of file notifications,
including any unprocessed notifications left in it.
* src/w32term.h (struct notifications_se): New struct.

* test/lisp/filenotify-tests.el (file-notify-test02-events)
(file-notify-test05-dir-validity): Add read-event calls to
facilitate event recognition by the main thread in batch mode.

8 years agomake `vc-log-operation' buffer local to allow multiple simultaneous editing
Sam Steingold [Thu, 17 Mar 2016 19:42:15 +0000 (15:42 -0400)]
make `vc-log-operation' buffer local to allow multiple simultaneous editing

8 years agoSimplify some rococo Gnus code that loads or tests for other libraries.
Glenn Morris [Thu, 17 Mar 2016 07:14:11 +0000 (00:14 -0700)]
Simplify some rococo Gnus code that loads or tests for other libraries.

* lisp/gnus/gnus-art.el (gnus-treat-ansi-sequences): Simplify default.
* lisp/gnus/mml-smime.el (epg): Simply require it.
(mml-smime-use): Simplify the default.  Doc fix.
* lisp/gnus/mml2015.el (epg-config): Require it.
(mml2015-use): Simplify the default.
* lisp/gnus/smime.el (password-cache): Simply require it.
(password-read-and-add): Remove declaration.

8 years ago* test/lisp/dabbrev-tests.el: Merge fix: move here from test/automated.
Glenn Morris [Wed, 16 Mar 2016 15:58:10 +0000 (08:58 -0700)]
* test/lisp/dabbrev-tests.el: Merge fix: move here from test/automated.

8 years agoSync with soap-client repository, version 3.1.1
Thomas Fitzsimmons [Wed, 16 Mar 2016 15:03:31 +0000 (11:03 -0400)]
Sync with soap-client repository, version 3.1.1

* lisp/net/soap-client.el (soap-encode-xs-complex-type): Fix error
message.
(soap-find-port): Delete trailing whitespace.
(soap-find-operation): Fix documentation and rename parameter.
(soap-find-port): Likewise.
(soap-operation-arity): Likewise.

* lisp/net/soap-client.el: Update copyright years.
(soap-warning): Fix docstring quoting.
(soap-decode-date-time): Likewise.
(soap-validate-xs-simple-type): Remove tabs for indentation.
* lisp/net/soap-inspect.el: Update copyright years.

* lisp/net/soap-client.el (soap-encode-xs-basic-type): Do not
assume xsd:base64Binary values are UTF-8 strings.
(soap-decode-xs-basic-type): Likewise.
(soap-invoke): Document xsd:base64Binary handling.

* lisp/net/soap-client.el (soap-find-port, soap-find-operation)
(soap-operation-arity): new defuns
(soap-invoke-internal): use soap-find-port, soap-find-operation.

Co-authored-by: Alex Harsanyi <AlexHarsanyi@gmail.com>
8 years agoMerge from gnulib
Paul Eggert [Tue, 15 Mar 2016 20:58:56 +0000 (13:58 -0700)]
Merge from gnulib

This incorporates:
2016-03-15 std-gnu11: improve clang support
* m4/std-gnu11.m4: Copy from gnulib.

8 years agoDisable MOVE more for Dovecot
Lars Magne Ingebrigtsen [Mon, 14 Mar 2016 19:23:30 +0000 (20:23 +0100)]
Disable MOVE more for Dovecot

* lisp/gnus/nnimap.el (nnimap-process-expiry-targets): Also
disable MOVE when expirying.
(nnimap-split-incoming-mail): And when splitting mail.

8 years agoDon't use MOVE on Dovecot
Lars Magne Ingebrigtsen [Mon, 14 Mar 2016 19:21:02 +0000 (20:21 +0100)]
Don't use MOVE on Dovecot

* lisp/gnus/nnimap.el (nnimap-request-move-article): Don't use
MOVE on Dovecot, since it's broken in many versions.
(nnimap-quirks): Mark MOVE on Dovecot as non-working.

8 years agoImprove diff hunk headers when maintaining Emacs
Paul Eggert [Sun, 13 Mar 2016 19:20:01 +0000 (12:20 -0700)]
Improve diff hunk headers when maintaining Emacs

* .gitattributes: Improve diff hunk header support for makefiles,
shell scripts, Ada, C, C++, Objective C, HTML, SHTML, XML, Java,
Perl, PHP, Python, Ruby, and TeX, all of which are used in Emacs
somewhere (sometimes just in test cases).
* autogen.sh: Add regexes for makefiles and shell scripts.

8 years agoUpdate handling of <bdo> per Unicode 9.0
Eli Zaretskii [Sat, 12 Mar 2016 16:35:26 +0000 (18:35 +0200)]
Update handling of <bdo> per Unicode 9.0

* lisp/net/shr.el (shr-tag-bdo): Wrap in FSI..PDI as well, per
Unicode 9.0 changes in UAX#9, paragraph 2.7.

8 years agoMerge from origin/emacs-25
John Wiegley [Fri, 11 Mar 2016 21:33:32 +0000 (13:33 -0800)]
Merge from origin/emacs-25

facb5e2 Update Emacs manual section related to character folding
4efea8e ; * etc/DEBUG: Fix a typo.  (Bug#22984)
f8df21b Update admin/notes/unicode
950be68 Add symref-filepattern entries for c?perl-mode
8b8a6ad Don't use XRANDR 1.3 extensions if the server doesn't support them.
985dacf ; NEWS update for the last change in etags
741a6f8 Sync with gnulib
7352c6c Rework C source files to avoid ^(
a589e9a By default, etags produces unqualified Perl tag names
72c7438 Indent methods with keyword names correctly
28532a9 Propertize character literals and special global variables
        differently
a7d6f39 ; Fix last change in NEWS
83b2a20 Change how /etc/NEWS presents character folding
b417c5a Revert "Revert "Backport: * lisp/isearch.el: Turn char-folding
        off by default""
711ca36 Properly handle lambda as read function (bug 22961)
1b9d616 Propertize operator symbol names with symbol syntax class
9b16bc2 Stop recognizing :#{} as symbol in ruby-mode
366ec77 Allow using the left shift operator without spaces on both sides
02bf7cc Properly handle unquoting in wdired (bug 22938)
16cf469 ; Spelling fix and tighten up comment
f50bc04 Allow splat operator before percent literal
991c801 Don't apply the return value of goto-char as syntax class
6e63b3e Guard against nested percent literals
066f3bc Recognize iuwu-mod after an escaped newline
6f7a57c Fix symbolic mode string conversion for s and t
50b9826 Update 'ucs-names' database
993b2fb Improve doc string of 'shell-command'
b71c717 Make the code in movemail_strftime more general
cc057e4 Speed up redisplay of binary files with long series of nulls
e51b27e Remove the highlighting support for quoting 'like this' inside
        Lisp docstrings
b1abce1 Restore leading space in movemail pop output
98b8d44 Fix bidi-paragraph-direction in Rmail view buffer
dc9d837 Don't misindent computed property generator methods
7923112 Fix mbox files produced by movemail on MS-Windows
c45a1ca doc string file descriptor exhaustion fix
265141b Fix Bug#22814

8 years ago; Merge from origin/emacs-25
John Wiegley [Fri, 11 Mar 2016 21:32:13 +0000 (13:32 -0800)]
; Merge from origin/emacs-25

The following commit was skipped:

6db1a87 Fix insertion of edited servers in the dribble file

8 years agoMerge from origin/emacs-25
John Wiegley [Fri, 11 Mar 2016 21:32:13 +0000 (13:32 -0800)]
Merge from origin/emacs-25

620951f Fix previous fix of enlarge-/shrink-window
2e78353 * lisp/isearch.el (isearch-define-mode-toggle): Fix toggling logic
66d2717 Complete temperature units in calc-convert-temperature
dbb02bf Make sure to use case-sensitive search
8b01e69 Prevent infinite loop on not-well-formed xml. (Bug#16344)
100346a Add the missing test case for the previous patch
5aba61e Use the correct dabbrev expansion

8 years ago; Merge from origin/emacs-25
John Wiegley [Fri, 11 Mar 2016 21:32:13 +0000 (13:32 -0800)]
; Merge from origin/emacs-25

The following commits were skipped:

6287381 ; Auto-commit of loaddefs files.
041a140 Bump version to 25.0.92

8 years agoUpdate Emacs manual section related to character folding
John Wiegley [Fri, 11 Mar 2016 19:42:06 +0000 (11:42 -0800)]
Update Emacs manual section related to character folding

* search.texi: Character folding is not on by default.

8 years ago; * etc/DEBUG: Fix a typo. (Bug#22984)
Eli Zaretskii [Fri, 11 Mar 2016 15:54:40 +0000 (17:54 +0200)]
; * etc/DEBUG: Fix a typo.  (Bug#22984)

8 years agoRemove compat code in Tramp
Michael Albinus [Fri, 11 Mar 2016 12:20:26 +0000 (13:20 +0100)]
Remove compat code in Tramp

* lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
Remove compat code.

8 years agoUpdate admin/notes/unicode
Eli Zaretskii [Fri, 11 Mar 2016 10:50:55 +0000 (12:50 +0200)]
Update admin/notes/unicode

* admin/notes/unicode: Update the list of files from the UCD we
are using.  Mention the possible need to change 'ucs-names' when
importing a new version of the Unicode Standard.

8 years agoAdd symref-filepattern entries for c?perl-mode
Dmitry Gutov [Fri, 11 Mar 2016 03:29:49 +0000 (05:29 +0200)]
Add symref-filepattern entries for c?perl-mode

* lisp/cedet/semantic/symref/grep.el
(semantic-symref-filepattern-alist): Add entries for perl-mode and
cperl-mode.

8 years ago* lisp/textmodes/tex-mode.el: Complete local envs. Use #'.
Stefan Monnier [Thu, 10 Mar 2016 20:17:47 +0000 (15:17 -0500)]
* lisp/textmodes/tex-mode.el: Complete local envs.  Use #'.

Use #' for function names.
(latex-complete-envnames): Include existing environments in
current buffer.
(latex-insert-block): Use latex-complete-envnames.
(tildify-foreach-ignore-environments): Declare.

8 years agoDon't use XRANDR 1.3 extensions if the server doesn't support them.
Ken Raeburn [Wed, 9 Mar 2016 03:17:16 +0000 (22:17 -0500)]
Don't use XRANDR 1.3 extensions if the server doesn't support them.

* src/xterm.h (struct x_display_info): Add fields to save XRANDR
version number.
* src/xfns.c (x_get_monitor_attributes): Save the version numbers
after querying the X server.
(x_get_monitor_attributes_xrandr): Don't use XRRGetOutputPrimary or
XRRGetScreenResourcesCurrent if the server doesn't support at least
RANDR version 1.3.  Conditionalize the code blocks on compiling
against library version 1.3 or better, rather than feature tests for
each function.
* configure.ac: Stop testing for those two functions.

8 years ago; NEWS update for the last change in etags
Eli Zaretskii [Thu, 10 Mar 2016 16:31:11 +0000 (18:31 +0200)]
; NEWS update for the last change in etags

8 years agoSync with gnulib
Paul Eggert [Thu, 10 Mar 2016 15:55:38 +0000 (07:55 -0800)]
Sync with gnulib

This incorporates:
2016-03-08 intprops: make .h file license match module
2016-03-08 acl: fix missing return on Cygwin
2016-03-05 extern-inline: port to PGI CC
* doc/misc/texinfo.tex, lib/intprops.h, lib/set-permissions.c:
* m4/extern-inline.m4:
Copy from gnulib.

8 years agoRework C source files to avoid ^(
Paul Eggert [Thu, 10 Mar 2016 15:34:52 +0000 (07:34 -0800)]
Rework C source files to avoid ^(

Work around Bug#22884 by rewording comments and strings to avoid ‘(’
at the start of a line unless it starts a function.  This change
is a short-term hack; in the longer run we plan to fix cc-mode’s
performance for C files that have ‘(’ at the start of a line in a
comment or string.

8 years agoBy default, etags produces unqualified Perl tag names
Eli Zaretskii [Thu, 10 Mar 2016 15:27:26 +0000 (17:27 +0200)]
By default, etags produces unqualified Perl tag names

* lib-src/etags.c (Perl_functions): Produce unqualified names,
unless -Q was specified.
(print_help): Update the description of -Q.

* doc/man/etags.1: Update the documentation of -Q.

* test/etags/ETAGS.good_1:
* test/etags/ETAGS.good_2:
* test/etags/ETAGS.good_3:
* test/etags/ETAGS.good_4:
* test/etags/ETAGS.good_5:
* test/etags/CTAGS.good: Adapt the expected test results to the
changed Perl functionality.

8 years agoFix asynchronous TLS connections on MS-Windows
Alain Schneble [Thu, 10 Mar 2016 14:43:09 +0000 (16:43 +0200)]
Fix asynchronous TLS connections on MS-Windows

* src/w32.c (sys_write): Don't switch the socket to blocking mode
if the connection attempt is in progress.  Instead, return either
EWOULDBLOCK immediately if the connection is in progress, or the
error code produced by '_sys_wait_connect' if the connection
failed.  Switching the socket to blocking mode was found to
interfere with GnuTLS handshake.  (Bug#22789)

8 years ago; * etc/NEWS: Add entry for display-buffer-reuse-mode-window
Nicolas Richard [Thu, 10 Mar 2016 12:58:11 +0000 (13:58 +0100)]
; * etc/NEWS: Add entry for display-buffer-reuse-mode-window

8 years agoIndent methods with keyword names correctly
Dmitry Gutov [Thu, 10 Mar 2016 12:35:45 +0000 (14:35 +0200)]
Indent methods with keyword names correctly

* lisp/progmodes/ruby-mode.el (ruby-smie--at-dot-call):
Rename to ruby-smie--before-method-name.  Now also check if we're
after a 'def' keyword.  Update both callers.

8 years agoPropertize character literals and special global variables differently
Dmitry Gutov [Thu, 10 Mar 2016 02:13:25 +0000 (04:13 +0200)]
Propertize character literals and special global variables differently

* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize): Propertize
character literals and global variables with special names with
prefix and symbol syntax classes, for SMIE to tokenize them
together automatically.
(ruby-font-lock-keywords): Fix an old regression in highlighting
character literals.

8 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Alan Mackenzie [Thu, 10 Mar 2016 11:46:36 +0000 (11:46 +0000)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

8 years agoClarify the documentation of nested comments.
Alan Mackenzie [Thu, 10 Mar 2016 11:42:32 +0000 (11:42 +0000)]
Clarify the documentation of nested comments.

* doc/lispref/syntax.texi (Syntax Flags): State that only comments of the same
style are recognized inside nestable comments.
(Low-Level Parsing): Clarify that parsing will stop after the start or end of
UNNESTED comments.

8 years ago; Fix last change in NEWS
Eli Zaretskii [Thu, 10 Mar 2016 10:17:02 +0000 (12:17 +0200)]
; Fix last change in NEWS

8 years agoAdd new function display-buffer-reuse-mode-window
Nicolas Richard [Tue, 1 Mar 2016 11:33:05 +0000 (12:33 +0100)]
Add new function display-buffer-reuse-mode-window

* lisp/window.el (display-buffer-reuse-mode-window): New function.
* doc/lispref/windows.texi (Display Action Functions): Document it.

8 years agoMinor fixes for getaddrinfo_a usage
Paul Eggert [Thu, 10 Mar 2016 00:24:59 +0000 (16:24 -0800)]
Minor fixes for getaddrinfo_a usage

* src/process.c (Fdelete_process): Check gai_cancel return value.
That way, there’s no need to invoke gai_error.  Check gai_suspend
return value.
(Fmake_network_process): Don’t assume gai_strerror returns a UTF-8
string.  Simplify call to connect_network_socket.
(check_for_dns): Avoid unnecessary initialization of local.

8 years agoChange how /etc/NEWS presents character folding
John Wiegley [Wed, 9 Mar 2016 23:32:22 +0000 (15:32 -0800)]
Change how /etc/NEWS presents character folding

* NEWS: Note that character folding is no longer the default.

8 years agoRevert "Revert "Backport: * lisp/isearch.el: Turn char-folding off by default""
John Wiegley [Wed, 9 Mar 2016 23:29:59 +0000 (15:29 -0800)]
Revert "Revert "Backport: * lisp/isearch.el: Turn char-folding off by default""

This reverts commit a91b4b51ddf2575d821adb8b84fdf32cff83886e.

8 years agoProperly handle lambda as read function (bug 22961)
Andreas Schwab [Wed, 9 Mar 2016 18:40:00 +0000 (19:40 +0100)]
Properly handle lambda as read function (bug 22961)

* src/lread.c (readchar): Be more strict about checking for
string in cons for read_vector.
(unreadchar): Likewise.

8 years agoPropertize operator symbol names with symbol syntax class
Dmitry Gutov [Wed, 9 Mar 2016 14:43:51 +0000 (16:43 +0200)]
Propertize operator symbol names with symbol syntax class

* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize):
Do it here.
(ruby-font-lock-keywords): Instead of handling them here.  Leave
highlighting them to the "normal" matcher, because now we can.
(ruby-smie--forward-token, ruby-smie--backward-token):
Likewise, don't special-case operator symbols anymore.
(ruby-smie--args-separator-p): Simplify the regexp, match operator
names with \s_.
(ruby-smie--implicit-semi-p): Handle the special cases of ? and =
at EOL the same way: check if the character has been assigned the
symbol syntax class by syntax-propertize.

8 years agoStop recognizing :#{} as symbol in ruby-mode
Dmitry Gutov [Tue, 8 Mar 2016 19:16:54 +0000 (21:16 +0200)]
Stop recognizing :#{} as symbol in ruby-mode

* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Remove
the weird part that recognized colon followed by interpolation
construct without quotes (e.g. ':#{abc}') as symbol, which is just a
syntax error in any modern version of Ruby.  Fix nearby bug reference.

8 years agoAllow using the left shift operator without spaces on both sides
Dmitry Gutov [Tue, 8 Mar 2016 13:46:19 +0000 (15:46 +0200)]
Allow using the left shift operator without spaces on both sides

* lisp/progmodes/ruby-mode.el (ruby-singleton-class-p): Rename to
ruby-verify-heredoc, reverse the meaning of the return value, and
short-circuit if preceded by a symbol not separated by whitespace.

* test/automated/ruby-mode-tests.el (ruby-no-heredoc-left-shift)
(ruby-no-heredoc-class-self): New tests.

8 years agodeclare `rmail-mime-entity-truncated' and `rmail-mime-render-html-function'
Sam Steingold [Wed, 9 Mar 2016 13:53:49 +0000 (08:53 -0500)]
declare `rmail-mime-entity-truncated' and `rmail-mime-render-html-function'

The former avoids a compiler warning, the latter fixes a bug whereas
the variable is compiled as lexical instead of dynamic.

8 years agoProperly handle unquoting in wdired (bug 22938)
Andreas Schwab [Tue, 8 Mar 2016 20:32:52 +0000 (21:32 +0100)]
Properly handle unquoting in wdired (bug 22938)

The recorded old names are not quoted, don't unquote them.

* lisp/wdired.el (wdired-normalize-filename): Add argument
unquotep, only unquote if non-nil.
(wdired-get-filename): Don't unquote the old file name.
(wdired-get-previous-link): Always unquote.

8 years ago; Spelling fix and tighten up comment
Paul Eggert [Tue, 8 Mar 2016 15:42:36 +0000 (07:42 -0800)]
; Spelling fix and tighten up comment

8 years agoPacify --enable-gcc-warnings
Paul Eggert [Tue, 8 Mar 2016 15:34:42 +0000 (07:34 -0800)]
Pacify --enable-gcc-warnings

* src/xfns.c (x_create_tip_frame): Omit unused local.
(Fx_show_tip): Don’t jump over auto initialization.

8 years agoOptionally reuse tooltip frames instead of deleting/recreating them.
Martin Rudalics [Tue, 8 Mar 2016 07:51:38 +0000 (08:51 +0100)]
Optionally reuse tooltip frames instead of deleting/recreating them.

* src/frame.c (tooltip_reuse_hidden_frame): New option.
* src/w32fns.c (x_create_tip_frame): Remove argument TEXT.  Fix
handling of dividers.
(x_hide_tip): New function.
(Fx_show_tip): Try to reuse old tooltip frame when
`tooltip-reuse-hidden-frame' is non-nil and frame parameters
have not changed.  Insert STRING here instead of passing it to
x_create_tip_frame.  Compute size of tooltip window with
Fwindow_text_pixel_size.  Obey Vw32_tooltip_extra_pixels when
padding tooltip window.
(Fx_hide_tip): Call x_hide_tip.
(Vw32_tooltip_extra_pixels): New variable.
* src/xdisp.c (Fwindow_text_pixel_size): Don't return negative y
value.  Fix doc-string.
* src/xfns.c (x_create_tip_frame): Remove argument TEXT.  Call
make_frame with mini_p argument false.
(x_hide_tip): New function.
(Fx_show_tip): Try to reuse old tooltip frame when
`tooltip-reuse-hidden-frame' is non-nil and frame parameters
have not changed.  Insert STRING here instead of passing it to
x_create_tip_frame.  Compute size of tooltip window with
Fwindow_text_pixel_size.
(Fx_hide_tip): Call x_hide_tip.
* lisp/cus-start.el (tooltip-reuse-hidden-frame): Add
customization entry.

8 years agoAssume getaddrinfo in C code
Paul Eggert [Tue, 8 Mar 2016 02:54:25 +0000 (18:54 -0800)]
Assume getaddrinfo in C code

* admin/CPP-DEFINES, configure.ac: Remove HAVE_GETADDRINFO, HAVE_H_ERRNO.
All uses removed.
* doc/lispref/processes.texi (Network, Network Processes), etc/NEWS:
Say that port numbers can be integer strings.
* lib-src/pop.c (h_errno) [!WINDOWSNT && !HAVE_H_ERRNO]: Remove decl.
(socket_connection): Assume HAVE_GETADDRINFO.
* lisp/mpc.el (mpc--proc-connect):
* lisp/net/network-stream.el (open-network-stream):
It’s now OK to use integer strings as port numbers.
* src/process.c (conv_numerical_to_lisp) [!HAVE_GETADDRINFO]: Remove.
(Fmake_network_process): Assume HAVE_GETADDRINFO.

8 years agoRemove support for IRIX
Paul Eggert [Mon, 7 Mar 2016 16:22:37 +0000 (08:22 -0800)]
Remove support for IRIX

The IRIX port wasn’t really working anyway, and the code was
getting in the way of other changes (e.g., getaddrinfo fixes).
IRIX’s supplier dropped support for IRIX in 2013.
* admin/CPP-DEFINES:
* configure.ac (opsys):
* doc/lispref/os.texi (System Environment):
* etc/MACHINES, etc/PROBLEMS:
* lisp/find-dired.el (find-grep-options):
* lisp/lpr.el (lpr-lp-system):
* lisp/ls-lisp.el (ls-lisp-emulation):
* lisp/mail/rmail.el (rmail-spool-directory):
* lisp/net/net-utils.el (ping-program-options):
* lisp/progmodes/gud.el (gud-irix-p, gud-dbx-use-stopformat-p):
* lisp/progmodes/ps-mode.el (ps-mode-print-function):
* src/conf_post.h [IRIX6_5]:
* src/emacs.c (Vsystem_type):
* src/filelock.c (get_boot_time_1):
* src/process.c (process_send_signal):
* src/unexelf.c (unexec):
Omit IRIX-specific code and/or documentation.
* configure.ac (NON_GCC_TEST_OPTIONS, IRIX6_5, PREFER_VSUSP):
Remove.  All uses removed.
* etc/NEWS: Document the change.

8 years agoAllow splat operator before percent literal
Dmitry Gutov [Mon, 7 Mar 2016 02:02:34 +0000 (04:02 +0200)]
Allow splat operator before percent literal

* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize):
Allow splat operator before percent literal.

8 years agoDon't apply the return value of goto-char as syntax class
Dmitry Gutov [Mon, 7 Mar 2016 01:19:09 +0000 (03:19 +0200)]
Don't apply the return value of goto-char as syntax class

* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize): Don't
apply the return value of goto-char as syntax class.

8 years agoGuard against nested percent literals
Dmitry Gutov [Mon, 7 Mar 2016 00:58:49 +0000 (02:58 +0200)]
Guard against nested percent literals

* lisp/progmodes/ruby-mode.el
(ruby-syntax-propertize-percent-literal):
Don't check the syntax status.
(ruby-syntax-propertize): Check it here.  And also guard against
being in a larger percent literal.

* test/automated/ruby-mode-tests.el
(ruby-no-nested-percent-literals): New test.

8 years agoRecognize iuwu-mod after an escaped newline
Dmitry Gutov [Sun, 6 Mar 2016 21:18:06 +0000 (23:18 +0200)]
Recognize iuwu-mod after an escaped newline

* lisp/progmodes/ruby-mode.el (ruby-smie--bosp): Check if the
newline is escaped.
(ruby-smie-rules): Indent iuwu-mod after an escaped newline
correctly.

8 years agoFix symbolic mode string conversion for s and t
Andreas Schwab [Sun, 6 Mar 2016 23:20:40 +0000 (00:20 +0100)]
Fix symbolic mode string conversion for s and t

* lisp/files.el (file-modes-char-to-right): Fix values for ?s and
?t.
(file-modes-symbolic-to-number): Default to a for ts permissions.

8 years agoRevert "Use colors in the VC mode lines"
John Wiegley [Sun, 6 Mar 2016 20:51:44 +0000 (12:51 -0800)]
Revert "Use colors in the VC mode lines"

This reverts commit 2621c293d82c15c00d9e73a8db75d70da7d0a23b.

8 years agoUpdate 'ucs-names' database
Eli Zaretskii [Sun, 6 Mar 2016 20:22:53 +0000 (22:22 +0200)]
Update 'ucs-names' database

* lisp/international/mule-cmds.el (ucs-names): Update used and
unused ranges from the latest UnicodeData.txt.

8 years agoImprove doc string of 'shell-command'
Eli Zaretskii [Sun, 6 Mar 2016 17:36:57 +0000 (19:36 +0200)]
Improve doc string of 'shell-command'

* lisp/simple.el (shell-command): Mention that COMMAND is prompted
for.  (Bug#22926)

8 years agoFix Cygwin-w32 build
Ken Brown [Sun, 6 Mar 2016 17:08:39 +0000 (12:08 -0500)]
Fix Cygwin-w32 build

* src/w32fns.c (funhook, setup_w32_kbdhook, remove_w32_kbdhook):
Define only if WINDOWSNT, and update all uses accordingly.
* src/w32term.h (check_w32_winkey_state, setup_w32_kbdhook)
(remove_w32_kbdhook): Declare only if WINDOWSNT.
(w32_kbdhook_active): Define as 0 if not WINDOWSNT.

8 years agoUnbreak the MinGW64 build
Eli Zaretskii [Sun, 6 Mar 2016 16:52:32 +0000 (18:52 +0200)]
Unbreak the MinGW64 build

* nt/inc/ms-w32.h [MINGW_W64]: Undefine HAVE_GAI_STRERROR.  See
http://lists.gnu.org/archive/html/emacs-devel/2016-03/msg00130.html
for the details.  Reported by Angelo Graziosi
<angelo.graziosi@alice.it>.

8 years agoMake the code in movemail_strftime more general
Eli Zaretskii [Sun, 6 Mar 2016 16:27:16 +0000 (18:27 +0200)]
Make the code in movemail_strftime more general

* lib-src/movemail.c (movemail_strftime): Transform the format
string passed by the caller instead of using a separate format
string.

8 years agoSpeed up redisplay of binary files with long series of nulls
Eli Zaretskii [Sun, 6 Mar 2016 16:14:46 +0000 (18:14 +0200)]
Speed up redisplay of binary files with long series of nulls

* src/bidi.c (bidi_resolve_weak): Avoid entering a loop searching
for a character needed for resolving the type of a series of BN
and ET characters, as required by rule W5 of UAX#9, if the results
of the resolution are known in advance, because we are at level
zero, and the previous strong character was L.
(bidi_resolve_neutral): Partially resurrect the optimization for a
long series of control characters in an otherwise strictly L2R
text.
(bidi_level_of_next_char): Don't enter the loop that searches for
a paragraph separator if the current character is already at base
embedding level.  (Bug#22739)

8 years agoDon't signal errors on E_AGAIN
Lars Magne Ingebrigtsen [Sun, 6 Mar 2016 09:22:37 +0000 (10:22 +0100)]
Don't signal errors on E_AGAIN

* src/gnutls.c (Fgnutls_errorp): Qgnutls_e_again is not an
error now that TLS is async.

8 years agoRemove the highlighting support for quoting 'like this' inside Lisp docstrings
Dmitry Gutov [Sun, 6 Mar 2016 00:40:49 +0000 (02:40 +0200)]
Remove the highlighting support for quoting 'like this' inside Lisp docstrings

Remove the highlighting support for quoting 'like this' inside
Lisp docstrings.  This part of
c4151ebe15479de4c2e511b068cdf9af6a4576cf seems to have been
unintentional, considering substitute-command-keys gives wrong
output for such usage.
* lisp/emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2)
(lisp-cl-font-lock-keywords-2): Do not highlight text between two
straight quotes as symbol.

8 years agoRestore leading space in movemail pop output
Paul Eggert [Sat, 5 Mar 2016 19:30:51 +0000 (11:30 -0800)]
Restore leading space in movemail pop output

* lib-src/movemail.c (movemail_strftime) [WINDOWSNT]: New function.
(strftime) [WINDOWSNT]: New macro.
(mbx_delimit_begin): Go back to previous version of this code,
now that there’s a special-purpose WINDOWSNT implementation
that should do the right thing.  That way, the output continues
to use leading space rather than leading zero for day of month.

8 years agoAllow making TLS negotiation blocking
Lars Magne Ingebrigtsen [Sat, 5 Mar 2016 16:04:23 +0000 (17:04 +0100)]
Allow making TLS negotiation blocking

* lisp/net/gnutls.el (gnutls-negotiate): Make negotiation blocking.

* src/gnutls.c (Fgnutls_boot): Provide a new keyword,
:complete-negotiation, to specify that we want complete
negotiation even if the socket is non-blocking.
(gnutls_try_handshake): Complete negotiation if given that keyword.

* src/process.h (L): Added gnutls_complete_negotiation_p.

8 years agoDon't run ipv6 test on systems without ipv6
Lars Magne Ingebrigtsen [Sat, 5 Mar 2016 15:46:42 +0000 (16:46 +0100)]
Don't run ipv6 test on systems without ipv6

* test/lisp/net/network-stream-tests.el
(connect-to-tls-ipv6-nowait): Skip on systems without ipv6.

8 years agoFix bidi-paragraph-direction in Rmail view buffer
Eli Zaretskii [Sat, 5 Mar 2016 12:48:37 +0000 (14:48 +0200)]
Fix bidi-paragraph-direction in Rmail view buffer

* lisp/mail/rmail.el (rmail-show-message-1): Reset
bidi-paragraph-direction to nil before formatting the message for
display.

8 years agoDon't misindent computed property generator methods
Dmitry Gutov [Sat, 5 Mar 2016 12:35:10 +0000 (14:35 +0200)]
Don't misindent computed property generator methods

* lisp/progmodes/js.el (js--looking-at-operator-p):
Don't misindent computed property generator methods
(https://github.com/mooz/js2-mode/issues/317).

8 years agoFix mbox files produced by movemail on MS-Windows
Eli Zaretskii [Sat, 5 Mar 2016 10:57:06 +0000 (12:57 +0200)]
Fix mbox files produced by movemail on MS-Windows

* lib-src/movemail.c (mbx_delimit_begin): Use portable strftime
format specifiers, as at least the MS-Windows version of strftime
doesn't support %e and %T.

8 years agoImplement getaddrinfo fallback for MS-Windows
Eli Zaretskii [Sat, 5 Mar 2016 10:12:58 +0000 (12:12 +0200)]
Implement getaddrinfo fallback for MS-Windows

See http://lists.gnu.org/archive/html/emacs-devel/2016-02/msg01602.html
for more details.

* nt/mingw-cfg.site (ac_cv_func_getaddrinfo)
(ac_cv_func_gai_strerror): Set to "yes", as the configure script's
test program is not smart enough to auto-detect these.
* nt/inc/sys/socket.h (getaddrinfo, freeaddrinfo): Redirect to
sys_getaddrinfo and sys_freeaddrinfo.  Provide prototypes for
sys_getaddrinfo and sys_freeaddrinfo.

* src/w32.c (init_winsock): Try loading getaddrinfo and
freeaddrinfo from ws2_32.dll.
(sys_getaddrinfo, sys_freeaddrinfo): New functions.

* lib-src/pop.c [WINDOWSNT]: Include winsock2.h, not winsock.h,
and also ws2tcpip.h.
(getaddrinfo, freeaddrinfo) [WINDOWSNT]: Redirect to
sys_getaddrinfo and sys_freeaddrinfo, respectively.
(load_ws2, sys_getaddrinfo, sys_freeaddrinfo) [WINDOWSNT]: New
functions.

8 years agodoc string file descriptor exhaustion fix
Paul Eggert [Sat, 5 Mar 2016 00:29:55 +0000 (16:29 -0800)]
doc string file descriptor exhaustion fix

* src/doc.c (get_doc_string): Move newly-added check to a better
location (Bug#22814).

8 years ago* lisp/files.el: Fix recent typo.
Glenn Morris [Fri, 4 Mar 2016 18:36:12 +0000 (13:36 -0500)]
* lisp/files.el: Fix recent typo.

8 years ago* lisp/subr.el (read-multiple-choice): Avoid free variable.
Glenn Morris [Fri, 4 Mar 2016 18:34:51 +0000 (13:34 -0500)]
* lisp/subr.el (read-multiple-choice): Avoid free variable.

8 years ago* doc/lispref/files.texi (File Attributes): Fix typo.
Glenn Morris [Fri, 4 Mar 2016 17:41:14 +0000 (12:41 -0500)]
* doc/lispref/files.texi (File Attributes): Fix typo.

8 years agoMake the describe-key prompts clearer
Lars Ingebrigtsen [Fri, 4 Mar 2016 14:09:02 +0000 (14:09 +0000)]
Make the describe-key prompts clearer

* lisp/help.el (describe-key-briefly): Make the prompt clearer
(bug#14854).
(describe-key): Ditto.

8 years agoAllow scrolling while querying multiple choice
Lars Ingebrigtsen [Fri, 4 Mar 2016 14:02:11 +0000 (14:02 +0000)]
Allow scrolling while querying multiple choice

* lisp/subr.el (read-multiple-choice): Allow scrolling the
buffer while querying (bug#22827).

8 years agoAdd accessors for `file-attributes'
Lars Ingebrigtsen [Fri, 4 Mar 2016 13:39:07 +0000 (13:39 +0000)]
Add accessors for `file-attributes'

* doc/lispref/files.texi (File Attributes): Mention the accessors.

* lisp/files.el (file-attribute-type)
(file-attribute-link-number, file-attribute-user-id)
(file-attribute-group-id, file-attribute-access-time)
(file-attribute-modification-time)
(file-attribute-change-time, file-attribute-size)
(file-attribute-modes, file-attribute-inode-number)
(file-attribute-device-number): New functions.

* src/dired.c (Ffile_attributes): Mention the accessors (bug#22890).

8 years agoFix Bug#22814
Michael Albinus [Fri, 4 Mar 2016 14:01:36 +0000 (14:01 +0000)]
Fix Bug#22814

* lisp/autorevert.el (global-auto-revert-mode): Do not set
`auto-revert-use-notify' to nil.

* etc/NEWS: Mention this.

* etc/PROBLEMS: Remove problem Bug#22814.

* src/kqueue.c: Include <sys/resource.h>.
(Fkqueue_add_watch): Limit the number of used file descriptors.
(Bug#22814)

* test/lisp/filenotify-tests.el (file-notify--test-remote-enabled)
(file-notify-test00-availability, file-notify-test01-add-watch)
(file-notify-test02-events, file-notify-test06-many-events):
Use #' read syntax for functions.
(file-notify-test05-dir-validity)
(file-notify-test06-many-events): Simplify directory creation.
(file-notify-test09-sufficient-ressources): New test.

8 years agoFix Bug#22814
Michael Albinus [Fri, 4 Mar 2016 12:57:43 +0000 (12:57 +0000)]
Fix Bug#22814

* src/doc.c (get_doc_string): Raise an error in case too many
files are open.  (Bug#22814)

8 years agoFix insertion of edited servers in the dribble file
Lars Ingebrigtsen [Fri, 4 Mar 2016 11:52:26 +0000 (11:52 +0000)]
Fix insertion of edited servers in the dribble file

* lisp/gnus/gnus-srvr.el (gnus-server-update-server): Don't
insert explicit newlines, because they're quoted (bug#22903).

Backport:

(cherry picked from commit ca4e30058eba0531f38fff75f14734acffab84ea)

8 years agoFix insertion of edited servers in the dribble file
Lars Ingebrigtsen [Fri, 4 Mar 2016 11:52:26 +0000 (11:52 +0000)]
Fix insertion of edited servers in the dribble file

* lisp/gnus/gnus-srvr.el (gnus-server-update-server): Don't
insert explicit newlines, because they're quoted (bug#22903).

8 years agoMove cl-seq-tests to the right place after the merge
Lars Ingebrigtsen [Fri, 4 Mar 2016 09:11:26 +0000 (09:11 +0000)]
Move cl-seq-tests to the right place after the merge

8 years agoMove cl-seq-tests to the right place after the merge
Lars Ingebrigtsen [Fri, 4 Mar 2016 09:09:07 +0000 (09:09 +0000)]
Move cl-seq-tests to the right place after the merge

8 years agoMerge from origin/emacs-25
John Wiegley [Fri, 4 Mar 2016 07:53:38 +0000 (23:53 -0800)]
Merge from origin/emacs-25

d6f6b7d * etc/AUTHORS: Update the AUTHORS file
5cf7c39 authors.el updates
a26f193 ; fix changelog entries
fbc85c7 ; make change-history-commit
06da00c Fix Bug#22859
ab30bf5 ; * src/w32proc.c: Update the commentary to sys_select.
1481029 Fix reordering of bidi text in an isolate inside an override
60e0596 Document c-guess-basic-syntax in the CC Mode manual.

8 years ago; Merge from origin/emacs-25
John Wiegley [Fri, 4 Mar 2016 07:53:27 +0000 (23:53 -0800)]
; Merge from origin/emacs-25

The following commit was skipped:

733fb9f ; Auto-commit of loaddefs files.

8 years agoMerge from origin/emacs-25
John Wiegley [Fri, 4 Mar 2016 07:53:27 +0000 (23:53 -0800)]
Merge from origin/emacs-25

f5d1435 Fix targets in test/automated/Makefile.in

8 years ago; Merge from origin/emacs-25
John Wiegley [Fri, 4 Mar 2016 07:53:27 +0000 (23:53 -0800)]
; Merge from origin/emacs-25

The following commit was skipped:

38698b6 ; * lisp/vc/vc-hooks.el: corrected docstring of face

8 years agoMerge from origin/emacs-25
John Wiegley [Fri, 4 Mar 2016 07:53:27 +0000 (23:53 -0800)]
Merge from origin/emacs-25

b6d6304 Comment on last change to define-derived-mode

8 years ago; Merge from origin/emacs-25
John Wiegley [Fri, 4 Mar 2016 07:53:27 +0000 (23:53 -0800)]
; Merge from origin/emacs-25

The following commit was skipped:

7c1e6eb Allow binding `url-mime-accept-string'

8 years agoMerge from origin/emacs-25
John Wiegley [Fri, 4 Mar 2016 07:53:27 +0000 (23:53 -0800)]
Merge from origin/emacs-25

cb1e3da Also allow setting the paragraph direction to nil
bbe8a89 Made the new OS X visible bell more visible.

8 years ago; Merge from origin/emacs-25
John Wiegley [Fri, 4 Mar 2016 07:53:27 +0000 (23:53 -0800)]
; Merge from origin/emacs-25

The following commits were skipped:

dc42d0c Use the correct background color when filling nested <divs>
9781dc4 Make <div> in <li> not insert extra newlines

8 years agoMerge from origin/emacs-25
John Wiegley [Fri, 4 Mar 2016 07:53:26 +0000 (23:53 -0800)]
Merge from origin/emacs-25

aae436e Uncomment the next-error-function integration in xref
5f0d096 Remove the word "valid", to avoid ambiguity

8 years ago; Merge from origin/emacs-25
John Wiegley [Fri, 4 Mar 2016 07:53:26 +0000 (23:53 -0800)]
; Merge from origin/emacs-25

The following commit was skipped:

52f64cc Merge branch 'emacs-25' of git.sv.gnu.org:/srv/git/emacs into emacs-25