diff options
| author | Glenn Morris | 2020-03-04 13:57:56 -0800 |
|---|---|---|
| committer | Glenn Morris | 2020-03-04 13:57:56 -0800 |
| commit | 1c81bb8c24054c5e519dbff138e26042fdb74956 (patch) | |
| tree | b632283b4cf4a36f19b309aa0a46090cc0e89e8f /src | |
| parent | dc3006cf1419e5b22c35fa36d79ba029d0482df1 (diff) | |
| parent | 5b7d226779282f01b52fc6308fcf9f4e84c40679 (diff) | |
| download | emacs-1c81bb8c24054c5e519dbff138e26042fdb74956.tar.gz emacs-1c81bb8c24054c5e519dbff138e26042fdb74956.zip | |
Merge from origin/emacs-27
5b7d226779 * etc/AUTHORS: Update.
4aa758e53d ; ChangeLog.3 update
9261b1ed49 * admin/authors.el (authors-ignored-files): Fix entries.
86e4da6eaf ; ChangeLog.3 update
009c6a1767 ; ChangeLog.3 fixes
f9e53947c7 Fix documented slot name of eieio-instance-tracker class
999d75c0c1 Range-check width passed to define-fringe-bitmap
29e415d6b0 ; ChangeLog.3 fixes
4653baa6a5 ; ChangeLog.3 update & fixes.
a95ec6e060 * admin/authors.el: Add missing entries
af519a6348 Define libgnutls-version properly
9ec6eb1065 vc-dir-ignore: More accurately choose base directory
e74fb4688b * lisp/emacs-lisp/cursor-sensor.el (cursor-sensor--detect)...
3bce7ec382 CC Mode: Protect against consecutive calls to before-chang...
Diffstat (limited to 'src')
| -rw-r--r-- | src/fringe.c | 7 | ||||
| -rw-r--r-- | src/gnutls.c | 19 |
2 files changed, 17 insertions, 9 deletions
diff --git a/src/fringe.c b/src/fringe.c index 97aad843c2e..2a46e3c34f2 100644 --- a/src/fringe.c +++ b/src/fringe.c | |||
| @@ -1500,7 +1500,8 @@ DEFUN ("define-fringe-bitmap", Fdefine_fringe_bitmap, Sdefine_fringe_bitmap, | |||
| 1500 | BITMAP is a symbol identifying the new fringe bitmap. | 1500 | BITMAP is a symbol identifying the new fringe bitmap. |
| 1501 | BITS is either a string or a vector of integers. | 1501 | BITS is either a string or a vector of integers. |
| 1502 | HEIGHT is height of bitmap. If HEIGHT is nil, use length of BITS. | 1502 | HEIGHT is height of bitmap. If HEIGHT is nil, use length of BITS. |
| 1503 | WIDTH must be an integer between 1 and 16, or nil which defaults to 8. | 1503 | WIDTH must be an integer from 1 to 16, or nil which defaults to 8. An |
| 1504 | error is signaled if WIDTH is outside this range. | ||
| 1504 | Optional fifth arg ALIGN may be one of `top', `center', or `bottom', | 1505 | Optional fifth arg ALIGN may be one of `top', `center', or `bottom', |
| 1505 | indicating the positioning of the bitmap relative to the rows where it | 1506 | indicating the positioning of the bitmap relative to the rows where it |
| 1506 | is used; the default is to center the bitmap. Fifth arg may also be a | 1507 | is used; the default is to center the bitmap. Fifth arg may also be a |
| @@ -1535,7 +1536,9 @@ If BITMAP already exists, the existing definition is replaced. */) | |||
| 1535 | else | 1536 | else |
| 1536 | { | 1537 | { |
| 1537 | CHECK_FIXNUM (width); | 1538 | CHECK_FIXNUM (width); |
| 1538 | fb.width = max (0, min (XFIXNUM (width), 255)); | 1539 | fb.width = max (1, min (XFIXNUM (width), 16)); |
| 1540 | if (fb.width != XFIXNUM (width)) | ||
| 1541 | args_out_of_range (width, build_string ("Width must be from 1 to 16")); | ||
| 1539 | } | 1542 | } |
| 1540 | 1543 | ||
| 1541 | fb.period = 0; | 1544 | fb.period = 0; |
diff --git a/src/gnutls.c b/src/gnutls.c index 31fcd37c0a6..70176c41cdd 100644 --- a/src/gnutls.c +++ b/src/gnutls.c | |||
| @@ -2834,16 +2834,21 @@ Any GnuTLS extension with ID up to 100 | |||
| 2834 | void | 2834 | void |
| 2835 | syms_of_gnutls (void) | 2835 | syms_of_gnutls (void) |
| 2836 | { | 2836 | { |
| 2837 | DEFSYM (Qlibgnutls_version, "libgnutls-version"); | 2837 | DEFVAR_LISP ("libgnutls-version", Vlibgnutls_version, |
| 2838 | Fset (Qlibgnutls_version, | 2838 | doc: /* The version of libgnutls that Emacs was compiled with. |
| 2839 | The version number is encoded as an integer with the major version in | ||
| 2840 | the ten thousands place, minor version in the hundreds, and patch | ||
| 2841 | level in the ones. For builds without libgnutls, the value is -1. */); | ||
| 2842 | Vlibgnutls_version = make_fixnum | ||
| 2839 | #ifdef HAVE_GNUTLS | 2843 | #ifdef HAVE_GNUTLS |
| 2840 | make_fixnum (GNUTLS_VERSION_MAJOR * 10000 | 2844 | (GNUTLS_VERSION_MAJOR * 10000 |
| 2841 | + GNUTLS_VERSION_MINOR * 100 | 2845 | + GNUTLS_VERSION_MINOR * 100 |
| 2842 | + GNUTLS_VERSION_PATCH) | 2846 | + GNUTLS_VERSION_PATCH) |
| 2843 | #else | 2847 | #else |
| 2844 | make_fixnum (-1) | 2848 | (-1) |
| 2845 | #endif | 2849 | #endif |
| 2846 | ); | 2850 | ; |
| 2851 | |||
| 2847 | #ifdef HAVE_GNUTLS | 2852 | #ifdef HAVE_GNUTLS |
| 2848 | gnutls_global_initialized = 0; | 2853 | gnutls_global_initialized = 0; |
| 2849 | PDUMPER_IGNORE (gnutls_global_initialized); | 2854 | PDUMPER_IGNORE (gnutls_global_initialized); |