emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r102459: Remove emacs-priority.


From: Dan Nicolaescu
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r102459: Remove emacs-priority.
Date: Sat, 20 Nov 2010 21:39:01 -0800
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 102459
committer: Dan Nicolaescu <address@hidden>
branch nick: trunk
timestamp: Sat 2010-11-20 21:39:01 -0800
message:
  Remove emacs-priority.
  
  * src/sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
  * src/emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
modified:
  src/ChangeLog
  src/emacs.c
  src/sysdep.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2010-11-21 05:20:50 +0000
+++ b/src/ChangeLog     2010-11-21 05:39:01 +0000
@@ -1,5 +1,8 @@
 2010-11-21  Dan Nicolaescu  <address@hidden>
 
+       * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
+       * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
+
        * intervals.h (temp_set_point, temp_set_point_both):
        * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
 

=== modified file 'src/emacs.c'
--- a/src/emacs.c       2010-11-15 06:10:35 +0000
+++ b/src/emacs.c       2010-11-21 05:39:01 +0000
@@ -195,11 +195,6 @@
    but instead should use the virtual terminal under which it was started.  */
 int inhibit_window_system;
 
-/* If nonzero, set Emacs to run at this priority.  This is also used
-   in child_setup and sys_suspend to make sure subshells run at normal
-   priority; those functions have their own extern declaration.  */
-EMACS_INT emacs_priority;
-
 /* If non-zero, a filter or a sentinel is running.  Tested to save the match
    data on the first attempt to change it inside asynchronous code.  */
 int running_asynch_code;
@@ -2439,15 +2434,6 @@
 `noninteractive' was non-nil.  */);
   Vkill_emacs_hook = Qnil;
 
-  DEFVAR_INT ("emacs-priority", &emacs_priority,
-             doc: /* Priority for Emacs to run at.
-This value is effective only if set before Emacs is dumped,
-and only if the Emacs executable is installed with setuid to permit
-it to change priority.  (Emacs sets its uid back to the real uid.)
-Currently, you need to define SET_EMACS_PRIORITY in `config.h'
-before you compile Emacs, to enable the code for this feature.  */);
-  emacs_priority = 0;
-
   DEFVAR_LISP ("path-separator", &Vpath_separator,
               doc: /* String containing the character that separates 
directories in
 search paths, such as PATH and other similar environment variables.  */);

=== modified file 'src/sysdep.c'
--- a/src/sysdep.c      2010-11-15 06:10:35 +0000
+++ b/src/sysdep.c      2010-11-21 05:39:01 +0000
@@ -554,15 +554,6 @@
 
       close_process_descs ();  /* Close Emacs's pipes/ptys */
 
-#ifdef SET_EMACS_PRIORITY
-      {
-       extern EMACS_INT emacs_priority;
-
-       if (emacs_priority < 0)
-         nice (-emacs_priority);
-      }
-#endif
-
 #ifdef MSDOS    /* Demacs 1.1.2 91/10/20 Manabu Higashida */
       {
        char *epwd = getenv ("PWD");


reply via email to

[Prev in Thread] Current Thread [Next in Thread]