]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/keyboard.c (command_loop_1): Don't call x-set-selection on tty.
authorChong Yidong <cyd@stupidchicken.com>
Tue, 31 Aug 2010 15:39:31 +0000 (11:39 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Tue, 31 Aug 2010 15:39:31 +0000 (11:39 -0400)
src/ChangeLog
src/keyboard.c

index fe97d576b9cfd6126a9fc73f0cbd62bd1922f238..27cda2b66e92933449f94d5383bfa17db49a54e5 100644 (file)
@@ -1,3 +1,7 @@
+2010-08-31  Chong Yidong  <cyd@stupidchicken.com>
+
+       * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
+
 2010-08-30  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * marker.c (Fcopy_marker): Make the first arg optional.
index cac051f78827526c2f6a73591415f2fff05adaaa..46e0afc15a4b0fd597b522a0ce7fd804f79bb2fe 100644 (file)
@@ -1799,10 +1799,11 @@ command_loop_1 (void)
            {
              /* Even if not deactivating the mark, set PRIMARY if
                 `select-active-regions' is non-nil.  */
-             if ((EQ (Vselect_active_regions, Qonly)
-                  ? EQ (CAR_SAFE (Vtransient_mark_mode), Qonly)
-                  : (!NILP (Vselect_active_regions)
-                     && !NILP (Vtransient_mark_mode)))
+             if (!NILP (Fwindow_system (Qnil))
+                 && (EQ (Vselect_active_regions, Qonly)
+                     ? EQ (CAR_SAFE (Vtransient_mark_mode), Qonly)
+                     : (!NILP (Vselect_active_regions)
+                        && !NILP (Vtransient_mark_mode)))
                  && !EQ (Vthis_command, Qhandle_switch_frame))
                {
                  int beg = XINT (Fmarker_position (current_buffer->mark));