From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marius Hofert Newsgroups: gmane.emacs.help Subject: Re: Printing questions concerning lpr-switches and printer-name Date: Thu, 23 May 2013 16:53:17 +0200 Message-ID: <871u8xvjc2.fsf@math.ethz.ch> References: <87y5b6stw1.fsf@math.ethz.ch> <4C035C2D-268A-4A8A-821F-1D06502CC7D9@Web.DE> <87ppwira77.fsf@math.ethz.ch> <42C53119-AE69-40B6-8455-EE0296231DAB@Web.DE> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1369321668 19184 80.91.229.3 (23 May 2013 15:07:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 May 2013 15:07:48 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Peter Dyballa" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 23 17:07:49 2013 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 1UfX7N-0001YQ-0I for geh-help-gnu-emacs@m.gmane.org; Thu, 23 May 2013 17:07:49 +0200 Original-Received: from localhost ([::1]:39040 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfX7M-00040A-FL for geh-help-gnu-emacs@m.gmane.org; Thu, 23 May 2013 11:07:48 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40160) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfX78-0003y6-SQ for help-gnu-emacs@gnu.org; Thu, 23 May 2013 11:07:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UfX75-0001Vk-TW for help-gnu-emacs@gnu.org; Thu, 23 May 2013 11:07:34 -0400 Original-Received: from mail-ee0-f51.google.com ([74.125.83.51]:38339) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfWtN-0005Yr-BK for help-gnu-emacs@gnu.org; Thu, 23 May 2013 10:53:21 -0400 Original-Received: by mail-ee0-f51.google.com with SMTP id e51so1926728eek.38 for ; Thu, 23 May 2013 07:53:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:user-agent:in-reply-to:date :message-id:mime-version:content-type:content-transfer-encoding; bh=fr2bZw9RNfYkDzWJUcFTeEGmaEAno2poop6Xw5X8R2U=; b=c1tFo3XPzBNtZYwFTl3GJScQTcRptJqNFcxs/bEM8oNfPjCW+Qa3dDDR1qNSYCVWCD q0vS0Zb55yrv+ekk/ndjFCfozFdVKg4ICZxoBgpPT8CrwrLYneLEq8LiALK5bjXUp3WF j6zyRXX0IK0BjMXaoPLF+ttE8f4qXlJyrYB+NwsV4s/j5mOp/yJE7zOrmEfXXjJrBtbs OYvDUJBKHug4P+R6cvbrjSDe5CWOUnrUC09yq+ilY7qpWk+2eWz2l9MH5emJmZ3wTQz/ cCF8aMIWUbjnCVcFePutFItAgrhWykQoQrilJfV1LzodxD8KYDCqA2or/l/dgM8ITxmJ jcIA== X-Received: by 10.15.35.71 with SMTP id f47mr32377913eev.15.1369320800461; Thu, 23 May 2013 07:53:20 -0700 (PDT) Original-Received: from sklar (178-83-94-113.dynamic.hispeed.ch. [178.83.94.113]) by mx.google.com with ESMTPSA id bn53sm17349432eeb.7.2013.05.23.07.53.18 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 23 May 2013 07:53:19 -0700 (PDT) User-agent: mu4e 0.9.9.5; emacs 24.3.50.1 In-reply-to: <42C53119-AE69-40B6-8455-EE0296231DAB@Web.DE> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 74.125.83.51 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:91002 Archived-At: Peter Dyballa writes: > Am 22.05.2013 um 23:11 schrieb Marius Hofert: > >> An 'ido' completion of available printers would also be >> great. Theoretically that should be possible, but I rather have to learn >> elisp first... > > With f1…fn you select one of the n printers you have (maybe there > exists a clear relation between the printer's type number and the n of > the function key). So you bind a simple variable setting function (for > printer-name) to a key press event. How? I looked around (e.g., here http://www.masteringemacs.org/articles/2011/02/08/mastering-key-bindings-emacs/), but couldn't find a solution to this problem. But then I'm no expert here, so I might have overlooked it. > > > With one modifier key down, for example Control, while you press one > of the function keys now two things happen: you set printer n active > and you also select particular lpr-switches – if needed. > > With two modifier keys down, for example Control + Shift, while you > press one of the function keys now three things happen: you set > printer n active and you also select particular lpr-switches for it > and you choose an lpr-command with enscript, a2ps, or whatever. > this indeed sounds like a nice approach. Cheers, Marius > > This should not be too complicated. With printing set-up that way you > can simply print a file (or more?) from dired with P. > > -- > Mit friedvollen Grüßen > > Pete > > Atheism is a non prophet organisation.