diff options
| author | Glenn Morris | 2014-07-12 10:53:29 -0700 |
|---|---|---|
| committer | Glenn Morris | 2014-07-12 10:53:29 -0700 |
| commit | b39c4d7b33952e0125fbefbcb3d9f528b6570f40 (patch) | |
| tree | 17fd0630dacfe29b0c2486b9f5c923293e872a70 /src | |
| parent | 2a0bae50e3611a6bd2d584f7a85677b74f1aa71b (diff) | |
| parent | fb02552638b0c653bfc3d269d879fdffba37bd31 (diff) | |
| download | emacs-b39c4d7b33952e0125fbefbcb3d9f528b6570f40.tar.gz emacs-b39c4d7b33952e0125fbefbcb3d9f528b6570f40.zip | |
Merge from emacs-24; up to 2014-06-22T05:00:14Z!dmantipov@yandex.ru
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 10 | ||||
| -rw-r--r-- | src/w32fns.c | 6 | ||||
| -rw-r--r-- | src/xdisp.c | 5 | ||||
| -rw-r--r-- | src/xfns.c | 12 |
4 files changed, 29 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 9d5dff49166..47b0927bbb7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,15 @@ | |||
| 1 | 2014-07-12 Eli Zaretskii <eliz@gnu.org> | 1 | 2014-07-12 Eli Zaretskii <eliz@gnu.org> |
| 2 | 2 | ||
| 3 | * xdisp.c (display_line): Don't call FETCH_BYTE with argument less | ||
| 4 | than 1. (Bug#17962) | ||
| 5 | |||
| 6 | * w32fns.c (Fx_file_dialog): Mention in the doc string the | ||
| 7 | behavior on Windows 7 and later when the function is repeatedly | ||
| 8 | invoked with the same value of DIR. (Bug#17950) | ||
| 9 | |||
| 10 | * xfns.c (Fx_file_dialog) [USE_MOTIF, USE_GTK]: Update the doc | ||
| 11 | string to match the one in w32fns.c. | ||
| 12 | |||
| 3 | * minibuf.c (read_minibuf_noninteractive) [WINDOWSNT]: Switch | 13 | * minibuf.c (read_minibuf_noninteractive) [WINDOWSNT]: Switch |
| 4 | stdin to binary mode only if it is connected to a terminal. | 14 | stdin to binary mode only if it is connected to a terminal. |
| 5 | 15 | ||
diff --git a/src/w32fns.c b/src/w32fns.c index def9d8acb7a..b76c81fdf1f 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -6394,7 +6394,11 @@ or directory must exist. | |||
| 6394 | 6394 | ||
| 6395 | This function is only defined on NS, MS Windows, and X Windows with the | 6395 | This function is only defined on NS, MS Windows, and X Windows with the |
| 6396 | Motif or Gtk toolkits. With the Motif toolkit, ONLY-DIR-P is ignored. | 6396 | Motif or Gtk toolkits. With the Motif toolkit, ONLY-DIR-P is ignored. |
| 6397 | Otherwise, if ONLY-DIR-P is non-nil, the user can only select directories. */) | 6397 | Otherwise, if ONLY-DIR-P is non-nil, the user can only select directories. |
| 6398 | On Windows 7 and later, the file selection dialog "remembers" the last | ||
| 6399 | directory where the user selected a file, and will open that directory | ||
| 6400 | instead of DIR on subsequent invocations of this function with the same | ||
| 6401 | value of DIR as in previous invocations; this is standard Windows behavior. */) | ||
| 6398 | (Lisp_Object prompt, Lisp_Object dir, Lisp_Object default_filename, Lisp_Object mustmatch, Lisp_Object only_dir_p) | 6402 | (Lisp_Object prompt, Lisp_Object dir, Lisp_Object default_filename, Lisp_Object mustmatch, Lisp_Object only_dir_p) |
| 6399 | { | 6403 | { |
| 6400 | /* Filter index: 1: All Files, 2: Directories only */ | 6404 | /* Filter index: 1: All Files, 2: Directories only */ |
diff --git a/src/xdisp.c b/src/xdisp.c index 6b2fa4be846..b83a2855927 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -20494,7 +20494,10 @@ display_line (struct it *it) | |||
| 20494 | row->truncated_on_right_p = 1; | 20494 | row->truncated_on_right_p = 1; |
| 20495 | it->continuation_lines_width = 0; | 20495 | it->continuation_lines_width = 0; |
| 20496 | reseat_at_next_visible_line_start (it, 0); | 20496 | reseat_at_next_visible_line_start (it, 0); |
| 20497 | row->ends_at_zv_p = FETCH_BYTE (IT_BYTEPOS (*it) - 1) != '\n'; | 20497 | if (IT_BYTEPOS (*it) <= BEG_BYTE) |
| 20498 | row->ends_at_zv_p = true; | ||
| 20499 | else | ||
| 20500 | row->ends_at_zv_p = FETCH_BYTE (IT_BYTEPOS (*it) - 1) != '\n'; | ||
| 20498 | break; | 20501 | break; |
| 20499 | } | 20502 | } |
| 20500 | } | 20503 | } |
diff --git a/src/xfns.c b/src/xfns.c index 1ecfadd88b7..08de79596a8 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -5705,7 +5705,11 @@ or directory must exist. | |||
| 5705 | 5705 | ||
| 5706 | This function is only defined on NS, MS Windows, and X Windows with the | 5706 | This function is only defined on NS, MS Windows, and X Windows with the |
| 5707 | Motif or Gtk toolkits. With the Motif toolkit, ONLY-DIR-P is ignored. | 5707 | Motif or Gtk toolkits. With the Motif toolkit, ONLY-DIR-P is ignored. |
| 5708 | Otherwise, if ONLY-DIR-P is non-nil, the user can only select directories. */) | 5708 | Otherwise, if ONLY-DIR-P is non-nil, the user can only select directories. |
| 5709 | On Windows 7 and later, the file selection dialog "remembers" the last | ||
| 5710 | directory where the user selected a file, and will open that directory | ||
| 5711 | instead of DIR on subsequent invocations of this function with the same | ||
| 5712 | value of DIR as in previous invocations; this is standard Windows behavior. */) | ||
| 5709 | (Lisp_Object prompt, Lisp_Object dir, Lisp_Object default_filename, | 5713 | (Lisp_Object prompt, Lisp_Object dir, Lisp_Object default_filename, |
| 5710 | Lisp_Object mustmatch, Lisp_Object only_dir_p) | 5714 | Lisp_Object mustmatch, Lisp_Object only_dir_p) |
| 5711 | { | 5715 | { |
| @@ -5877,7 +5881,11 @@ or directory must exist. | |||
| 5877 | 5881 | ||
| 5878 | This function is only defined on NS, MS Windows, and X Windows with the | 5882 | This function is only defined on NS, MS Windows, and X Windows with the |
| 5879 | Motif or Gtk toolkits. With the Motif toolkit, ONLY-DIR-P is ignored. | 5883 | Motif or Gtk toolkits. With the Motif toolkit, ONLY-DIR-P is ignored. |
| 5880 | Otherwise, if ONLY-DIR-P is non-nil, the user can only select directories. */) | 5884 | Otherwise, if ONLY-DIR-P is non-nil, the user can only select directories. |
| 5885 | On Windows 7 and later, the file selection dialog "remembers" the last | ||
| 5886 | directory where the user selected a file, and will open that directory | ||
| 5887 | instead of DIR on subsequent invocations of this function with the same | ||
| 5888 | value of DIR as in previous invocations; this is standard Windows behavior. */) | ||
| 5881 | (Lisp_Object prompt, Lisp_Object dir, Lisp_Object default_filename, Lisp_Object mustmatch, Lisp_Object only_dir_p) | 5889 | (Lisp_Object prompt, Lisp_Object dir, Lisp_Object default_filename, Lisp_Object mustmatch, Lisp_Object only_dir_p) |
| 5882 | { | 5890 | { |
| 5883 | struct frame *f = SELECTED_FRAME (); | 5891 | struct frame *f = SELECTED_FRAME (); |