1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-24 10:38:38 +00:00
Commit Graph

125291 Commits

Author SHA1 Message Date
Paul Eggert
59c7a5d711 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.
2016-03-07 18:55:20 -08:00
Paul Eggert
6bc8689c04 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.
2016-03-07 08:26:36 -08:00
John Wiegley
7882dc625e Revert "Use colors in the VC mode lines"
This reverts commit 2621c293d8.
2016-03-06 12:51:44 -08:00
Ken Brown
258f1034d7 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.
2016-03-06 12:08:39 -05:00
Eli Zaretskii
69e03ddccf 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>.
2016-03-06 18:52:32 +02:00
Lars Magne Ingebrigtsen
20cc418259 Don't signal errors on E_AGAIN
* src/gnutls.c (Fgnutls_errorp): Qgnutls_e_again is not an
error now that TLS is async.
2016-03-06 10:22:37 +01:00
Lars Magne Ingebrigtsen
21b509d444 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.
2016-03-05 17:04:34 +01:00
Lars Magne Ingebrigtsen
76b97fb0f9 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.
2016-03-05 17:04:33 +01:00
Eli Zaretskii
bc96f6e827 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.
2016-03-05 12:12:58 +02:00
Glenn Morris
ac9a931d59 * lisp/files.el: Fix recent typo. 2016-03-04 13:36:12 -05:00
Glenn Morris
0cfdf1e83d * lisp/subr.el (read-multiple-choice): Avoid free variable. 2016-03-04 13:34:51 -05:00
Glenn Morris
9f9b4fa783 * doc/lispref/files.texi (File Attributes): Fix typo. 2016-03-04 12:41:14 -05:00
Lars Ingebrigtsen
1ba03225ad Make the describe-key prompts clearer
* lisp/help.el (describe-key-briefly): Make the prompt clearer
(bug#14854).
(describe-key): Ditto.
2016-03-04 15:33:38 +00:00
Lars Ingebrigtsen
cede502627 Allow scrolling while querying multiple choice
* lisp/subr.el (read-multiple-choice): Allow scrolling the
buffer while querying (bug#22827).
2016-03-04 15:33:38 +00:00
Lars Ingebrigtsen
2d5b20f68c 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).
2016-03-04 15:33:38 +00:00
Michael Albinus
4849677967 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.
2016-03-04 14:01:36 +00:00
Lars Ingebrigtsen
ca4e30058e 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).
2016-03-04 11:52:26 +00:00
Lars Ingebrigtsen
5671c32c13 Move cl-seq-tests to the right place after the merge 2016-03-04 09:11:26 +00:00
Lars Ingebrigtsen
a61c8863e2 Move cl-seq-tests to the right place after the merge 2016-03-04 09:09:07 +00:00
John Wiegley
17982e08d7 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.
2016-03-03 23:53:38 -08:00
John Wiegley
5c6cc95c9a ; Merge from origin/emacs-25
The following commit was skipped:

733fb9f ; Auto-commit of loaddefs files.
2016-03-03 23:53:27 -08:00
John Wiegley
5be4e9de1a Merge from origin/emacs-25
f5d1435 Fix targets in test/automated/Makefile.in
2016-03-03 23:53:27 -08:00
John Wiegley
c69aef14dd ; Merge from origin/emacs-25
The following commit was skipped:

38698b6 ; * lisp/vc/vc-hooks.el: corrected docstring of face
2016-03-03 23:53:27 -08:00
John Wiegley
9fb9d0706c Merge from origin/emacs-25
b6d6304 Comment on last change to define-derived-mode
2016-03-03 23:53:27 -08:00
John Wiegley
4df043c558 ; Merge from origin/emacs-25
The following commit was skipped:

7c1e6eb Allow binding `url-mime-accept-string'
2016-03-03 23:53:27 -08:00
John Wiegley
de3fa655de Merge from origin/emacs-25
cb1e3da Also allow setting the paragraph direction to nil
bbe8a89 Made the new OS X visible bell more visible.
2016-03-03 23:53:27 -08:00
John Wiegley
eab3f9e76b ; 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
2016-03-03 23:53:27 -08:00
John Wiegley
68ce800e92 Merge from origin/emacs-25
aae436e Uncomment the next-error-function integration in xref
5f0d096 Remove the word "valid", to avoid ambiguity
2016-03-03 23:53:26 -08:00
John Wiegley
5ab243f40e ; 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
2016-03-03 23:53:26 -08:00
John Wiegley
f991a50a90 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
2016-03-03 23:53:26 -08:00
John Wiegley
b50a20709f ; Merge from origin/emacs-25
The following commit was skipped:

5cac11a Make parse-time-string-chars faster
2016-03-03 23:53:26 -08:00
John Wiegley
692caf1e8d 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)
2016-03-03 23:53:08 -08:00
John Wiegley
018bdf7528 ; Merge from origin/emacs-25
The following commit was skipped:

9d0b103 Minor fixes in calculator.el
2016-03-03 23:52:27 -08:00
John Wiegley
68fa05fd93 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'
2016-03-03 23:52:27 -08:00
John Wiegley
b6b565b4a1 ; Merge from origin/emacs-25
The following commit was skipped:

ce4bdd7 Highlight assignments in Makefiles more correctly
2016-03-03 23:52:27 -08:00
John Wiegley
68ed6bfb65 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
2016-03-03 23:52:26 -08:00
John Wiegley
eced64b2f7 ; 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
2016-03-03 23:52:26 -08:00
John Wiegley
fd4fc004ab Merge from origin/emacs-25
7bc4820 Make setf for frame-height/width work again
2016-03-03 23:52:26 -08:00
John Wiegley
15ecb7923a ; Merge from origin/emacs-25
The following commit was skipped:

1af5e6e Encode header strings before printing
2016-03-03 23:52:26 -08:00
John Wiegley
2f3f7fcb57 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
2016-03-03 23:52:26 -08:00
Alain Schneble
887f6126c5 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
80852f843e
(bug#22789).
2016-03-03 05:31:11 +00:00
Lars Ingebrigtsen
0c5c04d58e 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.
2016-03-03 05:14:55 +00:00
Paul Eggert
227ab51db6 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.
2016-03-02 14:31:21 -08:00
Paul Eggert
5840068864 * src/emacs-module.c (CHECK_USER_PTR): Fix typo in previous change. 2016-03-02 14:16:25 -08:00
Paul Eggert
08e239a219 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.
2016-03-02 10:48:06 -08:00
Philipp Stephani
d20d02fef7 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.
2016-03-02 10:48:06 -08:00
Paul Eggert
65f692658e 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".
2016-03-02 10:24:11 -08:00
Philipp Stephani
d5a18a9327 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.
2016-03-02 10:24:11 -08:00
Lars Ingebrigtsen
a59a4bd47a 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.
2016-03-02 17:00:05 +00:00
Nicolas Petton
d6f6b7db92 * etc/AUTHORS: Update the AUTHORS file 2016-03-02 17:04:36 +01:00