From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.help Subject: Re: Need help with emacs clipboard. Date: Thu, 15 Jan 2015 15:50:23 -0500 Organization: Still searching... Message-ID: <87a91jydio.fsf@reader.local.lan> References: <20150113212722522787447@bob.proulx.com> <87egqxb9q0.fsf@reader.local.lan> <20150114125645795909310@bob.proulx.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1421355054 26467 80.91.229.3 (15 Jan 2015 20:50:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Jan 2015 20:50:54 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 15 21:50:54 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YBrNU-0007nc-Dj for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Jan 2015 21:50:52 +0100 Original-Received: from localhost ([::1]:52877 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBrNT-0003ts-QH for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Jan 2015 15:50:51 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55003) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBrNH-0003tb-UR for help-gnu-emacs@gnu.org; Thu, 15 Jan 2015 15:50:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YBrNE-0005Sc-M8 for help-gnu-emacs@gnu.org; Thu, 15 Jan 2015 15:50:39 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:54800) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBrNE-0005SK-EW for help-gnu-emacs@gnu.org; Thu, 15 Jan 2015 15:50:36 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YBrN9-0007hE-Jr for help-gnu-emacs@gnu.org; Thu, 15 Jan 2015 21:50:31 +0100 Original-Received: from c-76-97-127-193.hsd1.ga.comcast.net ([76.97.127.193]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 15 Jan 2015 21:50:31 +0100 Original-Received: from reader by c-76-97-127-193.hsd1.ga.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 15 Jan 2015 21:50:31 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 55 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-76-97-127-193.hsd1.ga.comcast.net User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:AQdT3sSrFvJLNopusGX9sqhutRE= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102103 Archived-At: Bob Proulx writes: > Hi Harry, > > Harry Putnam wrote: >> Bob Proulx writes: >> > This won't help you because you want the opposite but just to post my >> > example this is what I do to configure emacs to be usable on the X >> > desktop using the primary selection. >> > >> > (setq transient-mark-mode nil) >> > (setq select-active-regions nil) ; default is nil in 23, t in 24 >> > (setq mouse-drag-copy-region t) ; default is t in 23, nil in 24 >> > (setq x-select-enable-primary t) ; default is nil in 23, t in 24 >> > (setq x-select-enable-clipboard nil) ; default is nil in 23, t in 24 >> > (setq x-select-enable-clipboard-manager nil) ; new in 24, default is t >> >> Bob, just slipped in here to see if I could get you to show how to put >> all that into a single statement that does all those things with one >> command. > > I am sorry but there isn't one. If you want each of those items then > you need each of those items. I meant a way to string a bunch of setq's together... Something like (mixing languages .. but maybe it is clear?) if(ble){ setq [...] setq [...] [...] setq [...] } >> I'm thinking to be able to turn it off and on quickly. > > This isn't something you would turn on and off. Why does it need to > be one single statement? It isn't something one puts on a command > line command. It is a part of a much larger configuration. This > configuration normally goes into your emacs config, traditionally your > ~/.emacs file although now available to configure other places too. > It doesn't make any sense to change this while the emacs is running. [...] Doesn't it enable primary select and disable clipboard. So might one want to go back the opposite way on occasion. I was thinking like having it in emacs init files one way and be able to go the other with Shift+Alt+: (eval) .. some code . Thanks for the answer and hefty thoughts...