diff options
| author | Paul Eggert | 2015-03-03 14:41:30 -0800 |
|---|---|---|
| committer | Paul Eggert | 2015-03-03 14:41:30 -0800 |
| commit | 37ad855a38786722833d06dfe78786acc7e9f412 (patch) | |
| tree | de0f0c7aac92eb2c321c1d6ec3254250316d1035 /src | |
| parent | 36a50f38fbbcf5cc0cafc44af9d1bfcd6c13fc25 (diff) | |
| parent | f1601063f29c99be77d2513320ed6d2494926c1d (diff) | |
| download | emacs-37ad855a38786722833d06dfe78786acc7e9f412.tar.gz emacs-37ad855a38786722833d06dfe78786acc7e9f412.zip | |
Merge from origin/emacs-24
f160106 Avoid assertion violations in Rmail due to newline cache
1b0ebbd browse-url-firefox: update for firefox 36's removal of -remote
1817892 Avoid erratic behavior of menu-bar tooltips on w32 (Bug#19925)
0260932 Bump python.el version
b0adfc7 Spelling fixes
35f047c * src/fileio.c (Fmake_temp_name): Doc tweaks.
6f2971a * lisp/comint.el (comint-line-beginning-position): Revert searching
65d8ac7 Mention in admin/notes/repo how to mark commits not to be merged.
86fe750 # Remove NEWS temporary markup
4fa778b erc.el: Add old version header for package.el compatibilty
9366f05 Tramp: Disable paging with PAGER=cat
Conflicts:
admin/notes/repo
etc/NEWS
lisp/ChangeLog
lisp/erc/ChangeLog
src/ChangeLog
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 23 | ||||
| -rw-r--r-- | src/fileio.c | 18 | ||||
| -rw-r--r-- | src/search.c | 6 | ||||
| -rw-r--r-- | src/w32fns.c | 10 |
4 files changed, 46 insertions, 11 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 7a30c6e897a..b1d9822f2f4 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,28 @@ | |||
| 1 | 2015-03-03 Eli Zaretskii <eliz@gnu.org> | 1 | 2015-03-03 Eli Zaretskii <eliz@gnu.org> |
| 2 | 2 | ||
| 3 | * search.c (find_newline): Avoid assertion violations in | ||
| 4 | CHAR_TO_BYTE when a portion of the buffer was deleted and we look | ||
| 5 | for newlines near the end of the buffer. This happens in Rmail | ||
| 6 | hen JIT font-lock fontifies a newly displayed portion of the | ||
| 7 | buffer. | ||
| 8 | |||
| 9 | 2015-03-03 Eli Zaretskii <eliz@gnu.org> | ||
| 10 | |||
| 11 | * w32fns.c (Fw32__menu_bar_in_use): New internal function. | ||
| 12 | (Bug#19925) | ||
| 13 | |||
| 14 | 2015-03-03 Glenn Morris <rgm@gnu.org> | ||
| 15 | |||
| 16 | * fileio.c (Fmake_temp_name): Doc tweaks. (Bug#19858) | ||
| 17 | |||
| 18 | 2015-03-03 Eli Zaretskii <eliz@gnu.org> | ||
| 19 | |||
| 20 | * menu.c (Fx_popup_menu) [HAVE_X_WINDOWS]: Call | ||
| 21 | mouse_position_for_popup only for X frames. (Bug#19862) | ||
| 22 | |||
| 23 | 2015-03-03 Eli Zaretskii <eliz@gnu.org> | ||
| 24 | 2015-03-03 Eli Zaretskii <eliz@gnu.org> | ||
| 25 | |||
| 3 | * buffer.c (syms_of_buffer): Doc fix. (Bug#19841) | 26 | * buffer.c (syms_of_buffer): Doc fix. (Bug#19841) |
| 4 | 27 | ||
| 5 | 2015-03-03 Eli Zaretskii <eliz@gnu.org> | 28 | 2015-03-03 Eli Zaretskii <eliz@gnu.org> |
diff --git a/src/fileio.c b/src/fileio.c index 43ab456d813..d4e12cbe277 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -724,20 +724,16 @@ make_temp_name (Lisp_Object prefix, bool base64_p) | |||
| 724 | 724 | ||
| 725 | DEFUN ("make-temp-name", Fmake_temp_name, Smake_temp_name, 1, 1, 0, | 725 | DEFUN ("make-temp-name", Fmake_temp_name, Smake_temp_name, 1, 1, 0, |
| 726 | doc: /* Generate temporary file name (string) starting with PREFIX (a string). | 726 | doc: /* Generate temporary file name (string) starting with PREFIX (a string). |
| 727 | The Emacs process number forms part of the result, | 727 | The Emacs process number forms part of the result, so there is no |
| 728 | so there is no danger of generating a name being used by another process. | 728 | danger of generating a name being used by another Emacs process |
| 729 | \(so long as only a single host can access the containing directory...). | ||
| 729 | 730 | ||
| 730 | In addition, this function makes an attempt to choose a name | 731 | This function tries to choose a name that has no existing file. |
| 731 | which has no existing file. To make this work, | 732 | For this to work, PREFIX should be an absolute file name. |
| 732 | PREFIX should be an absolute file name. | ||
| 733 | 733 | ||
| 734 | There is a race condition between calling `make-temp-name' and creating the | 734 | There is a race condition between calling `make-temp-name' and creating the |
| 735 | file which opens all kinds of security holes. For that reason, you should | 735 | file, which opens all kinds of security holes. For that reason, you should |
| 736 | probably use `make-temp-file' instead, except in three circumstances: | 736 | normally use `make-temp-file' instead. */) |
| 737 | |||
| 738 | * If you are creating the file in the user's home directory. | ||
| 739 | * If you are creating a directory rather than an ordinary file. | ||
| 740 | * If you are taking special precautions as `make-temp-file' does. */) | ||
| 741 | (Lisp_Object prefix) | 737 | (Lisp_Object prefix) |
| 742 | { | 738 | { |
| 743 | return make_temp_name (prefix, 0); | 739 | return make_temp_name (prefix, 0); |
diff --git a/src/search.c b/src/search.c index e9617985c18..5da99c408a5 100644 --- a/src/search.c +++ b/src/search.c | |||
| @@ -706,6 +706,12 @@ find_newline (ptrdiff_t start, ptrdiff_t start_byte, ptrdiff_t end, | |||
| 706 | start, &next_change); | 706 | start, &next_change); |
| 707 | if (result) | 707 | if (result) |
| 708 | { | 708 | { |
| 709 | /* When the cache revalidation is deferred, | ||
| 710 | next-change might point beyond ZV, which will | ||
| 711 | cause assertion violation in CHAR_TO_BYTE below. | ||
| 712 | Limit next_change to ZV to avoid that. */ | ||
| 713 | if (next_change > ZV) | ||
| 714 | next_change = ZV; | ||
| 709 | start = next_change; | 715 | start = next_change; |
| 710 | lim1 = next_change = end; | 716 | lim1 = next_change = end; |
| 711 | } | 717 | } |
diff --git a/src/w32fns.c b/src/w32fns.c index 6f404e98a62..64532ae6629 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -8238,6 +8238,15 @@ w32_sys_ring_bell (struct frame *f) | |||
| 8238 | MessageBeep (sound_type); | 8238 | MessageBeep (sound_type); |
| 8239 | } | 8239 | } |
| 8240 | 8240 | ||
| 8241 | DEFUN ("w32--menu-bar-in-use", Fw32__menu_bar_in_use, Sw32__menu_bar_in_use, | ||
| 8242 | 0, 0, 0, | ||
| 8243 | doc: /* Return non-nil when a menu-bar menu is being used. | ||
| 8244 | Internal use only. */) | ||
| 8245 | (void) | ||
| 8246 | { | ||
| 8247 | return menubar_in_use ? Qt : Qnil; | ||
| 8248 | } | ||
| 8249 | |||
| 8241 | 8250 | ||
| 8242 | /*********************************************************************** | 8251 | /*********************************************************************** |
| 8243 | Initialization | 8252 | Initialization |
| @@ -8615,6 +8624,7 @@ only be necessary if the default setting causes problems. */); | |||
| 8615 | defsubr (&Sw32_frame_rect); | 8624 | defsubr (&Sw32_frame_rect); |
| 8616 | defsubr (&Sw32_frame_menu_bar_size); | 8625 | defsubr (&Sw32_frame_menu_bar_size); |
| 8617 | defsubr (&Sw32_battery_status); | 8626 | defsubr (&Sw32_battery_status); |
| 8627 | defsubr (&Sw32__menu_bar_in_use); | ||
| 8618 | 8628 | ||
| 8619 | #ifdef WINDOWSNT | 8629 | #ifdef WINDOWSNT |
| 8620 | defsubr (&Sfile_system_info); | 8630 | defsubr (&Sfile_system_info); |