From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Denise Chemla Newsgroups: gmane.emacs.help Subject: re: help-gnu-emacs Digest, Vol 132, Issue 1 Date: Fri, 1 Nov 2013 17:07:00 +0100 (CET) Message-ID: <36077741.10370.1383322020480.JavaMail.www@wwinf1n26> References: Reply-To: Denise Chemla 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 1383322044 29289 80.91.229.3 (1 Nov 2013 16:07:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Nov 2013 16:07:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 01 17:07:29 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 1VcHFx-0004qT-G4 for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Nov 2013 17:07:29 +0100 Original-Received: from localhost ([::1]:39045 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VcHFv-0005Fs-FK for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Nov 2013 12:07:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59722) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VcHFd-0005FX-1y for help-gnu-emacs@gnu.org; Fri, 01 Nov 2013 12:07:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VcHFW-0003kE-Gc for help-gnu-emacs@gnu.org; Fri, 01 Nov 2013 12:07:08 -0400 Original-Received: from smtp03.smtpout.orange.fr ([80.12.242.125]:50959 helo=smtp.smtpout.orange.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VcHFV-0003jV-T8 for help-gnu-emacs@gnu.org; Fri, 01 Nov 2013 12:07:02 -0400 Original-Received: from wwinf1n26 ([10.223.72.100]) by mwinf5d05 with ME id kG701m00H29pLMW03G70nD; Fri, 01 Nov 2013 17:07:00 +0100 In-Reply-To: X-Originating-IP: [82.121.128.58] X-WUM-FROM: |~| X-WUM-TO: |~| X-WUM-REPLYTO: |~| X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.12.242.125 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:94293 Archived-At: Well, when I press Ctrl+J at the end of the lines containing your instructi= on, it only put an empty line on the next line but doesn't answer nothing. = Will we succeed or am I condamned to type utf-8- ad vitam aeternam ?...! Sincerely yours, Denise > Message du 01/11/13 17:01 > De : help-gnu-emacs-request@gnu.org > A : help-gnu-emacs@gnu.org > Copie =C3=A0 :=20 > Objet : help-gnu-emacs Digest, Vol 132, Issue 1 >=20 > Send help-gnu-emacs mailing list submissions to > help-gnu-emacs@gnu.org >=20 > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.gnu.org/mailman/listinfo/help-gnu-emacs > or, via email, send a message with subject or body 'help' to > help-gnu-emacs-request@gnu.org >=20 > You can reach the person managing the list at > help-gnu-emacs-owner@gnu.org >=20 > When replying, please edit your Subject line so it is more specific > than "Re: Contents of help-gnu-emacs digest..." >=20 >=20 > Today's Topics: >=20 > 1. Re: python-shell-send-region uses wrong encoding? (Ernest Adrogu?) > 2. Re: python-shell-send-region uses wrong encoding? (Stefan Monnier) > 3. inconsistent file ordering for remote vs local dired > (gottlieb@nyu.edu) > 4. Re: inconsistent file ordering for remote vs local dired > (Michael Albinus) > 5. utf8 (Denise Chemla) > 6. Re: utf8 (Peter Dyballa) > 7. What is the difference between forward-list and forward-sexp? > (Marcin Borkowski) > 8. RE: What is the difference between forward-list and > forward-sexp? (Drew Adams) > 9. Re: What is the difference between forward-list and > forward-sexp? (Jambunathan K) >=20 >=20 > ---------------------------------------------------------------------- >=20 > Message: 1 > Date: Thu, 31 Oct 2013 18:54:38 +0100 > From: Ernest Adrogu?=20 > To: help-gnu-emacs@gnu.org > Subject: Re: python-shell-send-region uses wrong encoding? > Message-ID:=20 > Content-Type: text/plain; charset=3Dus-ascii >=20 > 29-10-2013, 23:20 (-0400); Stefan Monnier escriu: > > I installed a variant of that patch in Emacs's trunk, which should fix > > the problem. >=20 > The original problem is fixed, but now there's another problem. Send this > to Python: >=20 > class Foo(object): >=20 > pass >=20 > and you get IndentationError. The problem seems to be this change: >=20 > @@ -2034,26 +2038,32 @@ there for compatibility with CEDET.") > (defun python-shell-send-string (string &optional process msg) > "Send STRING to inferior Python PROCESS. > -When MSG is non-nil messages the first line of STRING." > +When MSG is non-nil messages the first line of STRING. > +If a temp file is used, return its name, otherwise return nil." > (interactive "sPython command: ") > (let ((process (or process (python-shell-get-or-create-process))) > - (lines (split-string string "\n" t))) > - (and msg (message "Sent: %s..." (nth 0 lines))) > - (if (> (length lines) 1) > + (_ (string-match "\\`\n*\\(.*\\)\\(\n.\\)?" string)) > + (multiline (match-beginning 2))) > + (and msg (message "Sent: %s..." (match-string 1 string))) > + (if multiline > (let* ((temporary-file-directory >=20 >=20 >=20 >=20 >=20 > ------------------------------ >=20 > Message: 2 > Date: Thu, 31 Oct 2013 16:35:30 -0400 > From: Stefan Monnier=20 > To: help-gnu-emacs@gnu.org > Subject: Re: python-shell-send-region uses wrong encoding? > Message-ID:=20 > Content-Type: text/plain >=20 > >> I installed a variant of that patch in Emacs's trunk, which should fix > >> the problem. > > The original problem is fixed, but now there's another problem. Send th= is > > to Python: >=20 > Ah, thanks for the test case. I see there are more problems, even. > I'm beginning to better understand the code, >=20 >=20 > Stefan >=20 >=20 >=20 >=20 > ------------------------------ >=20 > Message: 3 > Date: Thu, 31 Oct 2013 18:07:30 -0400 > From: gottlieb@nyu.edu > To: help-gnu-emacs@gnu.org > Subject: inconsistent file ordering for remote vs local dired > Message-ID:=20 > Content-Type: text/plain >=20 > My systems run gnu-linux (gentoo) and emacs 24.3. >=20 > Consider a directory DIR with just two files: lower and Upper. > /bin/ls DIR the files in the order "lower upper". > emacs -Q dired DIR also lists them in the order "lower Upper". >=20 > But emacs -Q dired /localhost:DIR lists them in the order > "Upper lower". >=20 > How can I make them use the same ordering? >=20 > (Naturally, the interesting case is when using two systems and not > localhost). >=20 > thanks, > allan >=20 >=20 >=20 > ------------------------------ >=20 > Message: 4 > Date: Fri, 01 Nov 2013 09:02:58 +0100 > From: Michael Albinus=20 > To: gottlieb@nyu.edu > Cc: help-gnu-emacs@gnu.org > Subject: Re: inconsistent file ordering for remote vs local dired > Message-ID:=20 > Content-Type: text/plain >=20 > gottlieb@nyu.edu writes: >=20 > Hi Allen, >=20 > > My systems run gnu-linux (gentoo) and emacs 24.3. > > > > Consider a directory DIR with just two files: lower and Upper. > > /bin/ls DIR the files in the order "lower upper". > > emacs -Q dired DIR also lists them in the order "lower Upper". > > > > But emacs -Q dired /localhost:DIR lists them in the order > > "Upper lower". > > > > How can I make them use the same ordering? >=20 > This is solved in the recent Emacs trunk. You could upgrade to that > developer version Emacs 24.3.50, or use the latest Tramp release 2.2.8. >=20 > I've tried to find the change which made it happen, but there is no > obvious one. So I cannot offer you a patch for the builtin Tramp version > of Emacs 24.3. >=20 > > thanks, > > allan >=20 > Best regards, Michael. >=20 >=20 >=20 > ------------------------------ >=20 > Message: 5 > Date: Fri, 1 Nov 2013 10:26:11 +0100 (CET) > From: Denise Chemla=20 > To: help-gnu-emacs@gnu.org > Subject: utf8 > Message-ID:=20 > Content-Type: text/plain; charset=3DUTF-8 >=20 > Hi everybody, >=20 > ? >=20 > I am french, I use intensively gnu-emacs but I don't know it too much. I = probably click on bad keys from my keyboard and now, each time I want to sa= ve my file using ctrl-s, emacs tells me something like "please confirm your= encoding is well utf-8-unix" and only after I write all the letters U T F = - 8 - U N I X, it saves my work. I am completely tired to type all those le= tters at each time I save. >=20 > ? >=20 > Could you help me, telling me what I made wrong ? >=20 > ? >=20 > Sincerely yours, >=20 > Denise Chemla >=20 >=20 > ------------------------------ >=20 > Message: 6 > Date: Fri, 1 Nov 2013 15:18:29 +0100 > From: Peter Dyballa=20 > To: Denise Chemla=20 > Cc: help-gnu-emacs@gnu.org > Subject: Re: utf8 > Message-ID:=20 > Content-Type: text/plain; charset=3Dus-ascii >=20 >=20 > Am 01.11.2013 um 10:26 schrieb Denise Chemla: >=20 > > each time I want to save my file using ctrl-s, >=20 > That cannot work! C-s is bound to incremental-search- or isearch-forward. >=20 > > emacs tells me something like "please confirm your encoding is well utf= -8-unix" and only after I write all the letters U T F - 8 - U N I X, it sav= es my work. I am completely tired to type all those letters at each time I = save. >=20 > You should check the environment variables LANG and LC_ALL. They make GNU= Emacs choose an encoding that corresponds to their values. It might work t= o override this setting by using in your init file >=20 > (prefer-coding-system 'utf-8) >=20 > BTW, you don't need to repeat the letters "U T F - 8 - U N I X", the seco= nd and the other times you can use the arrow keys (up or down) to get your = preferred value back. TAB also allows to expand the word started. >=20 > -- > Greetings >=20 > Pete >=20 > A census taker is a man who goes from house to house increasing the popul= ation. >=20 >=20 >=20 >=20 >=20 > ------------------------------ >=20 > Message: 7 > Date: Fri, 1 Nov 2013 15:40:02 +0100 > From: Marcin Borkowski=20 > To: GNU Emacs users list=20 > Subject: What is the difference between forward-list and forward-sexp? > Message-ID:=20 > Content-Type: text/plain; charset=3DUS-ASCII >=20 > Hi all, >=20 > the subject says it all. A simple test (involving two *very* simple > cases) didn't show any difference. The source code is quite similar, > and (at least if forward-sexp-function is undefined) the difference > boils down to calling scan-lists or scan-sexps. These in turn are > defined in the C source code, which I don't have on my disk (and I'm > not fluent in C, so the source code wouldn't help me very much anyway). >=20 > Best, >=20 > --=20 > Marcin Borkowski > http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski > Adam Mickiewicz University >=20 >=20 >=20 > ------------------------------ >=20 > Message: 8 > Date: Fri, 1 Nov 2013 08:05:50 -0700 (PDT) > From: Drew Adams=20 > To: Marcin Borkowski , GNU Emacs users list >=20 > Subject: RE: What is the difference between forward-list and > forward-sexp? > Message-ID:=20 > Content-Type: text/plain; charset=3Dus-ascii >=20 > > the subject says it all. A simple test (involving two *very* simple > > cases) didn't show any difference. >=20 > A list is a sexp, but not all sexps are lists. >=20 >=20 >=20 > ------------------------------ >=20 > Message: 9 > Date: Fri, 01 Nov 2013 20:37:37 +0530 > From: Jambunathan K=20 > To: Marcin Borkowski=20 > Cc: GNU Emacs users list=20 > Subject: Re: What is the difference between forward-list and > forward-sexp? > Message-ID:=20 > Content-Type: text/plain >=20 >=20 > I am not familiar with the technical details. Let me share how I use > those two. >=20 > ---------------------------------------------------------------- >=20 > Diff. between C-M-f and C-M-n > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D >=20 > sexp =3D> An expression. >=20 > You can use C-M-f to move a symbol at a time. C-M-n will look for a > parenthesis and skip past it. >=20 > (defun message (msg) > (message msg)) >=20 > Put your cursor on the 'd' character of defun above and do a C-M-f and a > C-M-n. You will see a difference. >=20 > ---------------------------------------------------------------- >=20 > Difference between M-f and C-M-f > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D >=20 > M-f considers word as a unit. C-M-f takes symbol as a unit. Likewise > for M-k cuts a word and C-M-k will cut a symbol. >=20 > (string-match "\\^" markers) >=20 > Put your cursor on the 's' of the string-match and do a M-f and C-M-f. > See what happens. >=20 > The above example is in elisp. One can try the above exercise with C > symbols that have underscores in them. >=20 > ---------------------------------------------------------------- >=20 > Marcin Borkowski writes: >=20 > > Hi all, > > > > the subject says it all. A simple test (involving two *very* simple > > cases) didn't show any difference. The source code is quite similar, > > and (at least if forward-sexp-function is undefined) the difference > > boils down to calling scan-lists or scan-sexps. These in turn are > > defined in the C source code, which I don't have on my disk (and I'm > > not fluent in C, so the source code wouldn't help me very much anyway). > > > > Best, >=20 >=20 >=20 > ------------------------------ >=20 > _______________________________________________ > help-gnu-emacs mailing list > help-gnu-emacs@gnu.org > https://lists.gnu.org/mailman/listinfo/help-gnu-emacs >=20 >=20 > End of help-gnu-emacs Digest, Vol 132, Issue 1 > ********************************************** >