aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-04-13 15:28:14 -0700
committerPaul Eggert2011-04-13 15:28:14 -0700
commitf44bd759cb8b78ee8759f4681643807fe6c572ff (patch)
treedfbb91c803cc2d8c0ac1932958ced573affbf6a8 /src
parentb532497da492ad9fef912bdf41d7f57c6f5bd833 (diff)
downloademacs-f44bd759cb8b78ee8759f4681643807fe6c572ff.tar.gz
emacs-f44bd759cb8b78ee8759f4681643807fe6c572ff.zip
* editfns.c: Move a (normally-unused) function to its only use.
* editfns.c, lisp.h (get_operating_system_release): Remove. * process.c (init_process) [DARWIN_OS]: Do it inline, as it is not worth the hassle of breaking this out.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/editfns.c9
-rw-r--r--src/lisp.h1
-rw-r--r--src/process.c4
4 files changed, 8 insertions, 11 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 94712577e87..7b0a1de11da 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,10 @@
12011-04-13 Paul Eggert <eggert@cs.ucla.edu> 12011-04-13 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 * editfns.c: Move a (normally-unused) function to its only use.
4 * editfns.c, lisp.h (get_operating_system_release): Remove.
5 * process.c (init_process) [DARWIN_OS]: Do it inline, as it is not
6 worth the hassle of breaking this out.
7
3 * xterm.c: Make symbols static if they're not exported. 8 * xterm.c: Make symbols static if they're not exported.
4 (x_raise_frame, x_lower_frame, x_wm_set_window_state): 9 (x_raise_frame, x_lower_frame, x_wm_set_window_state):
5 (x_wm_set_icon_pixmap, x_initialize, XTread_socket_fake_io_error): 10 (x_wm_set_icon_pixmap, x_initialize, XTread_socket_fake_io_error):
diff --git a/src/editfns.c b/src/editfns.c
index afb1e8ebc18..ce77d10cb2f 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -1403,15 +1403,6 @@ get_system_name (void)
1403 return ""; 1403 return "";
1404} 1404}
1405 1405
1406const char *
1407get_operating_system_release (void)
1408{
1409 if (STRINGP (Voperating_system_release))
1410 return SSDATA (Voperating_system_release);
1411 else
1412 return "";
1413}
1414
1415DEFUN ("emacs-pid", Femacs_pid, Semacs_pid, 0, 0, 0, 1406DEFUN ("emacs-pid", Femacs_pid, Semacs_pid, 0, 0, 0,
1416 doc: /* Return the process ID of Emacs, as an integer. */) 1407 doc: /* Return the process ID of Emacs, as an integer. */)
1417 (void) 1408 (void)
diff --git a/src/lisp.h b/src/lisp.h
index 7f4f06c5c5d..06075332b2d 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -2925,7 +2925,6 @@ extern Lisp_Object make_buffer_string_both (EMACS_INT, EMACS_INT, EMACS_INT,
2925 EMACS_INT, int); 2925 EMACS_INT, int);
2926extern void init_editfns (void); 2926extern void init_editfns (void);
2927const char *get_system_name (void); 2927const char *get_system_name (void);
2928const char *get_operating_system_release (void);
2929extern void syms_of_editfns (void); 2928extern void syms_of_editfns (void);
2930EXFUN (Fconstrain_to_field, 5); 2929EXFUN (Fconstrain_to_field, 5);
2931EXFUN (Ffield_end, 3); 2930EXFUN (Ffield_end, 3);
diff --git a/src/process.c b/src/process.c
index 89d04081eb7..51546e7c78a 100644
--- a/src/process.c
+++ b/src/process.c
@@ -7188,7 +7188,9 @@ init_process (void)
7188 processes. As such, we only change the default value. */ 7188 processes. As such, we only change the default value. */
7189 if (initialized) 7189 if (initialized)
7190 { 7190 {
7191 const char *release = get_operating_system_release (); 7191 char const *release = (STRINGP (Voperating_system_release)
7192 ? SSDATA (Voperating_system_release)
7193 : 0);
7192 if (!release || !release[0] || (release[0] < MIN_PTY_KERNEL_VERSION 7194 if (!release || !release[0] || (release[0] < MIN_PTY_KERNEL_VERSION
7193 && release[1] == '.')) { 7195 && release[1] == '.')) {
7194 Vprocess_connection_type = Qnil; 7196 Vprocess_connection_type = Qnil;