diff options
| author | Glenn Morris | 2014-11-03 16:49:37 -0500 |
|---|---|---|
| committer | Glenn Morris | 2014-11-03 16:49:37 -0500 |
| commit | 41e962982dfe424c69ed99f0bd26a6e4eb67107f (patch) | |
| tree | d7cda64bfecc7b9403459fda89b7f39a9fd8732f /src | |
| parent | 303fd9411f21d19604306ecdbd89941bf4923201 (diff) | |
| parent | bd673cc594764572cd49bd0f10a0432006368489 (diff) | |
| download | emacs-41e962982dfe424c69ed99f0bd26a6e4eb67107f.tar.gz emacs-41e962982dfe424c69ed99f0bd26a6e4eb67107f.zip | |
Merge from emacs-24; up to 2014-08-07T11:49:36Z!rrt@sc3d.org
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 10 | ||||
| -rw-r--r-- | src/nsfns.m | 8 | ||||
| -rw-r--r-- | src/window.c | 4 | ||||
| -rw-r--r-- | src/xdisp.c | 14 |
4 files changed, 29 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 2f719681afb..6b62a60f7b0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2014-11-03 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * xdisp.c (Fdump_glyph_matrix, Fdump_frame_glyph_matrix): Doc fix. | ||
| 4 | (Fdump_frame_glyph_matrix): Don't segfault if invoked on a GUI | ||
| 5 | frame; instead, print an error message. | ||
| 6 | |||
| 7 | 2014-11-03 Jan Djärv <jan.h.d@swipnet.se> | ||
| 8 | |||
| 9 | * nsfns.m (ns_set_doc_edited): Check for FRAME_NS (Bug#18925). | ||
| 10 | |||
| 1 | 2014-11-02 Jan Djärv <jan.h.d@swipnet.se> | 11 | 2014-11-02 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 12 | ||
| 3 | * nsimage.m (allocInitFromFile:): Initialize bmRep. | 13 | * nsimage.m (allocInitFromFile:): Initialize bmRep. |
diff --git a/src/nsfns.m b/src/nsfns.m index ce859e8333d..1537adbc56d 100644 --- a/src/nsfns.m +++ b/src/nsfns.m | |||
| @@ -639,8 +639,12 @@ ns_set_doc_edited (void) | |||
| 639 | { | 639 | { |
| 640 | BOOL edited = NO; | 640 | BOOL edited = NO; |
| 641 | struct frame *f = XFRAME (frame); | 641 | struct frame *f = XFRAME (frame); |
| 642 | struct window *w = XWINDOW (FRAME_SELECTED_WINDOW (f)); | 642 | struct window *w; |
| 643 | NSView *view = FRAME_NS_VIEW (f); | 643 | NSView *view; |
| 644 | |||
| 645 | if (! FRAME_NS_P (f)) continue; | ||
| 646 | w = XWINDOW (FRAME_SELECTED_WINDOW (f)); | ||
| 647 | view = FRAME_NS_VIEW (f); | ||
| 644 | if (!MINI_WINDOW_P (w)) | 648 | if (!MINI_WINDOW_P (w)) |
| 645 | edited = ! NILP (Fbuffer_modified_p (w->contents)) && | 649 | edited = ! NILP (Fbuffer_modified_p (w->contents)) && |
| 646 | ! NILP (Fbuffer_file_name (w->contents)); | 650 | ! NILP (Fbuffer_file_name (w->contents)); |
diff --git a/src/window.c b/src/window.c index 0b0f2140a58..2c9292d5b02 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -4930,8 +4930,8 @@ window_scroll_pixel_based (Lisp_Object window, int n, bool whole, int noerror) | |||
| 4930 | /* The function move_iterator_vertically may move over more than | 4930 | /* The function move_iterator_vertically may move over more than |
| 4931 | the specified y-distance. If it->w is small, e.g. a | 4931 | the specified y-distance. If it->w is small, e.g. a |
| 4932 | mini-buffer window, we may end up in front of the window's | 4932 | mini-buffer window, we may end up in front of the window's |
| 4933 | display area. This is the case when Start displaying at the | 4933 | display area. Start displaying at the start of the line |
| 4934 | start of the line containing PT in this case. */ | 4934 | containing PT in this case. */ |
| 4935 | if (it.current_y <= 0) | 4935 | if (it.current_y <= 0) |
| 4936 | { | 4936 | { |
| 4937 | init_iterator (&it, w, PT, PT_BYTE, NULL, DEFAULT_FACE_ID); | 4937 | init_iterator (&it, w, PT, PT_BYTE, NULL, DEFAULT_FACE_ID); |
diff --git a/src/xdisp.c b/src/xdisp.c index 228b6cb586d..2cdbade3062 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -18803,7 +18803,10 @@ DEFUN ("dump-glyph-matrix", Fdump_glyph_matrix, | |||
| 18803 | doc: /* Dump the current matrix of the selected window to stderr. | 18803 | doc: /* Dump the current matrix of the selected window to stderr. |
| 18804 | Shows contents of glyph row structures. With non-nil | 18804 | Shows contents of glyph row structures. With non-nil |
| 18805 | parameter GLYPHS, dump glyphs as well. If GLYPHS is 1 show | 18805 | parameter GLYPHS, dump glyphs as well. If GLYPHS is 1 show |
| 18806 | glyphs in short form, otherwise show glyphs in long form. */) | 18806 | glyphs in short form, otherwise show glyphs in long form. |
| 18807 | |||
| 18808 | Interactively, no argument means show glyphs in short form; | ||
| 18809 | with numeric argument, its value is passed as the GLYPHS flag. */) | ||
| 18807 | (Lisp_Object glyphs) | 18810 | (Lisp_Object glyphs) |
| 18808 | { | 18811 | { |
| 18809 | struct window *w = XWINDOW (selected_window); | 18812 | struct window *w = XWINDOW (selected_window); |
| @@ -18821,11 +18824,16 @@ glyphs in short form, otherwise show glyphs in long form. */) | |||
| 18821 | 18824 | ||
| 18822 | 18825 | ||
| 18823 | DEFUN ("dump-frame-glyph-matrix", Fdump_frame_glyph_matrix, | 18826 | DEFUN ("dump-frame-glyph-matrix", Fdump_frame_glyph_matrix, |
| 18824 | Sdump_frame_glyph_matrix, 0, 0, "", doc: /* */) | 18827 | Sdump_frame_glyph_matrix, 0, 0, "", doc: /* Dump the current glyph matrix of the selected frame to stderr. |
| 18828 | Only text-mode frames have frame glyph matrices. */) | ||
| 18825 | (void) | 18829 | (void) |
| 18826 | { | 18830 | { |
| 18827 | struct frame *f = XFRAME (selected_frame); | 18831 | struct frame *f = XFRAME (selected_frame); |
| 18828 | dump_glyph_matrix (f->current_matrix, 1); | 18832 | |
| 18833 | if (f->current_matrix) | ||
| 18834 | dump_glyph_matrix (f->current_matrix, 1); | ||
| 18835 | else | ||
| 18836 | fprintf (stderr, "*** This frame doesn't have a frame glyph matrix ***\n"); | ||
| 18829 | return Qnil; | 18837 | return Qnil; |
| 18830 | } | 18838 | } |
| 18831 | 18839 | ||