From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Grant Rettke Newsgroups: gmane.emacs.help Subject: Re: How to select the default coding system Date: Sat, 20 Sep 2014 20:13:05 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1411262015 16814 80.91.229.3 (21 Sep 2014 01:13:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 21 Sep 2014 01:13:35 +0000 (UTC) Cc: Emacs Help To: mikael@djurfeldt.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 21 03:13:30 2014 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 1XVViP-00061Y-Ts for geh-help-gnu-emacs@m.gmane.org; Sun, 21 Sep 2014 03:13:26 +0200 Original-Received: from localhost ([::1]:37432 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVViP-0005vR-G6 for geh-help-gnu-emacs@m.gmane.org; Sat, 20 Sep 2014 21:13:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46681) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVViC-0005vD-N0 for help-gnu-emacs@gnu.org; Sat, 20 Sep 2014 21:13:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XVViB-0000ZT-Iz for help-gnu-emacs@gnu.org; Sat, 20 Sep 2014 21:13:12 -0400 Original-Received: from mail-oi0-x235.google.com ([2607:f8b0:4003:c06::235]:35301) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVViB-0000Yq-Ce for help-gnu-emacs@gnu.org; Sat, 20 Sep 2014 21:13:11 -0400 Original-Received: by mail-oi0-f53.google.com with SMTP id i138so2768656oig.40 for ; Sat, 20 Sep 2014 18:13:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=9kSMcPmTzmvjSW0uk40JWZoJg1FzNjhUDeDhBWi0Sqw=; b=Kn4LSDgbbNY2M43YM9PkLChY7EiTjZcjwPbFPfJZHdlmNSbWDQgDoTXewjf/rOsISq XS/ggAfvKdf0YVxNvzIfbYpxo+1p1U0bZ4wapSKRaeUbO0ktjB0rPu9YnZLgUMlOfOUq YhpTGT6wX4yPvkuZWSNk6kbFdxiyBi4enJeksB/+5Hv/RuDRb/cMlHAyoCo8pLlazuDb SPdYLqeyar9VLl7LHY6OMDC2tkhZEPgRnmNznSaLrnt2PYcQA+9EYD0TwPGFdjZIcE15 gmFps246AjPp2TN4NwbV7ysAgKZ4//aVDiYGUWayg/95PNt/yNa2DxVohHNX6yqdLB0x aVtQ== X-Received: by 10.60.39.5 with SMTP id l5mr2749207oek.23.1411261985094; Sat, 20 Sep 2014 18:13:05 -0700 (PDT) Original-Received: by 10.182.65.104 with HTTP; Sat, 20 Sep 2014 18:13:05 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: SN0LNJscr-UAYugnQjIAwKNTt40 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c06::235 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:100080 Archived-At: Anywhere (prefer-coding-system 'utf-8) In GUI (setq x-select-request-type '(UTF8_STRING COMPOUND_TEXT TEXT STRING)) On Windows (set-clipboard-coding-system 'utf-16le-dos) Grant Rettke gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/ =E2=80=9CWisdom begins in wonder.=E2=80=9D --Socrates ((=CE=BB (x) (x x)) (=CE=BB (x) (x x))) =E2=80=9CLife has become immeasurably better since I have been forced to st= op taking it seriously.=E2=80=9D --Thompson On Wed, Sep 17, 2014 at 9:05 AM, Mikael Djurfeldt wr= ote: > Dear all, > > I just got a question from a beginner Emacs user how to set the default > coding system. For some reason, he didn't get utf-8 by default (which he > wanted). He might have touched some setting which caused this. > > Now, I'm myself an experienced Emacs user and once did have a complete > overview of Emacs functionality. But the multi-lingual envorpnment, codi= ng > systems etc is new to me. > > Trying to find the answer to this users question, I realized that the > complexity is too large even for me (elisp programmer) to find an answer = in > reasonable time. > > I started out browsing options in the GUI, trying to find an option for t= he > default coding system. I *did* find some coding system options under > "mule", but nothing which seemed to fit. > > In the manual I found a function "prefer-coding-system", which I gather o= ne > could place in .emacs. > > Q: What is the natural way to specify the default coding system, > preferrably using the GUI (to facilitate things for this novel user). > > Best regards, > Mikael D.