aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog28
-rw-r--r--src/editfns.c8
-rw-r--r--src/indent.c6
-rw-r--r--src/lread.c16
-rw-r--r--src/nsterm.m2
-rw-r--r--src/w32.c36
-rw-r--r--src/w32fns.c2
7 files changed, 67 insertions, 31 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index dd51eb9ed3b..e7fc8179e07 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,31 @@
12012-12-10 Jan Djärv <jan.h.d@swipnet.se>
2
3 * nsterm.m (fd_handler:): FD_ZERO fds (Bug#13103).
4
52012-12-10 Fabrice Popineau <fabrice.popineau@gmail.com>
6
7 * w32fns.c (cache_system_info): Cast sysinfo_cache.dwPageSize to
8 DWORD_PTR, for compatibility with 64-bit builds.
9
10 * w32.c (_PROCESS_MEMORY_COUNTERS_EX):
11 (GetProcessWorkingSetSize_Proc, get_process_working_set_size)
12 (system_process_attributes): Use SIZE_T rather than DWORD, for
13 compatibility with 64-bit builds.
14
152012-12-10 Christopher Schmidt <christopher@ch.ristopher.com>
16
17 * lread.c (Vload_source_file_function): Doc fix (Bug#11647).
18
192012-12-10 Eli Zaretskii <eliz@gnu.org>
20
21 * indent.c (Fvertical_motion): If a display string will be
22 displayed on the left or the right margin, don't consider it as a
23 factor in cursor positioning. (Bug#13108)
24
252012-12-10 Martin Rudalics <rudalics@gmx.at>
26
27 * editfns.c (Fcompare_buffer_substrings): Reword doc-string.
28
12012-12-10 Paul Eggert <eggert@cs.ucla.edu> 292012-12-10 Paul Eggert <eggert@cs.ucla.edu>
2 30
3 * fileio.c (Fsubstitute_in_file_name): Use ptrdiff_t, not int, 31 * fileio.c (Fsubstitute_in_file_name): Use ptrdiff_t, not int,
diff --git a/src/editfns.c b/src/editfns.c
index 7d179c8566a..eb909f73697 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -2635,10 +2635,10 @@ They default to the values of (point-min) and (point-max) in BUFFER. */)
2635DEFUN ("compare-buffer-substrings", Fcompare_buffer_substrings, Scompare_buffer_substrings, 2635DEFUN ("compare-buffer-substrings", Fcompare_buffer_substrings, Scompare_buffer_substrings,
2636 6, 6, 0, 2636 6, 6, 0,
2637 doc: /* Compare two substrings of two buffers; return result as number. 2637 doc: /* Compare two substrings of two buffers; return result as number.
2638the value is -N if first string is less after N-1 chars, 2638Return -N if first string is less after N-1 chars, +N if first string is
2639+N if first string is greater after N-1 chars, or 0 if strings match. 2639greater after N-1 chars, or 0 if strings match. Each substring is
2640Each substring is represented as three arguments: BUFFER, START and END. 2640represented as three arguments: BUFFER, START and END. That makes six
2641That makes six args in all, three for each substring. 2641args in all, three for each substring.
2642 2642
2643The value of `case-fold-search' in the current buffer 2643The value of `case-fold-search' in the current buffer
2644determines whether case is significant or ignored. */) 2644determines whether case is significant or ignored. */)
diff --git a/src/indent.c b/src/indent.c
index a3abf88feeb..327526eae2d 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -2025,7 +2025,11 @@ whether or not it is currently displayed in some window. */)
2025 const char *s = SSDATA (it.string); 2025 const char *s = SSDATA (it.string);
2026 const char *e = s + SBYTES (it.string); 2026 const char *e = s + SBYTES (it.string);
2027 2027
2028 disp_string_at_start_p = it.string_from_display_prop_p; 2028 /* If it.area is anything but TEXT_AREA, we need not bother
2029 about the display string, as it doesn't affect cursor
2030 positioning. */
2031 disp_string_at_start_p =
2032 it.string_from_display_prop_p && it.area == TEXT_AREA;
2029 while (s < e) 2033 while (s < e)
2030 { 2034 {
2031 if (*s++ == '\n') 2035 if (*s++ == '\n')
diff --git a/src/lread.c b/src/lread.c
index 6647382a254..2f385797ca0 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -4525,12 +4525,16 @@ The default is nil, which means use the function `read'. */);
4525 Vload_read_function = Qnil; 4525 Vload_read_function = Qnil;
4526 4526
4527 DEFVAR_LISP ("load-source-file-function", Vload_source_file_function, 4527 DEFVAR_LISP ("load-source-file-function", Vload_source_file_function,
4528 doc: /* Function called in `load' for loading an Emacs Lisp source file. 4528 doc: /* Function called in `load' to load an Emacs Lisp source file.
4529This function is for doing code conversion before reading the source file. 4529The value should be a function for doing code conversion before
4530If nil, loading is done without any code conversion. 4530reading a source file. It can also be nil, in which case loading is
4531Arguments are FULLNAME, FILE, NOERROR, NOMESSAGE, where 4531done without any code conversion.
4532 FULLNAME is the full name of FILE. 4532
4533See `load' for the meaning of the remaining arguments. */); 4533If the value is a function, it is called with four arguments,
4534FULLNAME, FILE, NOERROR, NOMESSAGE. FULLNAME is the absolute name of
4535the file to load, FILE is the non-absolute name (for messages etc.),
4536and NOERROR and NOMESSAGE are the corresponding arguments passed to
4537`load'. The function should return t if the file was loaded. */);
4534 Vload_source_file_function = Qnil; 4538 Vload_source_file_function = Qnil;
4535 4539
4536 DEFVAR_BOOL ("load-force-doc-strings", load_force_doc_strings, 4540 DEFVAR_BOOL ("load-force-doc-strings", load_force_doc_strings,
diff --git a/src/nsterm.m b/src/nsterm.m
index 55a106b7e03..80dc0ba6fc3 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -4575,7 +4575,7 @@ not_in_argv (NSString *arg)
4575 if (waiting) 4575 if (waiting)
4576 { 4576 {
4577 SELECT_TYPE fds; 4577 SELECT_TYPE fds;
4578 4578 FD_ZERO (&fds);
4579 FD_SET (selfds[0], &fds); 4579 FD_SET (selfds[0], &fds);
4580 result = select (selfds[0]+1, &fds, NULL, NULL, NULL); 4580 result = select (selfds[0]+1, &fds, NULL, NULL, NULL);
4581 if (result > 0 && read (selfds[0], &c, 1) == 1 && c == 'g') 4581 if (result > 0 && read (selfds[0], &c, 1) == 1 && c == 'g')
diff --git a/src/w32.c b/src/w32.c
index b6bb653369d..e163a3a1ee3 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -101,17 +101,17 @@ typedef struct _MEMORY_STATUS_EX {
101 _WIN32_WINNT than what we use. w32api supplied with MinGW 3.15 101 _WIN32_WINNT than what we use. w32api supplied with MinGW 3.15
102 defines it in psapi.h */ 102 defines it in psapi.h */
103typedef struct _PROCESS_MEMORY_COUNTERS_EX { 103typedef struct _PROCESS_MEMORY_COUNTERS_EX {
104 DWORD cb; 104 DWORD cb;
105 DWORD PageFaultCount; 105 DWORD PageFaultCount;
106 DWORD PeakWorkingSetSize; 106 SIZE_T PeakWorkingSetSize;
107 DWORD WorkingSetSize; 107 SIZE_T WorkingSetSize;
108 DWORD QuotaPeakPagedPoolUsage; 108 SIZE_T QuotaPeakPagedPoolUsage;
109 DWORD QuotaPagedPoolUsage; 109 SIZE_T QuotaPagedPoolUsage;
110 DWORD QuotaPeakNonPagedPoolUsage; 110 SIZE_T QuotaPeakNonPagedPoolUsage;
111 DWORD QuotaNonPagedPoolUsage; 111 SIZE_T QuotaNonPagedPoolUsage;
112 DWORD PagefileUsage; 112 SIZE_T PagefileUsage;
113 DWORD PeakPagefileUsage; 113 SIZE_T PeakPagefileUsage;
114 DWORD PrivateUsage; 114 SIZE_T PrivateUsage;
115} PROCESS_MEMORY_COUNTERS_EX,*PPROCESS_MEMORY_COUNTERS_EX; 115} PROCESS_MEMORY_COUNTERS_EX,*PPROCESS_MEMORY_COUNTERS_EX;
116#endif 116#endif
117 117
@@ -351,8 +351,8 @@ typedef BOOL (WINAPI * GetProcessMemoryInfo_Proc) (
351 DWORD cb); 351 DWORD cb);
352typedef BOOL (WINAPI * GetProcessWorkingSetSize_Proc) ( 352typedef BOOL (WINAPI * GetProcessWorkingSetSize_Proc) (
353 HANDLE hProcess, 353 HANDLE hProcess,
354 DWORD * lpMinimumWorkingSetSize, 354 PSIZE_T lpMinimumWorkingSetSize,
355 DWORD * lpMaximumWorkingSetSize); 355 PSIZE_T lpMaximumWorkingSetSize);
356typedef BOOL (WINAPI * GlobalMemoryStatus_Proc) ( 356typedef BOOL (WINAPI * GlobalMemoryStatus_Proc) (
357 LPMEMORYSTATUS lpBuffer); 357 LPMEMORYSTATUS lpBuffer);
358typedef BOOL (WINAPI * GlobalMemoryStatusEx_Proc) ( 358typedef BOOL (WINAPI * GlobalMemoryStatusEx_Proc) (
@@ -4685,8 +4685,8 @@ get_process_memory_info (HANDLE h_proc,
4685 4685
4686static BOOL WINAPI 4686static BOOL WINAPI
4687get_process_working_set_size (HANDLE h_proc, 4687get_process_working_set_size (HANDLE h_proc,
4688 DWORD *minrss, 4688 PSIZE_T minrss,
4689 DWORD *maxrss) 4689 PSIZE_T maxrss)
4690{ 4690{
4691 static GetProcessWorkingSetSize_Proc 4691 static GetProcessWorkingSetSize_Proc
4692 s_pfn_Get_Process_Working_Set_Size = NULL; 4692 s_pfn_Get_Process_Working_Set_Size = NULL;
@@ -4931,7 +4931,7 @@ system_process_attributes (Lisp_Object pid)
4931 unsigned egid; 4931 unsigned egid;
4932 PROCESS_MEMORY_COUNTERS mem; 4932 PROCESS_MEMORY_COUNTERS mem;
4933 PROCESS_MEMORY_COUNTERS_EX mem_ex; 4933 PROCESS_MEMORY_COUNTERS_EX mem_ex;
4934 DWORD minrss, maxrss; 4934 SIZE_T minrss, maxrss;
4935 MEMORYSTATUS memst; 4935 MEMORYSTATUS memst;
4936 MEMORY_STATUS_EX memstex; 4936 MEMORY_STATUS_EX memstex;
4937 double totphys = 0.0; 4937 double totphys = 0.0;
@@ -5159,7 +5159,7 @@ system_process_attributes (Lisp_Object pid)
5159 && get_process_memory_info (h_proc, (PROCESS_MEMORY_COUNTERS *)&mem_ex, 5159 && get_process_memory_info (h_proc, (PROCESS_MEMORY_COUNTERS *)&mem_ex,
5160 sizeof (mem_ex))) 5160 sizeof (mem_ex)))
5161 { 5161 {
5162 DWORD rss = mem_ex.WorkingSetSize / 1024; 5162 SIZE_T rss = mem_ex.WorkingSetSize / 1024;
5163 5163
5164 attrs = Fcons (Fcons (Qmajflt, 5164 attrs = Fcons (Fcons (Qmajflt,
5165 make_fixnum_or_float (mem_ex.PageFaultCount)), 5165 make_fixnum_or_float (mem_ex.PageFaultCount)),
@@ -5174,7 +5174,7 @@ system_process_attributes (Lisp_Object pid)
5174 else if (h_proc 5174 else if (h_proc
5175 && get_process_memory_info (h_proc, &mem, sizeof (mem))) 5175 && get_process_memory_info (h_proc, &mem, sizeof (mem)))
5176 { 5176 {
5177 DWORD rss = mem_ex.WorkingSetSize / 1024; 5177 SIZE_T rss = mem_ex.WorkingSetSize / 1024;
5178 5178
5179 attrs = Fcons (Fcons (Qmajflt, 5179 attrs = Fcons (Fcons (Qmajflt,
5180 make_fixnum_or_float (mem.PageFaultCount)), 5180 make_fixnum_or_float (mem.PageFaultCount)),
diff --git a/src/w32fns.c b/src/w32fns.c
index 1a181079c82..1b8483479a1 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -7036,7 +7036,7 @@ cache_system_info (void)
7036 7036
7037 /* Cache page size, allocation unit, processor type, etc. */ 7037 /* Cache page size, allocation unit, processor type, etc. */
7038 GetSystemInfo (&sysinfo_cache); 7038 GetSystemInfo (&sysinfo_cache);
7039 syspage_mask = sysinfo_cache.dwPageSize - 1; 7039 syspage_mask = (DWORD_PTR)sysinfo_cache.dwPageSize - 1;
7040 7040
7041 /* Cache os info. */ 7041 /* Cache os info. */
7042 osinfo_cache.dwOSVersionInfoSize = sizeof (OSVERSIONINFO); 7042 osinfo_cache.dwOSVersionInfoSize = sizeof (OSVERSIONINFO);