]> code.delx.au - gnu-emacs/log
gnu-emacs
8 years agoFix documentation of seq.el functions
Eli Zaretskii [Sat, 12 Mar 2016 08:26:21 +0000 (10:26 +0200)]
Fix documentation of seq.el functions

* doc/lispref/sequences.texi (Sequence Functions): Fix typos.  Add
cross-references.  Fix formatting.  (Bug#22992)

8 years agoSupport Ruby 2.3.0's safe navigation operator
Dmitry Gutov [Fri, 11 Mar 2016 22:18:42 +0000 (00:18 +0200)]
Support Ruby 2.3.0's safe navigation operator

* lisp/progmodes/ruby-mode.el (ruby-smie--forward-token)
(ruby-smie--backward-token): Tokenize '&.' as '.'.
(ruby-smie--implicit-semi-p): Check for possible '&' before '.'.

* test/indent/ruby.rb: Add an example using safe navigation
operator.  Fix a syntax error in existing example.

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

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

5a44bfe Set auto-revert-use-notify to nil in global-auto-revert-mode.  (Bug#22814)
0d60bfc Fix ModelSim error parsing

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:

5cac11a Make parse-time-string-chars faster

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

b13cab6 Add a eww command to toggle paragraph direction
4e46128 * nextstep/WISHLIST: Merge into etc/TODO and remove.
9e078e5 Fix char signedness issue in bidi code
064adf6 * lib-src/pop.c (socket_connection): Fix format string.
14060a9 Avoid inflooping in thing-at-point-looking-at
098d47b * lisp/emacs-lisp/derived.el (define-derived-mode): Revert
        indent change.
b5db8e0 etc/PROBLEMS: Mention problems with using file descriptors
ec10ef9 * lisp/apropos.el (apropos-variable): Doc fix.  (Bug#22813).
d2dd614 Remove unneeded workaround in xftfont.c
9b7593c ; * etc/NEWS: Reflect latest changes in saveplace.
fde0cd1 * lisp/saveplace.el (save-place-local-mode): New minor mode
06a872b Fix redisplay on a TTY after 'make-frame'
95f5a43 Make double-click-1 work with unbalanced parens in CC Mode.
        Fixes bug#5560.
7d206fc Input method polish-slash should not use keyboard translation
8be32cf Fix an assertion
040e0d6 Fix 'toggle-save-place'
5244db2 * src/keyboard.c: Don't inadvertently set immediate_echo (bug#22581)

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

The following commit was skipped:

9d0b103 Minor fixes in calculator.el

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

e6a3819 Update HISTORY section in readme for the NextStep interface.
f67f1ed ; * doc/lispref/modes.texi (Font Lock Basics): Minor rewording.
7c81a0b Improve documentation of 'save-place-mode'
cab3f0a Allocate glyph matrices for the initial frame
e01c72f Fix white space in last checkin
370eb67 Make `insert-pair' always leave the cursor where documented
b594393 etc/NEWS: Mention the new second parameter to `package-install'

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

The following commit was skipped:

ce4bdd7 Highlight assignments in Makefiles more correctly

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

bd58c13 Improve documentation of focus-related hooks
00a4720 Further improve doc string of 'disable-point-adjustment'
c582def Further adaptions in file-notify-tests.el for w32notify
a1585e1 Don't bug out on localised dates in gnus-icalendar

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

The following commits were skipped:

dfe1650 (ls-lisp-insert-directory): Make -B work
42bc065 Make buttons in header lines work

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

7bc4820 Make setf for frame-height/width work again

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

The following commit was skipped:

1af5e6e Encode header strings before printing

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

6620944 (cl-union): Do not ignore :test argument when lists are equal.
17dd3fb Add `isearch' to `basic-faces'
c1ec743 Make $, : and @ "prefix characters" in ruby-mode
e72a26e Make find-tag-default-bounds more strict
1bc0e0a Minor fixes in filenotify.el

8 years agoFix previous fix of enlarge-/shrink-window
Martin Rudalics [Fri, 4 Mar 2016 07:37:53 +0000 (08:37 +0100)]
Fix previous fix of enlarge-/shrink-window

* lisp/window.el (enlarge-window, shrink-window): Consistently
signal user-error instead of error.  Resize minibuffer window by
delta lines instead of pixels.  When a window cannot be resized,
signal an error only when this function was invoked by a command
in the enlarge-/shrink-window group (this restores the behavior
before the fix of bug#22723 for the non-interactive case).

8 years ago* lisp/isearch.el (isearch-define-mode-toggle): Fix toggling logic
Artur Malabarba [Thu, 3 Mar 2016 22:03:16 +0000 (19:03 -0300)]
* lisp/isearch.el (isearch-define-mode-toggle): Fix toggling logic

8 years agoComplete temperature units in calc-convert-temperature
Mark Oteiza [Thu, 3 Mar 2016 17:56:44 +0000 (17:56 +0000)]
Complete temperature units in calc-convert-temperature

* lisp/calc/calc-units.el (calc-convert-temperature): Complete with
temperature units in math-standard-units.

8 years agoFix issue of inserting images on some systems
Alain Schneble [Thu, 3 Mar 2016 05:31:11 +0000 (05:31 +0000)]
Fix issue of inserting images on some systems

* lisp/net/shr.el (shr-tag-img): Construct a non-empty range
to pass to shr-image-fetched, to indicate where to insert the
image.  Fixes the issue introduced with commit
80852f843e69b81618f29cfb9aa4b074946cb3c4
(bug#22789).

8 years agoEnsure TLS negotiation progress
Lars Ingebrigtsen [Thu, 3 Mar 2016 05:14:48 +0000 (05:14 +0000)]
Ensure TLS negotiation progress

* src/gnutls.h (GNUTLS_EMACS_HANDSHAKES_LIMIT): Increase the
number of retries so that we try for about a minute.

* src/process.c (wait_reading_process_output): Ensure progress
for DNS resolution and TLS negotiation.

8 years agoMake sure to use case-sensitive search
Dmitry Gutov [Thu, 3 Mar 2016 00:36:27 +0000 (02:36 +0200)]
Make sure to use case-sensitive search

* lisp/progmodes/xref.el (xref-collect-references): Make sure to
use case-sensitive search.