aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlenn Morris2014-10-12 15:56:45 -0700
committerGlenn Morris2014-10-12 15:56:45 -0700
commitb1d5ab0352b6132eee4feaf9091ce7dc7a3e6a84 (patch)
treedf2e6708c30f53f071bd824c49c7f00dfbe0ffba /src
parentec11ab9b783fc1f2c0ce858a711baa5f728c238b (diff)
parente175fabcdd37f89db13ab90615cf0baa7bade4d9 (diff)
downloademacs-b1d5ab0352b6132eee4feaf9091ce7dc7a3e6a84.tar.gz
emacs-b1d5ab0352b6132eee4feaf9091ce7dc7a3e6a84.zip
Merge from emacs-24; up to 2014-07-26T11:58:24Z!schwab@linux-m68k.org
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog10
-rw-r--r--src/ChangeLog.112
-rw-r--r--src/frame.c13
-rw-r--r--src/process.c3
4 files changed, 23 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index b47fb4c9d0f..add43dc4b07 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,15 @@
12014-10-12 Paul Eggert <eggert@cs.ucla.edu> 12014-10-12 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 Fix port to Debian GNU/kFreeBSD 7 (wheezy) (Bug#18666).
4 * process.c (accept4) [!HAVE_ACCEPT4]: New macro.
5
62014-10-12 Stefan Monnier <monnier@iro.umontreal.ca>
7
8 * frame.c (Fmouse_pixel_position): Call Vmouse_position_function
9 (bug#18638).
10
112014-10-12 Paul Eggert <eggert@cs.ucla.edu>
12
3 * editfns.c (dump_tz_string): No longer const. 13 * editfns.c (dump_tz_string): No longer const.
4 It might be modified. 14 It might be modified.
5 15
diff --git a/src/ChangeLog.11 b/src/ChangeLog.11
index ac886d38966..fc6ff1fda6a 100644
--- a/src/ChangeLog.11
+++ b/src/ChangeLog.11
@@ -2241,7 +2241,7 @@
2241 * xdisp.c (try_scrolling): Avoid infloop if the first line is 2241 * xdisp.c (try_scrolling): Avoid infloop if the first line is
2242 obscured due to a vscroll (Bug#7537). 2242 obscured due to a vscroll (Bug#7537).
2243 2243
22442010-12-13 Jan Djärv <jhd@zeplinf.localdomain> 22442010-12-13 Jan Djärv <jan.h.d@swipnet.se>
2245 2245
2246 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT. 2246 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
2247 2247
diff --git a/src/frame.c b/src/frame.c
index d0527bf2a9c..a3139173655 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -1850,7 +1850,8 @@ and nil for X and Y. */)
1850{ 1850{
1851 struct frame *f; 1851 struct frame *f;
1852 Lisp_Object lispy_dummy; 1852 Lisp_Object lispy_dummy;
1853 Lisp_Object x, y; 1853 Lisp_Object x, y, retval;
1854 struct gcpro gcpro1;
1854 1855
1855 f = SELECTED_FRAME (); 1856 f = SELECTED_FRAME ();
1856 x = y = Qnil; 1857 x = y = Qnil;
@@ -1867,7 +1868,11 @@ and nil for X and Y. */)
1867 } 1868 }
1868 1869
1869 XSETFRAME (lispy_dummy, f); 1870 XSETFRAME (lispy_dummy, f);
1870 return Fcons (lispy_dummy, Fcons (x, y)); 1871 retval = Fcons (lispy_dummy, Fcons (x, y));
1872 GCPRO1 (retval);
1873 if (!NILP (Vmouse_position_function))
1874 retval = call1 (Vmouse_position_function, retval);
1875 RETURN_UNGCPRO (retval);
1871} 1876}
1872 1877
1873#ifdef HAVE_WINDOW_SYSTEM 1878#ifdef HAVE_WINDOW_SYSTEM
@@ -4869,8 +4874,8 @@ is visible. In this case you can not overscroll. */);
4869 4874
4870 DEFVAR_LISP ("mouse-position-function", Vmouse_position_function, 4875 DEFVAR_LISP ("mouse-position-function", Vmouse_position_function,
4871 doc: /* If non-nil, function to transform normal value of `mouse-position'. 4876 doc: /* If non-nil, function to transform normal value of `mouse-position'.
4872`mouse-position' calls this function, passing its usual return value as 4877`mouse-position' and `mouse-pixel-position' call this function, passing their
4873argument, and returns whatever this function returns. 4878usual return value as argument, and return whatever this function returns.
4874This abnormal hook exists for the benefit of packages like `xt-mouse.el' 4879This abnormal hook exists for the benefit of packages like `xt-mouse.el'
4875which need to do mouse handling at the Lisp level. */); 4880which need to do mouse handling at the Lisp level. */);
4876 Vmouse_position_function = Qnil; 4881 Vmouse_position_function = Qnil;
diff --git a/src/process.c b/src/process.c
index 0c36f8e18c3..06fc918cf54 100644
--- a/src/process.c
+++ b/src/process.c
@@ -173,6 +173,9 @@ close_on_exec (int fd)
173 return fd; 173 return fd;
174} 174}
175 175
176# undef accept4
177# define accept4(sockfd, addr, addrlen, flags) \
178 process_accept4 (sockfd, addr, addrlen, flags)
176static int 179static int
177accept4 (int sockfd, struct sockaddr *addr, socklen_t *addrlen, int flags) 180accept4 (int sockfd, struct sockaddr *addr, socklen_t *addrlen, int flags)
178{ 181{