diff options
| author | Glenn Morris | 2020-09-20 17:18:16 -0700 |
|---|---|---|
| committer | Glenn Morris | 2020-09-20 17:18:16 -0700 |
| commit | 3675993d76cc6db43703240d0ff0fd892abf1b41 (patch) | |
| tree | 2615512bfb3d569b679efb09711dad1cea7536cc /src | |
| parent | 15c594c282176cf8e29072de2934a046922053b1 (diff) | |
| parent | df04f3e755f3001ebb9cc428faa7fa46059e636b (diff) | |
| download | emacs-3675993d76cc6db43703240d0ff0fd892abf1b41.tar.gz emacs-3675993d76cc6db43703240d0ff0fd892abf1b41.zip | |
Merge from origin/emacs-27
df04f3e755 Fix a rare segfault in syntax.c
fd1fe1e1ec Add doc to syntax-propertize-function saying it must do a ...
fcd599bbea Minor copyedits of doc of 'with-silent-modifications'
759399cdb1 Improve documentation of 'max-mini-window-height'
3223302aa2 Use modern constant names for the NS pasteboard
985703d380 Fix doc string of 'toggle-menu-bar-mode-from-frame'
184a4977c7 Make vc-bzr tests work with brz 3.1 (bug#43314)
# Conflicts:
# lisp/emacs-lisp/syntax.el
# src/syntax.c
Diffstat (limited to 'src')
| -rw-r--r-- | src/nsterm.m | 6 | ||||
| -rw-r--r-- | src/syntax.c | 25 | ||||
| -rw-r--r-- | src/xdisp.c | 6 |
3 files changed, 21 insertions, 16 deletions
diff --git a/src/nsterm.m b/src/nsterm.m index f6a36c8fdcb..5e5d09f058b 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -8610,7 +8610,7 @@ not_in_argv (NSString *arg) | |||
| 8610 | while ( (file = [fenum nextObject]) ) | 8610 | while ( (file = [fenum nextObject]) ) |
| 8611 | strings = Fcons ([file lispString], strings); | 8611 | strings = Fcons ([file lispString], strings); |
| 8612 | } | 8612 | } |
| 8613 | else if ([type isEqualToString: NSURLPboardType]) | 8613 | else if ([type isEqualToString: NSPasteboardTypeURL]) |
| 8614 | { | 8614 | { |
| 8615 | NSURL *url = [NSURL URLFromPasteboard: pb]; | 8615 | NSURL *url = [NSURL URLFromPasteboard: pb]; |
| 8616 | if (url == nil) return NO; | 8616 | if (url == nil) return NO; |
| @@ -8619,8 +8619,8 @@ not_in_argv (NSString *arg) | |||
| 8619 | 8619 | ||
| 8620 | strings = list1 ([[url absoluteString] lispString]); | 8620 | strings = list1 ([[url absoluteString] lispString]); |
| 8621 | } | 8621 | } |
| 8622 | else if ([type isEqualToString: NSStringPboardType] | 8622 | else if ([type isEqualToString: NSPasteboardTypeString] |
| 8623 | || [type isEqualToString: NSTabularTextPboardType]) | 8623 | || [type isEqualToString: NSPasteboardTypeTabularText]) |
| 8624 | { | 8624 | { |
| 8625 | NSString *data; | 8625 | NSString *data; |
| 8626 | 8626 | ||
diff --git a/src/syntax.c b/src/syntax.c index 7f0fc341f6e..e6af8a377bb 100644 --- a/src/syntax.c +++ b/src/syntax.c | |||
| @@ -2542,20 +2542,23 @@ between them, return t; otherwise return nil. */) | |||
| 2542 | bool fence_found = 0; | 2542 | bool fence_found = 0; |
| 2543 | ptrdiff_t ini = from, ini_byte = from_byte; | 2543 | ptrdiff_t ini = from, ini_byte = from_byte; |
| 2544 | 2544 | ||
| 2545 | while (1) | 2545 | if (from > stop) |
| 2546 | { | 2546 | { |
| 2547 | dec_both (&from, &from_byte); | 2547 | while (1) |
| 2548 | UPDATE_SYNTAX_TABLE_BACKWARD (from); | ||
| 2549 | c = FETCH_CHAR_AS_MULTIBYTE (from_byte); | ||
| 2550 | if (SYNTAX (c) == Scomment_fence | ||
| 2551 | && !char_quoted (from, from_byte)) | ||
| 2552 | { | 2548 | { |
| 2553 | fence_found = 1; | 2549 | dec_both (&from, &from_byte); |
| 2554 | break; | 2550 | UPDATE_SYNTAX_TABLE_BACKWARD (from); |
| 2551 | c = FETCH_CHAR_AS_MULTIBYTE (from_byte); | ||
| 2552 | if (SYNTAX (c) == Scomment_fence | ||
| 2553 | && !char_quoted (from, from_byte)) | ||
| 2554 | { | ||
| 2555 | fence_found = 1; | ||
| 2556 | break; | ||
| 2557 | } | ||
| 2558 | else if (from == stop) | ||
| 2559 | break; | ||
| 2560 | rarely_quit (++quit_count); | ||
| 2555 | } | 2561 | } |
| 2556 | else if (from == stop) | ||
| 2557 | break; | ||
| 2558 | rarely_quit (++quit_count); | ||
| 2559 | } | 2562 | } |
| 2560 | if (fence_found == 0) | 2563 | if (fence_found == 0) |
| 2561 | { | 2564 | { |
diff --git a/src/xdisp.c b/src/xdisp.c index 615f0ca7cf8..49225c56fe3 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -35009,8 +35009,10 @@ but does not change the fact they are interpreted as raw bytes. */); | |||
| 35009 | 35009 | ||
| 35010 | DEFVAR_LISP ("max-mini-window-height", Vmax_mini_window_height, | 35010 | DEFVAR_LISP ("max-mini-window-height", Vmax_mini_window_height, |
| 35011 | doc: /* Maximum height for resizing mini-windows (the minibuffer and the echo area). | 35011 | doc: /* Maximum height for resizing mini-windows (the minibuffer and the echo area). |
| 35012 | If a float, it specifies a fraction of the mini-window frame's height. | 35012 | If a float, it specifies the maximum height in units of the |
| 35013 | If an integer, it specifies a number of lines. */); | 35013 | mini-window frame's height. |
| 35014 | If an integer, it specifies the maximum height in units of the | ||
| 35015 | mini-window frame's default font's height. */); | ||
| 35014 | Vmax_mini_window_height = make_float (0.25); | 35016 | Vmax_mini_window_height = make_float (0.25); |
| 35015 | 35017 | ||
| 35016 | DEFVAR_LISP ("resize-mini-windows", Vresize_mini_windows, | 35018 | DEFVAR_LISP ("resize-mini-windows", Vresize_mini_windows, |