]> code.delx.au - gnu-emacs/log
gnu-emacs
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 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 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 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 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 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 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 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 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 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 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 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 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 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 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.

8 years agoemacs-module.h slight simplification
Paul Eggert [Wed, 2 Mar 2016 22:31:01 +0000 (14:31 -0800)]
emacs-module.h slight simplification

* src/emacs-module.c (emacs_init_function, emacs_subr): Move here ...
* src/emacs-module.h: ... from here, as they don’t need to be public.
(enum emacs_arity): Remove useless enum tag.  The enum value is
used in ptrdiff_t contexts.

* src/emacs-module.c (CHECK_USER_PTR): Fix typo in previous change.

8 years ago* src/emacs-module.c (CHECK_USER_PTR): Fix typo in previous change.
Paul Eggert [Wed, 2 Mar 2016 22:16:08 +0000 (14:16 -0800)]
* src/emacs-module.c (CHECK_USER_PTR): Fix typo in previous change.

8 years agoemacs-module.c simplification and tuneup
Paul Eggert [Wed, 2 Mar 2016 18:47:27 +0000 (10:47 -0800)]
emacs-module.c simplification and tuneup

* src/emacs-module.c (CHECK_USER_PTR): New function.
(module_get_user_ptr, module_set_user_ptr)
(module_get_user_finalizer, module_set_user_finalizer): Use it.
(module_make_global_ref, module_copy_string_contents)
(module_make_string, module_vec_set, module_vec_get): Omit
unnecessary runtime tests.  For example, vector sizes are always
fixnums, so we don’t need to test that they are in fixnum range.

8 years agoUse standard checks whenever possible.
Philipp Stephani [Wed, 2 Mar 2016 18:47:27 +0000 (10:47 -0800)]
Use standard checks whenever possible.

This is possible in all functions where we catch signals anyway.

* emacs-module.c (module_make_global_ref, module_funcall)
(module_copy_string_contents, module_make_string): Use xsignal0
and CHECK macros for argument checks.

8 years agoDeterministic build improvements
Paul Eggert [Wed, 2 Mar 2016 18:21:45 +0000 (10:21 -0800)]
Deterministic build improvements

* configure.ac (BUILD_DETAILS): Rename from DETERMINISTIC_DUMP,
and negate its sense.  Use it via AC_SUBST, not AC_DEFINE,
and have its value be either empty or --no-build-details.
All uses changed.  Change option to --disable-build-details.
* doc/lispref/cmdargs.texi (Initial Options):
Document --no-build-details.
* doc/lispref/internals.texi (Building Emacs):
* etc/NEWS:
Document --disable-build-details.
* doc/lispref/intro.texi (Version Info): Say that
emacs-build-time can be nil.
* lisp/erc/erc-compat.el (erc-emacs-build-time):
Now nil if details are omitted.
* lisp/erc/erc.el (erc-cmd-SV):
* lisp/version.el (emacs-build-time):
Now nil if no build details.
(emacs-version):
Output build time only if build details.
* src/Makefile.in (BUILD_DETAILS): New macro.
(temacs, bootstrap-emacs): Use it.
* src/emacs.c (build_details): New var.
(standard_args, main): Support --no-build-details.
(Vdeterministic_dump): Remove; all uses replaced
by !build_details.
(syms_of_emacs): Set Vbuild_details to a boolean, not
to a Lisp_Object.
* src/lisp.h (build_details): New decl.
* src/sysdep.c (init_system_name): When !build_details,
set system-name to nil, not to "elided".

8 years agoRemove build system name from deterministic dumps
Philipp Stephani [Wed, 2 Mar 2016 18:21:45 +0000 (10:21 -0800)]
Remove build system name from deterministic dumps

* configure.ac (DETERMINISTIC_DUMP): New configuration option.
* lisp/version.el (emacs-build-time): Add a comment to make the
build time deterministic if requested.
(emacs-build-system): Make variable deterministic if requested.
* src/emacs.c (main): Initialize `deterministic-dump' from the
configuration option.
(syms_of_emacs): New constant `deterministic-dump'.
* src/sysdep.c (init_system_name): Use a constant
if a deterministic dump is requested.

8 years agoPrevent infinite loop on not-well-formed xml. (Bug#16344)
Ulf Jasper [Wed, 2 Mar 2016 18:03:27 +0000 (19:03 +0100)]
Prevent infinite loop on not-well-formed xml. (Bug#16344)

* lisp/xml.el (xml-parse-tag-1): Prevent inifinite loop. (Bug#16344)
* test/automated/xml-parse-tests.el (xml-parse-tests--bad-data): Add
  test cases for Bug#16344.

8 years agoAdd the missing test case for the previous patch
Alan Third [Wed, 2 Mar 2016 17:21:24 +0000 (17:21 +0000)]
Add the missing test case for the previous patch

lisp/dabbrev.el (dabbrev--substitute-expansion): Return EXPANSION after
any processing.
lisp/dabbrev.el (dabbrev-expand): Set EXPANSION to the return value of
DABBREV--SUBSTITUTE-EXPANSION.
test/automated/dabbrev-tests.el (dabbrev-expand-test): Test for bug#1948.

8 years agoUse the correct dabbrev expansion
Alan Third [Wed, 2 Mar 2016 17:20:47 +0000 (17:20 +0000)]
Use the correct dabbrev expansion

lisp/dabbrev.el (dabbrev--substitute-expansion): Return EXPANSION after
any processing.
lisp/dabbrev.el (dabbrev-expand): Set EXPANSION to the return value of
DABBREV--SUBSTITUTE-EXPANSION.
test/automated/dabbrev-tests.el (dabbrev-expand-test): Test for bug#1948.

8 years ago; Auto-commit of loaddefs files. emacs-25.0.92
Nicolas Petton [Wed, 2 Mar 2016 17:03:12 +0000 (18:03 +0100)]
; Auto-commit of loaddefs files.

8 years agoRemove buggy parse-time test
Lars Ingebrigtsen [Wed, 2 Mar 2016 17:00:05 +0000 (17:00 +0000)]
Remove buggy parse-time test

* test/lisp/calendar/parse-time-tests.el (parse-time-tests):
Remove the iso parse test, since it doesn't work.

8 years agoBump version to 25.0.92
Nicolas Petton [Wed, 2 Mar 2016 16:05:22 +0000 (17:05 +0100)]
Bump version to 25.0.92

* README:
* configure.ac:
* msdos/sed2v2.inp: Bump version to 25.0.92.

8 years ago* etc/AUTHORS: Update the AUTHORS file
Nicolas Petton [Wed, 2 Mar 2016 16:04:36 +0000 (17:04 +0100)]
* etc/AUTHORS: Update the AUTHORS file

8 years agoauthors.el updates
Nicolas Petton [Wed, 2 Mar 2016 16:03:59 +0000 (17:03 +0100)]
authors.el updates

* admin/authors.el (authors-ignored-files): Addition.

8 years ago; fix changelog entries
Nicolas Petton [Wed, 2 Mar 2016 16:03:21 +0000 (17:03 +0100)]
; fix changelog entries

8 years ago; make change-history-commit
Nicolas Petton [Wed, 2 Mar 2016 12:46:19 +0000 (13:46 +0100)]
; make change-history-commit

8 years agoFix Bug#22859
Michael Albinus [Wed, 2 Mar 2016 10:24:55 +0000 (10:24 +0000)]
Fix Bug#22859

* lisp/filenotify.el (file-notify-callback): Return a `deleted'
event in case of kqueue and file1 is nil.  (Bug#22859)

8 years ago; * src/w32proc.c: Update the commentary to sys_select.
Eli Zaretskii [Tue, 1 Mar 2016 18:18:10 +0000 (20:18 +0200)]
; * src/w32proc.c: Update the commentary to sys_select.

8 years ago* src/syntax.c (syntax_multibyte): Omit unnecessary parens.
Paul Eggert [Tue, 1 Mar 2016 17:23:12 +0000 (09:23 -0800)]
* src/syntax.c (syntax_multibyte): Omit unnecessary parens.

8 years agoFix reordering of bidi text in an isolate inside an override
Eli Zaretskii [Tue, 1 Mar 2016 16:41:04 +0000 (18:41 +0200)]
Fix reordering of bidi text in an isolate inside an override

* src/bidi.c (bidi_resolve_explicit): Override the orig_type value
of FSI with either LRI or RLI, as determined by the first strong
directional character in the isolate.  This prevents failure to
isolate when the FSI...PDI text is inside a directional override.
(Bug#22786)

8 years agoDocument c-guess-basic-syntax in the CC Mode manual.
Alan Mackenzie [Tue, 1 Mar 2016 15:01:46 +0000 (15:01 +0000)]
Document c-guess-basic-syntax in the CC Mode manual.

* doc/misc/cc-mode.texi (Syntactic Analysis): Document the function, adding
pxrefs to Custom Line-Up and Other Indentation.
(Custom Line-Up): Add a note on using c-guess-basic-syntax with a pxref to
Syntactic Analysis.

8 years ago; Auto-commit of loaddefs files.
Glenn Morris [Tue, 1 Mar 2016 12:19:06 +0000 (07:19 -0500)]
; Auto-commit of loaddefs files.

8 years ago; Auto-commit of loaddefs files.
Glenn Morris [Tue, 1 Mar 2016 11:23:23 +0000 (06:23 -0500)]
; Auto-commit of loaddefs files.

8 years agoFix targets in test/automated/Makefile.in
Michael Albinus [Tue, 1 Mar 2016 09:58:01 +0000 (10:58 +0100)]
Fix targets in test/automated/Makefile.in

* test/automated/Makefile.in: Use $(SELECTOR_DEFAULT) also for
empty target and target all.

8 years ago* lisp/emacs-lisp/autoload.el (autoload-timestamps):
Glenn Morris [Tue, 1 Mar 2016 05:10:42 +0000 (21:10 -0800)]
* lisp/emacs-lisp/autoload.el (autoload-timestamps):
Experiment with setting to nil.

; * etc/NEWS: Mention this.

8 years agoMake the revert command in timer-list-mode work
Lars Ingebrigtsen [Tue, 1 Mar 2016 05:06:24 +0000 (16:06 +1100)]
Make the revert command in timer-list-mode work

* lisp/emacs-lisp/timer-list.el (timer-list): Make the revert
command work.

8 years ago* lisp/emacs-lisp/autoload.el (autoload-find-destination):
Glenn Morris [Tue, 1 Mar 2016 05:03:47 +0000 (21:03 -0800)]
* lisp/emacs-lisp/autoload.el (autoload-find-destination):
Fix 6-week old merge error.

8 years ago* lisp/emacs-lisp/autoload.el (update-file-autoloads):
Glenn Morris [Tue, 1 Mar 2016 04:51:47 +0000 (20:51 -0800)]
* lisp/emacs-lisp/autoload.el (update-file-autoloads):
Ensure timestamps.

8 years ago* lisp/emacs-lisp/package.el (package-generate-autoloads):
Glenn Morris [Tue, 1 Mar 2016 04:47:12 +0000 (20:47 -0800)]
* lisp/emacs-lisp/package.el (package-generate-autoloads):
Disable timestamps.

8 years ago; * lisp/vc/vc-hooks.el: corrected docstring of face
Oscar Fuentes [Tue, 1 Mar 2016 03:53:03 +0000 (04:53 +0100)]
; * lisp/vc/vc-hooks.el: corrected docstring of face

Do not merge to master

8 years agoComment on last change to define-derived-mode
Leo Liu [Tue, 1 Mar 2016 03:50:11 +0000 (11:50 +0800)]
Comment on last change to define-derived-mode

* lisp/emacs-lisp/derived.el (define-derived-mode): Add comment.

8 years agoAllow binding `url-mime-accept-string'
Lars Ingebrigtsen [Tue, 1 Mar 2016 03:49:26 +0000 (14:49 +1100)]
Allow binding `url-mime-accept-string'

* lisp/url/url-http.el (url-http): Allow binding
`url-mime-accept-string' (bug#22855).

Backport:

(cherry picked from commit 144bb0cf322b9756d29def3e27a42303e2edce43)

8 years agoAllow binding `url-mime-accept-string'
Lars Ingebrigtsen [Tue, 1 Mar 2016 03:49:26 +0000 (14:49 +1100)]
Allow binding `url-mime-accept-string'

* lisp/url/url-http.el (url-http): Allow binding
`url-mime-accept-string' (bug#22855).

8 years agoAdd a NEWS entry for the colorful VC indicator
Lars Ingebrigtsen [Tue, 1 Mar 2016 03:31:35 +0000 (14:31 +1100)]
Add a NEWS entry for the colorful VC indicator

8 years agoUse colors in the VC mode lines
Lars Ingebrigtsen [Tue, 1 Mar 2016 03:25:27 +0000 (14:25 +1100)]
Use colors in the VC mode lines

* lisp/vc/vc-hooks.el: Make the mode line faces default to
using colors to more clearly tell the user what the status is.

8 years agoAlso allow setting the paragraph direction to nil
Lars Ingebrigtsen [Tue, 1 Mar 2016 00:31:37 +0000 (11:31 +1100)]
Also allow setting the paragraph direction to nil

* lisp/net/eww.el (eww-toggle-paragraph-direction): Also allow
setting the paragraph direction to nil ("auto").

8 years agoSupport <bdo> and <bdi>
Lars Ingebrigtsen [Tue, 1 Mar 2016 00:19:52 +0000 (11:19 +1100)]
Support <bdo> and <bdi>

* lisp/net/shr.el (shr-tag-bdo): New function.
(shr-tag-bdi): Ditto.

8 years agoRespect <html dir=auto>
Lars Ingebrigtsen [Mon, 29 Feb 2016 23:48:36 +0000 (10:48 +1100)]
Respect <html dir=auto>

* lisp/net/shr.el (shr-tag-html): Respect the "auto"
directional HTML setting.

8 years agoDefault bidi paragraph direction to nil
Lars Ingebrigtsen [Mon, 29 Feb 2016 23:33:05 +0000 (10:33 +1100)]
Default bidi paragraph direction to nil

* lisp/net/eww.el (eww-display-html): Default bidi rendering
to nil, so that possibly more Arabic web pages render
correctly (bug#22786).
(eww-setup-buffer): Ditto.