aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2010-04-19 11:07:52 -0400
committerStefan Monnier2010-04-19 11:07:52 -0400
commit6e104790e756226cbb5b7feaf01854103ded9f36 (patch)
tree5a1bd758627d6358a7083bb3d72108676bde8bdb /src
parentb5feea0feaf721c66ff34ee2728c76a4c028fa0f (diff)
parent79d74ac527b79242175bca1b39ef12b1693c3523 (diff)
downloademacs-6e104790e756226cbb5b7feaf01854103ded9f36.tar.gz
emacs-6e104790e756226cbb5b7feaf01854103ded9f36.zip
Merge from emacs-23
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog31
-rw-r--r--src/dired.c6
-rw-r--r--src/frame.h2
-rw-r--r--src/nsmenu.m2
-rw-r--r--src/s/darwin.h18
5 files changed, 54 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index d38f2b2c9e1..61d2f124935 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,34 @@
12010-04-19 Juanma Barranquero <lekktu@gmail.com>
2
3 * dired.c (Ffile_attributes): Fix typo in docstring.
4
52010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6
7 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
8 NSInteger (Bug#5811).
9
102010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11
12 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
13 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
14
152010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16
17 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
18
192010-04-19 Jan Djärv <jan.h.d@swipnet.se>
20
21 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
22 FRAME_LINE_TO_PIXEL_Y.
23
24 * xterm.c (x_set_window_size_1): Don't add border_width/height to
25 pixelwidth/height.
26
272010-04-19 Chong Yidong <cyd@stupidchicken.com>
28
29 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
30 terminal frames (Bug#5837).
31
12010-04-19 Eli Zaretskii <eliz@gnu.org> 322010-04-19 Eli Zaretskii <eliz@gnu.org>
2 33
3 * .gdbinit (xsubchartable): New command. 34 * .gdbinit (xsubchartable): New command.
diff --git a/src/dired.c b/src/dired.c
index 2240f6ec76e..a3ea23df2f6 100644
--- a/src/dired.c
+++ b/src/dired.c
@@ -935,9 +935,9 @@ DEFUN ("file-attributes", Ffile_attributes, Sfile_attributes, 1, 2, 0,
935Value is nil if specified file cannot be opened. 935Value is nil if specified file cannot be opened.
936 936
937ID-FORMAT specifies the preferred format of attributes uid and gid (see 937ID-FORMAT specifies the preferred format of attributes uid and gid (see
938below) - valid values are 'string and 'integer. The latter is the default, 938below) - valid values are 'string and 'integer. The latter is the
939but we plan to change that, so you should specify a non-nil value for 939default, but we plan to change that, so you should specify a non-nil value
940ID-FORMAT if you use the returned uid or gid. 940for ID-FORMAT if you use the returned uid or gid.
941 941
942Elements of the attribute list are: 942Elements of the attribute list are:
943 0. t for directory, string (name linked to) for symbolic link, or nil. 943 0. t for directory, string (name linked to) for symbolic link, or nil.
diff --git a/src/frame.h b/src/frame.h
index 36b0b6b069c..887d47eff21 100644
--- a/src/frame.h
+++ b/src/frame.h
@@ -980,7 +980,7 @@ extern Lisp_Object selected_frame;
980 at ROW/COL. */ 980 at ROW/COL. */
981 981
982#define FRAME_LINE_TO_PIXEL_Y(f, row) \ 982#define FRAME_LINE_TO_PIXEL_Y(f, row) \
983 ((row < FRAME_TOP_MARGIN (f) ? 0 : FRAME_INTERNAL_BORDER_WIDTH (f)) \ 983 (((row) < FRAME_TOP_MARGIN (f) ? 0 : FRAME_INTERNAL_BORDER_WIDTH (f)) \
984 + (row) * FRAME_LINE_HEIGHT (f)) 984 + (row) * FRAME_LINE_HEIGHT (f))
985 985
986#define FRAME_COL_TO_PIXEL_X(f, col) \ 986#define FRAME_COL_TO_PIXEL_X(f, col) \
diff --git a/src/nsmenu.m b/src/nsmenu.m
index 2581be9aeb7..f85ebc165af 100644
--- a/src/nsmenu.m
+++ b/src/nsmenu.m
@@ -1709,7 +1709,7 @@ void process_dialog (id window, Lisp_Object list)
1709 1709
1710- (Lisp_Object)runDialogAt: (NSPoint)p 1710- (Lisp_Object)runDialogAt: (NSPoint)p
1711{ 1711{
1712 int ret; 1712 NSInteger ret;
1713 extern EMACS_TIME timer_check (int do_it_now); /* TODO: add to a header */ 1713 extern EMACS_TIME timer_check (int do_it_now); /* TODO: add to a header */
1714 1714
1715 /* initiate a session that will be ended by pop_down_menu */ 1715 /* initiate a session that will be ended by pop_down_menu */
diff --git a/src/s/darwin.h b/src/s/darwin.h
index e8081c6dd25..016ed343f06 100644
--- a/src/s/darwin.h
+++ b/src/s/darwin.h
@@ -90,6 +90,24 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
90 */ 90 */
91 91
92#define HAVE_PTYS 92#define HAVE_PTYS
93/* Run only once. We need a `for'-loop because the code uses
94 `continue'. */
95#define PTY_ITERATION for (i = 0; i < 1; i++)
96#define PTY_NAME_SPRINTF /* none */
97#define PTY_TTY_NAME_SPRINTF /* none */
98/* Note that openpty may fork via grantpt on Mac OS X 10.4/Darwin 8.
99 But we don't have to block SIGCHLD because it is blocked in the
100 implementation of grantpt. */
101#define PTY_OPEN \
102 do \
103 { \
104 int slave; \
105 if (openpty (&fd, &slave, pty_name, NULL, NULL) == -1) \
106 fd = -1; \
107 else \
108 emacs_close (slave); \
109 } \
110 while (0)
93 111
94/** 112/**
95 * PTYs only work correctly on Darwin 7 or higher. So make the 113 * PTYs only work correctly on Darwin 7 or higher. So make the