Skip to content

Commit 6e53ba7

Browse files
author
Yuuki Harano
committed
Merge branch 'master' of https://github.com/emacs-mirror/emacs
2 parents a1d7ed0 + 3fa9c9f commit 6e53ba7

File tree

177 files changed

+6764
-5111
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

177 files changed

+6764
-5111
lines changed

Makefile.in

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,8 @@ SUBDIR_MAKEFILES = $(patsubst ${srcdir}/%,%,${SUBDIR_MAKEFILES_IN:.in=})
320320
# Non-makefile files created by config.status.
321321
CONFIG_STATUS_FILES_IN = \
322322
${srcdir}/nt/emacs.rc.in ${srcdir}/nt/emacsclient.rc.in \
323-
${srcdir}/doc/man/emacs.1.in
323+
${srcdir}/doc/man/emacs.1.in ${srcdir}/src/emacs-module.h.in \
324+
${srcdir}/src/module-env-*.h
324325

325326
# Subdirectories to install, and where they'll go. lib-src's and nt's
326327
# makefiles know how to install them, so we don't do that here.
@@ -869,7 +870,7 @@ top_bootclean=\
869870
top_distclean=\
870871
${top_bootclean}; \
871872
rm -f config.status config.log~ \
872-
Makefile lib/gnulib.mk ${SUBDIR_MAKEFILES}
873+
Makefile makefile lib/gnulib.mk ${SUBDIR_MAKEFILES}
873874

874875
distclean_dirs = $(clean_dirs) leim lisp
875876

admin/admin.el

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,10 @@ Root must be the root of an Emacs source tree."
138138
(if (eq 2 (length newversion)) 0 1))))
139139
(majorbump (and oldversion (not (equal oldmajor newmajor))))
140140
(minorbump (and oldversion (not majorbump)
141-
(not (equal (cadr oldversion) (cadr newversion)))))
141+
(or (not (equal (cadr oldversion) (cadr newversion)))
142+
;; Eg 26.2 -> 26.2.50.
143+
(and (> (length newversion)
144+
(length oldversion))))))
142145
(newsfile (expand-file-name "etc/NEWS" root))
143146
(oldnewsfile (expand-file-name (format "etc/NEWS.%s" oldmajor) root)))
144147
(unless (> (length newversion) 2) ; pretest or release candidate?

admin/update-copyright

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ repo_files=$(git ls-files) &&
5050
# Do not update the copyright of files that have one or more of the
5151
# following problems:
5252
# . They are license files, maintained by the FSF, with their own dates.
53+
# . They are GMP files, maintained by the GMP project, with their own dates.
5354
# . Their format cannot withstand changing the contents of copyright strings.
5455

5556
updatable_files=$(find $repo_files \
@@ -70,6 +71,7 @@ updatable_files=$(find $repo_files \
7071
! -name hand.cur \
7172
! -name key.pub \
7273
! -name key.sec \
74+
! -name 'mini-gmp.[ch]' \
7375
-print) &&
7476

7577
build-aux/update-copyright $updatable_files

build-aux/config.guess

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Attempt to guess a canonical system name.
33
# Copyright 1992-2019 Free Software Foundation, Inc.
44

5-
timestamp='2019-03-04'
5+
timestamp='2019-04-28'
66

77
# This file is free software; you can redistribute it and/or modify it
88
# under the terms of the GNU General Public License as published by
@@ -1468,6 +1468,14 @@ cat > "$dummy.c" <<EOF
14681468
#include <sys/types.h>
14691469
#include <sys/utsname.h>
14701470
#endif
1471+
#if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__)
1472+
#if defined (vax) || defined (__vax) || defined (__vax__) || defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__)
1473+
#include <signal.h>
1474+
#if defined(_SIZE_T_) || defined(SIGLOST)
1475+
#include <sys/utsname.h>
1476+
#endif
1477+
#endif
1478+
#endif
14711479
main ()
14721480
{
14731481
#if defined (sony)
@@ -1554,19 +1562,24 @@ main ()
15541562
#else
15551563
printf ("vax-dec-bsd\n"); exit (0);
15561564
#endif
1565+
#else
1566+
#if defined(_SIZE_T_) || defined(SIGLOST)
1567+
struct utsname un;
1568+
uname (&un);
1569+
printf ("vax-dec-ultrix%s\n", un.release); exit (0);
15571570
#else
15581571
printf ("vax-dec-ultrix\n"); exit (0);
15591572
#endif
15601573
#endif
1574+
#endif
15611575
#if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__)
15621576
#if defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__)
1563-
#include <signal.h>
1564-
#if defined(_SIZE_T_) /* >= ULTRIX4 */
1565-
printf ("mips-dec-ultrix4\n"); exit (0);
1577+
#if defined(_SIZE_T_) || defined(SIGLOST)
1578+
struct utsname *un;
1579+
uname (&un);
1580+
printf ("mips-dec-ultrix%s\n", un.release); exit (0);
15661581
#else
1567-
#if defined(ULTRIX3) || defined(ultrix3) || defined(SIGLOST)
1568-
printf ("mips-dec-ultrix3\n"); exit (0);
1569-
#endif
1582+
printf ("mips-dec-ultrix\n"); exit (0);
15701583
#endif
15711584
#endif
15721585
#endif

build-aux/config.sub

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,7 +1247,8 @@ case $cpu-$vendor in
12471247
| v70 | v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \
12481248
| vax \
12491249
| visium \
1250-
| w65 | wasm32 \
1250+
| w65 \
1251+
| wasm32 | wasm64 \
12511252
| we32k \
12521253
| x86 | x86_64 | xc16x | xgate | xps100 \
12531254
| xstormy16 | xtensa* \
@@ -1367,7 +1368,7 @@ case $os in
13671368
| powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \
13681369
| skyos* | haiku* | rdos* | toppers* | drops* | es* \
13691370
| onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
1370-
| midnightbsd* | amdhsa* | unleashed* | emscripten*)
1371+
| midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi*)
13711372
# Remember, each alternative MUST END IN *, to match a version number.
13721373
;;
13731374
qnx*)

configure.ac

Lines changed: 62 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ AC_ARG_ENABLE(checking,
545545
enable only specific categories of checks.
546546
Categories are: all,yes,no.
547547
Flags are: stringbytes, stringoverrun, stringfreelist,
548-
structs, xmallocoverrun, conslist, glyphs])],
548+
structs, glyphs])],
549549
[ac_checking_flags="${enableval}"],[])
550550
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
551551
CHECK_STRUCTS=false
@@ -559,24 +559,18 @@ do
559559
ac_gc_check_stringbytes= ;
560560
ac_gc_check_string_overrun= ;
561561
ac_gc_check_string_free_list= ;
562-
ac_xmalloc_overrun= ;
563-
ac_gc_check_cons_list= ;
564562
ac_glyphs_debug= ;;
565563
all) ac_enable_checking=1 ;
566564
CHECK_STRUCTS=true
567565
ac_gc_check_stringbytes=1 ;
568566
ac_gc_check_string_overrun=1 ;
569567
ac_gc_check_string_free_list=1 ;
570-
ac_xmalloc_overrun=1 ;
571-
ac_gc_check_cons_list=1 ;
572568
ac_glyphs_debug=1 ;;
573569
# these enable particular checks
574570
stringbytes) ac_gc_check_stringbytes=1 ;;
575571
stringoverrun) ac_gc_check_string_overrun=1 ;;
576572
stringfreelist) ac_gc_check_string_free_list=1 ;;
577573
structs) CHECK_STRUCTS=true ;;
578-
xmallocoverrun) ac_xmalloc_overrun=1 ;;
579-
conslist) ac_gc_check_cons_list=1 ;;
580574
glyphs) ac_glyphs_debug=1 ;;
581575
*) AC_MSG_ERROR(unknown check category $check) ;;
582576
esac
@@ -610,14 +604,6 @@ if test x$ac_gc_check_string_free_list != x ; then
610604
AC_DEFINE(GC_CHECK_STRING_FREE_LIST, 1,
611605
[Define this to check the string free list.])
612606
fi
613-
if test x$ac_xmalloc_overrun != x ; then
614-
AC_DEFINE(XMALLOC_OVERRUN_CHECK, 1,
615-
[Define this to check for malloc buffer overrun.])
616-
fi
617-
if test x$ac_gc_check_cons_list != x ; then
618-
AC_DEFINE(GC_CHECK_CONS_LIST, 1,
619-
[Define this to check for errors in cons list.])
620-
fi
621607
if test x$ac_glyphs_debug != x ; then
622608
AC_DEFINE(GLYPH_DEBUG, 1,
623609
[Define this to enable glyphs debugging code.])
@@ -2807,22 +2793,25 @@ if test "${HAVE_GTK}" = "yes"; then
28072793
with_toolkit_scroll_bars=yes
28082794
fi
28092795

2810-
dnl Check if we have the old file selection dialog declared and
2811-
dnl in the link library. In 2.x it may be in the library,
2812-
dnl but not declared if deprecated featured has been selected out.
2813-
dnl AC_CHECK_DECL checks for a macro, so check for GTK_TYPE_FILE_SELECTION.
2814-
HAVE_GTK_FILE_SELECTION=no
2815-
AC_CHECK_DECL(GTK_TYPE_FILE_SELECTION, HAVE_GTK_FILE_SELECTION=yes,
2816-
HAVE_GTK_FILE_SELECTION=no, [AC_INCLUDES_DEFAULT
2817-
#include <gtk/gtk.h>])
2818-
if test "$HAVE_GTK_FILE_SELECTION" = yes; then
2819-
AC_CHECK_FUNCS(gtk_file_selection_new)
2820-
fi
2796+
term_header=gtkutil.h
28212797

2822-
dnl This procedure causes a bug on certain Ubuntu GTK+2 builds
2823-
AC_CHECK_FUNCS(gtk_window_set_has_resize_grip)
2798+
if test "${USE_GTK_TOOLKIT}" = GTK2; then
28242799

2825-
term_header=gtkutil.h
2800+
dnl Check if we have the old file selection dialog declared and
2801+
dnl in the link library. In 2.x it may be in the library,
2802+
dnl but not declared if deprecated featured has been selected out.
2803+
dnl AC_CHECK_DECL checks for a macro, so check for GTK_TYPE_FILE_SELECTION.
2804+
HAVE_GTK_FILE_SELECTION=no
2805+
AC_CHECK_DECL(GTK_TYPE_FILE_SELECTION, HAVE_GTK_FILE_SELECTION=yes,
2806+
HAVE_GTK_FILE_SELECTION=no, [AC_INCLUDES_DEFAULT
2807+
#include <gtk/gtk.h>])
2808+
if test "$HAVE_GTK_FILE_SELECTION" = yes; then
2809+
AC_CHECK_FUNCS(gtk_file_selection_new)
2810+
fi
2811+
2812+
dnl This procedure causes a bug on certain Ubuntu GTK+2 builds
2813+
AC_CHECK_FUNCS(gtk_window_set_has_resize_grip)
2814+
fi
28262815
fi
28272816

28282817

@@ -3345,12 +3334,44 @@ if test "${HAVE_X11}" = "yes"; then
33453334
fi
33463335
fi
33473336

3337+
HAVE_CAIRO=no
3338+
if test "${HAVE_X11}" = "yes"; then
3339+
if test "${with_cairo}" != "no"; then
3340+
CAIRO_REQUIRED=1.12.0
3341+
CAIRO_MODULE="cairo >= $CAIRO_REQUIRED"
3342+
EMACS_CHECK_MODULES(CAIRO, $CAIRO_MODULE)
3343+
if test $HAVE_CAIRO = yes; then
3344+
AC_DEFINE(USE_CAIRO, 1, [Define to 1 if using cairo.])
3345+
else
3346+
AC_MSG_ERROR([cairo requested but not found.])
3347+
fi
3348+
3349+
CFLAGS="$CFLAGS $CAIRO_CFLAGS"
3350+
LIBS="$LIBS $CAIRO_LIBS"
3351+
AC_SUBST(CAIRO_CFLAGS)
3352+
AC_SUBST(CAIRO_LIBS)
3353+
fi
3354+
fi
3355+
33483356
### Start of font-backend (under any platform) section.
33493357
# (nothing here yet -- this is a placeholder)
33503358
### End of font-backend (under any platform) section.
33513359

33523360
### Start of font-backend (under X11) section.
33533361
if test "${HAVE_X11}" = "yes"; then
3362+
if test $HAVE_CAIRO = yes; then
3363+
dnl Strict linkers fail with
3364+
dnl ftfont.o: undefined reference to symbol 'FT_New_Face'
3365+
dnl if -lfreetype is not specified.
3366+
dnl The following is needed to set FREETYPE_LIBS.
3367+
EMACS_CHECK_MODULES([FREETYPE], [freetype2])
3368+
3369+
test "$HAVE_FREETYPE" = "no" && AC_MSG_ERROR(cairo requires libfreetype)
3370+
3371+
EMACS_CHECK_MODULES([FONTCONFIG], [fontconfig >= 2.2.0])
3372+
3373+
test "$HAVE_FONTCONFIG" = "no" && AC_MSG_ERROR(cairo requires libfontconfig)
3374+
else
33543375
## Use -lXft if available, unless '--with-xft=no'.
33553376
HAVE_XFT=maybe
33563377
if test "x${with_x}" = "xno"; then
@@ -3407,6 +3428,7 @@ if test "${HAVE_X11}" = "yes"; then
34073428

34083429
test "$HAVE_FREETYPE" = "no" && AC_MSG_ERROR(libxft requires libfreetype)
34093430
fi
3431+
fi # $HAVE_CAIRO != yes
34103432

34113433
HAVE_LIBOTF=no
34123434
if test "${HAVE_FREETYPE}" = "yes"; then
@@ -3743,6 +3765,8 @@ AC_SUBST_FILE([module_env_snippet_27])
37433765
module_env_snippet_25="$srcdir/src/module-env-25.h"
37443766
module_env_snippet_26="$srcdir/src/module-env-26.h"
37453767
module_env_snippet_27="$srcdir/src/module-env-27.h"
3768+
emacs_major_version="${PACKAGE_VERSION%%.*}"
3769+
AC_SUBST(emacs_major_version)
37463770

37473771
### Use -lpng if available, unless '--with-png=no'.
37483772
HAVE_PNG=no
@@ -5877,4 +5901,12 @@ you can continue to support by using '$0 --with-pop'.])
58775901
esac
58785902
fi
58795903

5880-
test "$MAKE" = make || AC_MSG_NOTICE([Now you can run '$MAKE'.])
5904+
# Let plain 'make' work.
5905+
test "$MAKE" = make || test -f makefile || cat >makefile <<EOF
5906+
.POSIX:
5907+
MAKE = $MAKE
5908+
all:
5909+
\$(MAKE) -f Makefile \$?
5910+
.DEFAULT:
5911+
\$(MAKE) -f Makefile \$<
5912+
EOF

doc/emacs/custom.texi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1331,7 +1331,7 @@ On MS-DOS, the name of this file should be @file{_dir-locals.el}, due
13311331
to limitations of the DOS filesystems. If the filesystem is limited
13321332
to 8+3 file names, the name of the file will be truncated by the OS to
13331333
@file{_dir-loc.el}.
1334-
}in a directory. Whenever Emacs visits any file in that directory or
1334+
} in a directory. Whenever Emacs visits any file in that directory or
13351335
any of its subdirectories, it will apply the directory-local variables
13361336
specified in @file{.dir-locals.el}, as though they had been defined as
13371337
file-local variables for that file (@pxref{File Variables}). Emacs

doc/emacs/files.texi

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -988,6 +988,20 @@ the polling interval through the variable @code{auto-revert-interval}.
988988
supported, @code{auto-revert-use-notify} will be @code{nil} by
989989
default.
990990

991+
@vindex auto-revert-avoid-polling
992+
@vindex auto-revert-notify-exclude-dir-regexp
993+
By default, Auto-Revert mode will poll files for changes
994+
periodically even when file notifications are used. Such polling is
995+
usually unnecessary, and turning it off may save power by relying on
996+
notifications only. To do so, set the variable
997+
@code{auto-revert-avoid-polling} to non-@code{nil}. However,
998+
notification is ineffective on certain file systems; mainly network
999+
file system on Unix-like machines, where files can be altered from
1000+
other machines. To force polling when
1001+
@code{auto-revert-avoid-polling} is non-@code{nil}, set
1002+
@code{auto-revert-notify-exclude-dir-regexp} to match files that
1003+
should be excluded from using notification.
1004+
9911005
One use of Auto-Revert mode is to ``tail'' a file such as a system
9921006
log, so that changes made to that file by other programs are
9931007
continuously displayed. To do this, just move the point to the end of

doc/emacs/mark.texi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Set point and the mark around the text you drag across.
7676
@item mouse-3
7777
Set the mark at point, then move point to where you click
7878
(@code{mouse-save-then-kill}).
79-
@item @samp{Shifted cursor motion keys}
79+
@item @r{Shifted cursor motion keys}
8080
Set the mark at point if the mark is inactive, then move point.
8181
@xref{Shift Selection}.
8282
@end table

doc/lispref/customize.texi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -950,10 +950,10 @@ possibilities:
950950

951951
@itemize @bullet
952952
@item
953-
A predicate---that is, a function of one argument that has no side
954-
effects, and returns either @code{nil} or non-@code{nil} according to
955-
the argument. Using a predicate in the list says that objects for which
956-
the predicate returns non-@code{nil} are acceptable.
953+
A predicate---that is, a function of one argument that returns either
954+
@code{nil} or non-@code{nil} according to the argument. Using a
955+
predicate in the list says that objects for which the predicate
956+
returns non-@code{nil} are acceptable.
957957

958958
@item
959959
A quoted constant---that is, @code{'@var{object}}. This sort of element

0 commit comments

Comments
 (0)