aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog230
1 files changed, 230 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 88352c201b6..2a0c0e6822d 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,233 @@
12012-11-18 Paul Eggert <eggert@cs.ucla.edu>
2
3 * nsterm.m (ns_select): Send SIGIO only to self, not to process group.
4
52012-11-18 Eli Zaretskii <eliz@gnu.org>
6
7 * w32select.c: Include w32common.h before w32term.h, so that
8 windows.h gets included before w32term.h uses some of its
9 features, see below.
10
11 * w32term.h (LOCALE_ENUMPROCA, LOCALE_ENUMPROCW) [_MSC_VER]: New
12 typedefs.
13 (EnumSystemLocalesA, EnumSystemLocalesW) [_MSC_VER]: New
14 prototypes.
15 (EnumSystemLocales) [_MSC_VER]: Define if undefined. (Bug#12878)
16
172012-11-18 Jan Djärv <jan.h.d@swipnet.se>
18
19 * nsterm.m (hold_event): Set send_appdefined to YES (Bug#12834).
20 (ns_select): Return at once if events are held (Bug#12834).
21
222012-11-18 enami tsugutomo <tsugutomo.enami@jp.sony.com>
23
24 * unexelf.c (ELFSIZE) [__NetBSD__ && _LP64]: Set to 64.
25 Needed following 2012-10-20 change. (Bug#12902)
26
272012-11-18 Juanma Barranquero <lekktu@gmail.com>
28
29 * w32proc.c (waitpid): Remove unused label get_result.
30
312012-11-17 Juanma Barranquero <lekktu@gmail.com>
32
33 * makefile.w32-in (SYSWAIT_H): New macro.
34 ($(BLD)/callproc.$(O), $(BLD)/w32proc.$(O), $(BLD)/process.$(O))
35 ($(BLD)/sysdep.$(O)): Update dependencies.
36
372012-11-17 Paul Eggert <eggert@cs.ucla.edu>
38
39 Assume POSIX 1003.1-1988 or later for fcntl.h (Bug#12881).
40 * callproc.c (relocate_fd): Assume F_DUPFD.
41 * emacs.c, term.c (O_RDWR): Remove.
42 * keyboard.c (tty_read_avail_input): Use O_NONBLOCK rather than
43 O_NDELAY, since O_NONBLOCK is the standard name for this flag.
44 * nsterm.m: Assume <fcntl.h> exists.
45 * process.c (NON_BLOCKING_CONNECT, allocate_pty, create_process)
46 (create_pty, Fmake_network_process, server_accept_connection)
47 (wait_reading_process_output, init_process_emacs):
48 Assume O_NONBLOCK.
49 (wait_reading_process_output): Put in a special case for WINDOWSNT
50 to mimick the older behavior where it had O_NDELAY but not O_NONBLOCK.
51 It's not clear this is needed, but it's a more-conservative change.
52 (create_process): Assume FD_CLOEXEC.
53 (create_process, create_pty): Assume O_NOCTTY.
54 * sysdep.c (init_sys_modes, reset_sys_modes): Assume F_SETFL.
55 (reset_sys_modes): Use O_NONBLOCK rather than O_NDELAY.
56 Omit if not DOS_NT, since F_GETFL is not defined there.
57 (serial_open): Assume O_NONBLOCK and O_NOCTTY.
58 * term.c: Include <fcntl.h>, for flags like O_NOCTTY.
59 (O_NOCTTY): Remove.
60 (init_tty): Assume O_IGNORE_CTTY is defined to 0 on platforms that
61 lack it, since gnulib guarantees this.
62 * w32.c (fcntl): Test for O_NONBLOCK rather than O_NDELAY.
63
642012-11-17 Eli Zaretskii <eliz@gnu.org>
65
66 * w32.c (faccessat): Pretend that directories have the execute bit
67 set. Emacs expects that, e.g., in files.el:cd-absolute.
68
69 * w32proc.c (create_child): Don't clip the PID of the child
70 process to fit into an Emacs integer, as this is no longer a
71 restriction.
72 (waitpid): Rename from sys_wait. Emulate a Posix 'waitpid' by
73 reaping only the process specified by PID argument, if that is
74 positive. Use PID instead of dead_child to know which process to
75 reap. Wait for the child to die only if WNOHANG is not in
76 OPTIONS.
77 (sys_select): Don't set dead_child.
78
79 * sysdep.c (wait_for_termination_1): Remove the WINDOWSNT portion,
80 as it is no longer needed.
81
82 * process.c (waitpid, WUNTRACED) [!WNOHANG]: Remove definitions,
83 no longer needed.
84 (record_child_status_change): Remove the setting of
85 record_at_most_one_child for the !WNOHANG case.
86
872012-11-17 Paul Eggert <eggert@cs.ucla.edu>
88
89 Fix problems in ns port found by static checking.
90 * nsterm.m: Include <pthread.h>, for pthread_mutex_lock etc.
91 (hold_event, setPosition:portion:whole:): Send SIGIO only to self,
92 not to process group.
93 (ns_select): Use emacs_write, not write, as that's more robust
94 in the presence of signals.
95 (fd_handler:): Check for read errors.
96
972012-11-16 Glenn Morris <rgm@gnu.org>
98
99 * editfns.c (Fmessage): Mention message-log-max. (Bug#12849)
100
1012012-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
102
103 * eval.c (Finteractive_p): Revert lexbind-merge mishap.
104
1052012-11-16 Eli Zaretskii <eliz@gnu.org>
106
107 * w32proc.c (timer_loop): Make sure SuspendThread and ResumeThread
108 use the same value of thread handle.
109 (start_timer_thread): If the timer thread exited (due to error),
110 clean up by closing the two handles it used. Duplicate the caller
111 thread's handle here, so it gets duplicated only once, when
112 launching the timer thread. Set priority of the timer thread, not
113 the caller thread.
114 (getitimer): Don't duplicate the caller thread's handle here.
115 (Bug#12832)
116
1172012-11-16 Jan Djärv <jan.h.d@swipnet.se>
118
119 * nsterm.m (hold_event): Send SIGIO to make sure ns_read_socket is
120 called (Bug#12834).
121
1222012-11-16 Paul Eggert <eggert@cs.ucla.edu>
123
124 Remove no-longer-used pty_max_bytes variable.
125 * process.c (pty_max_bytes): Remove; unused.
126 (send_process): Do not set it.
127
1282012-11-15 Juanma Barranquero <lekktu@gmail.com>
129
130 * makefile.w32-in ($(BLD)/dispnew.$(O), $(BLD)/emacs.$(O)):
131 Update dependencies.
132
1332012-11-15 Paul Eggert <eggert@cs.ucla.edu>
134
135 * eval.c (mark_backtrace) [BYTE_MARK_STACK]: Remove stray '*'.
136 This follows up on the 2012-09-29 patch that removed indirection
137 for the 'function' field. Reported by Sergey Vinokurov in
138 <http://lists.gnu.org/archive/html/emacs-devel/2012-11/msg00263.html>.
139
1402012-11-14 Eli Zaretskii <eliz@gnu.org>
141
142 * w32.c (faccessat): Rename from sys_faccessat. (No need to use a
143 different name, as the MS runtime does not have such a function,
144 and probably never will.) All callers changed. Ignore DIRFD
145 value if PATH is an absolute file name, to match Posix spec
146 better. If AT_SYMLINK_NOFOLLOW is set in FLAGS, don't resolve
147 symlinks.
148
1492012-11-14 Dmitry Antipov <dmantipov@yandex.ru>
150
151 * xdisp.c (echo_area_display, redisplay_internal):
152 Omit redundant check whether frame_garbaged is set.
153
1542012-11-14 Paul Eggert <eggert@cs.ucla.edu>
155
156 Use faccessat, not access, when checking file permissions (Bug#12632).
157 This fixes a bug that has been present in Emacs since its creation.
158 It was reported by Chris Torek in 1983 even before GNU Emacs existed,
159 which must set some sort of record. (Torek's bug report was against
160 a predecessor of GNU Emacs, but GNU Emacs happened to have the
161 same common flaw.) See Torek's Usenet posting
162 "setuid/setgid programs & Emacs" Article-I.D.: sri-arpa.858
163 Posted: Fri Apr 8 14:18:56 1983.
164 * Makefile.in (LIB_EACCESS): New macro.
165 (LIBES): Use it.
166 * callproc.c (init_callproc):
167 * charset.c (init_charset):
168 * fileio.c (check_existing, check_executable, check_writable)
169 (Ffile_readable_p):
170 * lread.c (openp, load_path_check):
171 * process.c (allocate_pty):
172 * xrdb.c (file_p):
173 Use effective UID when checking permissions, not real UID.
174 * callproc.c (init_callproc):
175 * charset.c (init_charset):
176 * lread.c (load_path_check, init_lread):
177 Test whether directories are accessible, not merely whether they exist.
178 * conf_post.h (GNULIB_SUPPORT_ONLY_AT_FDCWD): New macro.
179 * fileio.c (check_existing, check_executable, check_writable)
180 (Ffile_readable_p):
181 Use symbolic names instead of integers for the flags, as they're
182 portable now.
183 (check_writable): New arg AMODE. All uses changed.
184 Set errno on failure.
185 (Ffile_readable_p): Use faccessat, not stat + open + close.
186 (Ffile_writable_p): No need to call check_existing + check_writable.
187 Just call check_writable and then look at errno. This saves a syscall.
188 dir should never be nil; replace an unnecessary runtime check
189 with an eassert. When checking the parent directory of a nonexistent
190 file, check that the directory is searchable as well as writable, as
191 we can't create files in unsearchable directories.
192 (file_directory_p): New function, which uses 'stat' on most platforms
193 but faccessat with D_OK (for efficiency) if WINDOWSNT.
194 (Ffile_directory_p, Fset_file_times): Use it.
195 (file_accessible_directory_p): New function, which uses a single
196 syscall for efficiency.
197 (Ffile_accessible_directory_p): Use it.
198 * xrdb.c (file_p): Use file_directory_p.
199 * lisp.h (file_directory_p, file_accessible_directory_p): New decls.
200 * lread.c (openp): When opening a file, use fstat rather than
201 stat, as that avoids a permissions race. When not opening a file,
202 use file_directory_p rather than stat.
203 (dir_warning): First arg is now a usage string, not a format.
204 Use errno. All uses changed.
205 * nsterm.m (ns_term_init): Remove unnecessary call to file-readable
206 that merely introduced a race.
207 * process.c, sysdep.c, term.c: All uses of '#ifdef O_NONBLOCK'
208 changed to '#if O_NONBLOCK', to accommodate gnulib O_* style,
209 and similarly for the other O_* flags.
210 * w32.c (sys_faccessat): Rename from sys_access and switch to
211 faccessat's API. All uses changed.
212 * xrdb.c: Do not include <sys/stat.h>; no longer needed.
213 (magic_db): Rename from magic_file_p.
214 (magic_db, search_magic_path): Return an XrmDatabase rather than a
215 char *, so that we don't have to test for file existence
216 separately from opening the file for reading. This removes a race
217 fixes a permission-checking problem, and simplifies the code.
218 All uses changed.
219 (file_p): Remove; no longer needed.
220
2212012-11-13 Dmitry Antipov <dmantipov@yandex.ru>
222
223 Omit glyphs initialization at startup.
224 * dispnew.c (glyphs_initialized_initially_p): Remove.
225 (adjust_frame_glyphs_initially): Likewise. Adjust users.
226 (Fredraw_frame): Move actual code from here...
227 (redraw_frame): ...to here. Add eassert. Adjust comment.
228 (Fredraw_display): Use redraw_frame.
229 * xdisp.c (clear_garbaged_frames): Likewise.
230
12012-11-13 Eli Zaretskii <eliz@gnu.org> 2312012-11-13 Eli Zaretskii <eliz@gnu.org>
2 232
3 * xdisp.c (decode_mode_spec): Limit the value of WIDTH argument 233 * xdisp.c (decode_mode_spec): Limit the value of WIDTH argument