]> code.delx.au - gnu-emacs/log
gnu-emacs
8 years agoFix problems caused by new implementation of sub-word mode
Eli Zaretskii [Tue, 22 Mar 2016 00:42:35 +0000 (17:42 -0700)]
Fix problems caused by new implementation of sub-word mode

* lisp/subr.el (forward-word-strictly, backward-word-strictly):
New functions.
(word-move-empty-char-table): New variable.

* etc/NEWS: Mention 'forward-word-strictly' and
'backward-word-strictly'.

* doc/lispref/positions.texi (Word Motion): Document
'find-word-boundary-function-table', 'forward-word-strictly', and
'backward-word-strictly'.  (Bug#22560)

* src/syntax.c (syms_of_syntax)
<find-word-boundary-function-table>: Doc fix.

* lisp/wdired.el (wdired-xcase-word):
* lisp/textmodes/texnfo-upd.el (texinfo-copy-node-name)
(texinfo-copy-section-title, texinfo-start-menu-description)
(texinfo-copy-menu-title, texinfo-specific-section-type)
(texinfo-insert-node-lines, texinfo-copy-next-section-title):
* lisp/textmodes/texinfo.el (texinfo-clone-environment)
(texinfo-insert-@end):
* lisp/textmodes/texinfmt.el (texinfo-format-scan)
(texinfo-anchor, texinfo-multitable-widths)
(texinfo-multitable-item):
* lisp/textmodes/tex-mode.el (latex-env-before-change):
* lisp/textmodes/flyspell.el (texinfo-mode-flyspell-verify):
* lisp/skeleton.el (skeleton-insert):
* lisp/simple.el (count-words):
* lisp/progmodes/vhdl-mode.el (vhdl-beginning-of-libunit)
(vhdl-beginning-of-defun, vhdl-beginning-of-statement-1)
(vhdl-update-sensitivity-list, vhdl-template-block)
(vhdl-template-break, vhdl-template-case, vhdl-template-default)
(vhdl-template-default-indent, vhdl-template-for-loop)
(vhdl-template-if-then-use, vhdl-template-bare-loop)
(vhdl-template-nature, vhdl-template-procedural)
(vhdl-template-process, vhdl-template-selected-signal-asst)
(vhdl-template-type, vhdl-template-variable)
(vhdl-template-while-loop, vhdl-beginning-of-block)
(vhdl-hooked-abbrev, vhdl-port-copy, vhdl-hs-forward-sexp-func):
* lisp/progmodes/verilog-mode.el (verilog-backward-sexp)
(verilog-forward-sexp, verilog-beg-of-statement)
(verilog-set-auto-endcomments, verilog-backward-token)
(verilog-do-indent):
* lisp/progmodes/vera-mode.el (vera-guess-basic-syntax)
(vera-indent-block-closing):
* lisp/progmodes/simula.el (simula-context)
(simula-backward-up-level, simula-forward-down-level)
(simula-previous-statement, simula-next-statement)
(simula-skip-comment-backward, simula-calculate-indent)
(simula-find-if, simula-electric-keyword):
* lisp/progmodes/sh-script.el (sh-smie--rc-newline-semi-p):
* lisp/progmodes/ruby-mode.el (ruby-smie--redundant-do-p)
(ruby-smie--forward-token, ruby-smie--backward-token)
(ruby-singleton-class-p, ruby-calculate-indent)
(ruby-forward-sexp, ruby-backward-sexp):
* lisp/progmodes/ps-mode.el (ps-run-goto-error):
* lisp/progmodes/perl-mode.el (perl-syntax-propertize-function)
(perl-syntax-propertize-special-constructs)
(perl-backward-to-start-of-continued-exp):
* lisp/progmodes/pascal.el (pascal-indent-declaration):
* lisp/progmodes/octave.el (octave-function-file-p):
* lisp/progmodes/mantemp.el (mantemp-insert-cxx-syntax):
* lisp/progmodes/js.el (js--forward-function-decl):
* lisp/progmodes/idlwave.el (idlwave-show-begin-check)
(idlwave-beginning-of-block, idlwave-end-of-block)
(idlwave-block-jump-out, idlwave-determine-class):
* lisp/progmodes/icon.el (icon-is-continuation-line)
(icon-backward-to-start-of-continued-exp, end-of-icon-defun):
* lisp/progmodes/hideif.el (hide-ifdef-define):
* lisp/progmodes/f90.el (f90-change-keywords):
* lisp/progmodes/cperl-mode.el (cperl-electric-pod)
(cperl-linefeed, cperl-electric-terminator)
(cperl-find-pods-heres, cperl-fix-line-spacing)
(cperl-invert-if-unless):
* lisp/progmodes/cc-engine.el (c-forward-<>-arglist-recur):
* lisp/progmodes/cc-align.el (c-lineup-java-inher):
* lisp/progmodes/ada-mode.el (ada-compile-goto-error)
(ada-adjust-case-skeleton, ada-create-case-exception)
(ada-create-case-exception-substring)
(ada-case-read-exceptions-from-file, ada-after-keyword-p)
(ada-scan-paramlist, ada-get-current-indent, ada-get-indent-end)
(ada-get-indent-if, ada-get-indent-block-start)
(ada-get-indent-loop, ada-get-indent-type)
(ada-search-prev-end-stmt, ada-check-defun-name)
(ada-goto-decl-start, ada-goto-matching-start)
(ada-goto-matching-end, ada-looking-at-semi-or)
(ada-looking-at-semi-private, ada-in-paramlist-p)
(ada-search-ignore-complex-boolean, ada-move-to-start)
(ada-move-to-end, ada-which-function, ada-gen-treat-proc):
* lisp/net/quickurl.el (quickurl-grab-url):
* lisp/mail/sendmail.el (mail-do-fcc):
* lisp/mail/rmail.el (rmail-resend):
* lisp/mail/mailabbrev.el (mail-abbrev-complete-alias):
* lisp/mail/mail-extr.el (mail-extract-address-components):
* lisp/json.el (json-read-keyword):
* lisp/files.el (insert-directory):
* lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
* lisp/completion.el (symbol-under-point, symbol-before-point)
(symbol-before-point-for-complete, next-cdabbrev)
(add-completions-from-c-buffer):
* lisp/cedet/semantic/texi.el (semantic-up-context)
(semantic-beginning-of-context):
* lisp/cedet/semantic/bovine/el.el (semantic-get-local-variables):
use 'forward-word-strictly' and 'backward-word-strictly' instead
of 'forward-word' and 'backward-word'.

[This reapplies commit c1d32a65372c72d7de4808d620eefd3214a8e92a,
which was inadvertently lost by merge commit
c71e7cc113ed0d5f01aaa2e441a3e3c9fbeb9fa5.]

8 years ago* etc/TODO: Minor quoting and grammar fixes.
Paul Eggert [Tue, 22 Mar 2016 00:32:12 +0000 (17:32 -0700)]
* etc/TODO: Minor quoting and grammar fixes.

[This reapplies commit 433407d8230a8a256b26c6c7615d3921b43f59ce,
which was inadvertently lost by merge commit
5ab243f40e4db91586ff74b01a775a5218a1d5be.]

8 years agoDon't confuse "::" with ":" when trying to parse member initializers.
Alan Mackenzie [Fri, 15 Jan 2016 21:15:20 +0000 (21:15 +0000)]
Don't confuse "::" with ":" when trying to parse member initializers.

* lisp/progmodes/cc-engine.el (c-back-over-member-initializers): Check
more robustly for ":" token when searching backwards for it.

* lisp/progmodes/cc-langs (c-:$-multichar-token-regexp): New language
variable.

[This reapplies commit 9e5452f7166e3634f2d8e943815ed722e1672714,
which was inadvertently lost by merge commit
7823745acbe9b87eea2db4ef434e379fc903ec35.]

8 years agoEnsure positive number of glyphs for margins of positive width
Eli Zaretskii [Fri, 15 Jan 2016 15:36:47 +0000 (17:36 +0200)]
Ensure positive number of glyphs for margins of positive width

* src/dispnew.c (margin_glyphs_to_reserve): Always return a
positive value when a non-zero width of the marginal area was
requested.  (Bug#22356)

[This reapplies commit 740849fe986b62a839bce4bbf67d0036fc1be0b9,
which was inadvertently lost by merge commit
7823745acbe9b87eea2db4ef434e379fc903ec35.]

8 years agoIn comment-dwim with style `extra-line', respect indent-tabs-mode.
Alan Mackenzie [Fri, 15 Jan 2016 12:32:32 +0000 (12:32 +0000)]
In comment-dwim with style `extra-line', respect indent-tabs-mode.

This fixes bug #22369.

* lisp/newcomment.el (comment-make-bol-ws): New function.
(comment-make-extra-lines): Use new function instead of a crude `make-string'.

[This reapplies commit 016b3d5894b8c424eab262aeefc646c6cd03a70a,
which was inadvertently lost by merge commit
7823745acbe9b87eea2db4ef434e379fc903ec35.]

8 years agoMerge doc fixes for 'random' lost in previous merge
Eli Zaretskii [Fri, 15 Jan 2016 09:47:55 +0000 (11:47 +0200)]
Merge doc fixes for 'random' lost in previous merge

[This reapplies part of commit
3ffe81e245d854a694ae1734f1b6a995bdc5e724,
which was inadvertently lost by merge commit
7823745acbe9b87eea2db4ef434e379fc903ec35.]
(Bug#22202)

8 years agoUnhide the --no-line-directive option to 'etags'
Eli Zaretskii [Fri, 15 Jan 2016 08:54:03 +0000 (10:54 +0200)]
Unhide the --no-line-directive option to 'etags'

* lib-src/etags.c (print_help): Un-undocument the --no-line-directive
option.  (Bug#22306)

* doc/man/etags.1: Document the --no-line-directive option.

[This reapplies commit fee0526a189f43e8470d78e8374bd425890fbe6f,
which was inadvertently lost by merge commit
7823745acbe9b87eea2db4ef434e379fc903ec35.]

8 years agoFix picture-mode wrt double-width characters
Alan J Third [Fri, 15 Jan 2016 08:26:10 +0000 (10:26 +0200)]
Fix picture-mode wrt double-width characters

* lisp/textmodes/picture.el (picture-insert): Check the width of
the character being replaced, not just that of the replacement.
(Bug#1808)

[This reapplies commit b70dba4e18514411ed38b5bbb846558158842ace,
which was inadvertently lost by merge commit
7823745acbe9b87eea2db4ef434e379fc903ec35.]

Copyright-paperwork-exempt: yes

8 years ago; * etc/NEWS: Remove unneeded text.
Eli Zaretskii [Fri, 15 Jan 2016 08:14:30 +0000 (10:14 +0200)]
; * etc/NEWS: Remove unneeded text.

[This reapplies commit 2bc07f7a2a4fb96b470576567a18240f363b4a3b,
which was inadvertently lost by merge commit
7823745acbe9b87eea2db4ef434e379fc903ec35.]

8 years agoResurrect earlier fix of resize_frame_windows
Martin Rudalics [Sun, 20 Mar 2016 15:52:39 +0000 (16:52 +0100)]
Resurrect earlier fix of resize_frame_windows

* src/window.c (resize_frame_windows): Resurrect earlier fix for
calculating the number of columns of the minibuffer window which
was lost in subsequent merges.

8 years agoMove the cert files to the data directory
Lars Magne Ingebrigtsen [Sun, 20 Mar 2016 15:08:55 +0000 (16:08 +0100)]
Move the cert files to the data directory

8 years agoFurther empty <li> tweaks
Lars Magne Ingebrigtsen [Sun, 20 Mar 2016 14:15:32 +0000 (15:15 +0100)]
Further empty <li> tweaks

* lisp/net/shr.el (shr-tag-li): When showing several empty
<li> elements, ensure that they really get inserted on a new line.

8 years agoDon't remove too much white space at the end of documents
Lars Magne Ingebrigtsen [Sun, 20 Mar 2016 13:47:22 +0000 (14:47 +0100)]
Don't remove too much white space at the end of documents

* lisp/net/shr.el (shr--remove-blank-lines-at-the-end): Don't
remove too much white space -- leave it on the last line (in
case there's a background color).

8 years agoAmend parse-partial-sexp correctly to handle two character comment delimiters
Alan Mackenzie [Sun, 20 Mar 2016 13:19:48 +0000 (13:19 +0000)]
Amend parse-partial-sexp correctly to handle two character comment delimiters

Do this by adding a new field to the parser state: the syntax of the last
character scanned, should that be the first char of a (potential) two char
construct, nil otherwise.
This should make the parser state complete.
Also document element 9 of the parser state.  Also refactor the code a bit.

* src/syntax.c (struct lisp_parse_state): Add a new field.
(SYNTAX_FLAGS_COMSTARTEND_FIRST): New function.
(internalize_parse_state): New function, extracted from scan_sexps_forward.
(back_comment): Call internalize_parse_state.
(forw_comment): Return the syntax of the last character scanned to the caller
when that character might be the first of a two character construct.
(Fforward_comment, scan_lists): New dummy variables, passed to forw_comment.
(scan_sexps_forward): Remove a redundant state parameter.  Access all `state'
information via the address parameter `state'.  Remove the code which converts
from external to internal form of `state'.  Access buffer contents only from
`from' onwards.  Reformulate code at the top of the main loop correctly to
recognize comment openers when starting in the middle of one.  Call
forw_comment with extra argument (for return of syntax value of possible first
char of a two char construct).
(Fparse_partial_sexp): Document elements 9, 10 of the parser state in the
doc string.  Clarify the doc string in general.  Call
internalize_parse_state.  Take account of the new elements when consing up the
output parser state.

* doc/lispref/syntax.texi: (Parser State): Document element 9 and the new
element 10.  Minor wording corrections (remove reference to "trivial
cases").
(Low Level Parsing): Minor corrections.

* etc/NEWS: Note new element 10, and documentation of element 9 of parser
state.

8 years agoAllow the shr test files to have trailing blank space.
Lars Magne Ingebrigtsen [Sun, 20 Mar 2016 13:07:47 +0000 (14:07 +0100)]
Allow the shr test files to have trailing blank space.

* .gitattributes: Allow the shr test files to have trailing
blank space.

8 years agoAdd tests for empty <ul><li>
Lars Magne Ingebrigtsen [Sun, 20 Mar 2016 13:07:24 +0000 (14:07 +0100)]
Add tests for empty <ul><li>

8 years ago* src/alloc.c (purecopy): Use AUTO_STRING.
Paul Eggert [Sun, 20 Mar 2016 12:56:42 +0000 (05:56 -0700)]
* src/alloc.c (purecopy): Use AUTO_STRING.

8 years agoIgnore invalid base64 encoded embedded images
Lars Magne Ingebrigtsen [Sun, 20 Mar 2016 12:57:11 +0000 (13:57 +0100)]
Ignore invalid base64 encoded embedded images

* lisp/net/shr.el (shr-image-from-data): Ignore invalid base64
encoded embedded images (bug#22928).

8 years agoRender empty <ul><li><ul> correctly
Lars Magne Ingebrigtsen [Sun, 20 Mar 2016 12:52:36 +0000 (13:52 +0100)]
Render empty <ul><li><ul> correctly

* lisp/net/shr.el (shr-tag-ul): Render empty <ul><li><ul>
correctly (bug#22964).

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.