Carl Bolduc | 1 Sep 01:47 2011
Picon

Re: problem with UTF-8 when accessing Emacs installed on iMac from ssh session on the iPad

>> From: Carl Bolduc <carlbolduc <at> gmail.com>
>> Date: Wed, 31 Aug 2011 09:12:06 -0400
>>
>> On the iPad, I use Prompt
>> (http://www.panic.com/blog/2011/04/introducing-prompt-ssh-for-ios/) to
>> open a ssh session on my Mac and run Emacs remotely. Whenever I try to
>> add a "French" character such as "é" or "è", I get "\351" in the
>> buffer and Emacs will complain if I try to save the file. If I switch
>> the coding system to iso-8859-1, I can enter the French chars without
>> any problems.
>>
>> Is there a setting I can change to make UTF-8 work when I access Emacs
>> through ssh?
>
> Are you saying that existing text is displayed correctly, and the
> problem is with typing French characters?  If so, please tell what
> does the following display in Emacs:
>
>  M-: keyboard-coding-system RET
>
> Also, is this a GUI (graphical) session or a text-mode session?
>
>

Yes, existing text is displayed correctly, and the problem is with
typing French characters.

The result of the eval is: utf-8-unix

I have this in .emacs:
(Continue reading)

Eli Zaretskii | 1 Sep 05:01 2011
Picon

Re: problem with UTF-8 when accessing Emacs installed on iMac from ssh session on the iPad

> From: Carl Bolduc <carlbolduc <at> gmail.com>
> Date: Wed, 31 Aug 2011 19:47:43 -0400
> Cc: "help-gnu-emacs <at> gnu.org" <help-gnu-emacs <at> gnu.org>
> 
> >> On the iPad, I use Prompt
> >> (http://www.panic.com/blog/2011/04/introducing-prompt-ssh-for-ios/) to
> >> open a ssh session on my Mac and run Emacs remotely. Whenever I try to
> >> add a "French" character such as "é" or "è", I get "\351" in the
> >> buffer and Emacs will complain if I try to save the file. If I switch
> >> the coding system to iso-8859-1, I can enter the French chars without
> >> any problems.
> >>
> >> Is there a setting I can change to make UTF-8 work when I access Emacs
> >> through ssh?
> >
> > Are you saying that existing text is displayed correctly, and the
> > problem is with typing French characters?  If so, please tell what
> > does the following display in Emacs:
> >
> >  M-: keyboard-coding-system RET
> >
> > Also, is this a GUI (graphical) session or a text-mode session?
> >
> >
> 
> Yes, existing text is displayed correctly, and the problem is with
> typing French characters.
> 
> The result of the eval is: utf-8-unix

(Continue reading)

Deniz Dogan | 1 Sep 07:36 2011
Picon

Re: Markers and text properties

On 2011-08-31 07:58, Eli Zaretskii wrote:
> What is going on?  What am I missing here?
>

Well, this is embarrassing.  It seems that I just had to recenter the 
window...

daniele.g | 1 Sep 12:45 2011
Face
Picon

Re: print to file

Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: dgiglio <at> iol.it (daniele.g)
>> Date: Wed, 31 Aug 2011 20:14:44 +0200
>> 
>> Is there a simple way to print a buffer to file instead to printer?
>
> Yes.  For ps-print, invoke it with an argument, it will then ask for a
> file name.
>
>

How? M-x ps-print has no completition available.
--

-- 
          Legge di Wavell:
          	L'amore e' come un sigaro: se si spegne, lo puoi
          	anche riaccendere, ma non ha piu' lo stesso sapore.

Seweryn Kokot | 1 Sep 14:27 2011
Picon

Re: print to file

daniele.g <dgiglio <at> iol.it> writes:

> >
> > Yes.  For ps-print, invoke it with an argument, it will then ask for a
> > file name.
> >
> >
> 
> How? M-x ps-print has no completition available.

C-u M-x ps-print

see C-h f ps-print 

Vineet Naik | 2 Sep 07:13 2011
Picon

preview in markdown-mode suddenly stopped working

Hello, 


A few days back I had configured markdown-mode (http://jblevins.org/projects/markdown-mode/) in emacs 23 on ubuntu 10.04 desktop. Everything was working fine initially but suddenly markdown preview has stopped functioning properly. 

Upon preview, now it shows markdown usage in the browser. Following is the output - 

  Usage: markdown INPUTFILE [options] Options: -h, --help show this help message and exit -f OUTPUT_FILE, --file=OUTPUT_FILE write output to OUTPUT_FILE -e ENCODING, --encoding=ENCODING encoding for input and output files -q, --quiet suppress all messages -v, --verbose print info messages -s SAFE_MODE, --safe=SAFE_MODE safe mode ('replace', 'remove' or 'escape' user's HTML tag) -o OUTPUT_FORMAT, --output_format=OUTPUT_FORMAT Format of output. One of 'xhtml1' (default) or 'html4'. --noisy print debug messages -x EXTENSION, --extension=EXTENSION load extension EXTENSION    

I have followed the installation instructions on the markdown-mode page. My .emacs file contains - 

(autoload 'markdown-mode "markdown-mode.el"
   "Major mode for editing Markdown files" t)
(setq auto-mode-alist
   (cons '("\\.md" . markdown-mode) auto-mode-alist))

Converting markdown to html from command line works fine.

Thanks for any help. 

--
Vineet Naik
Dani Moncayo | 2 Sep 11:14 2011
Picon

Binding M-n in info mode.

Hi folks,

I want to bind M-p/M-n globally to
backward-paragraph/forward-paragraph, so that I wrote this in my
.emacs:

  (define-key global-map "\M-p" 'backward-paragraph)
  (define-key global-map "\M-n" 'forward-paragraph)

It worked right, but then I realized that info mode binds M-n to
clone-buffer.  In this mode I also want to bind M-n to
forward-paragraph, so that I added this:

  (define-key Info-mode-map "\M-n" 'forward-paragraph)

The problem is that this last remapping fails when starting my Emacs
because, at that time, the variable Info-mode-map doesn't not exits.

What is the right way of solving this?

TIA

--

-- 
Dani Moncayo

Eli Zaretskii | 2 Sep 11:25 2011
Picon

Re: Binding M-n in info mode.

> Date: Fri, 2 Sep 2011 11:14:11 +0200
> From: Dani Moncayo <dmoncayo <at> gmail.com>
> 
> It worked right, but then I realized that info mode binds M-n to
> clone-buffer.  In this mode I also want to bind M-n to
> forward-paragraph, so that I added this:
> 
>   (define-key Info-mode-map "\M-n" 'forward-paragraph)
> 
> The problem is that this last remapping fails when starting my Emacs
> because, at that time, the variable Info-mode-map doesn't not exits.
> 
> What is the right way of solving this?

Do `(require 'info)' before you remap.

Dani Moncayo | 2 Sep 11:31 2011
Picon

Re: Binding M-n in info mode.

> Do `(require 'info)' before you remap.

Solved.  Thank you Eli.

--

-- 
Dani Moncayo

Deniz Dogan | 2 Sep 12:14 2011
Picon

Re: Binding M-n in info mode.

On 2011-09-02 11:14, Dani Moncayo wrote:
> Hi folks,
>
> I want to bind M-p/M-n globally to
> backward-paragraph/forward-paragraph, so that I wrote this in my
> .emacs:
>

Cool idea! ;)

>    (define-key global-map "\M-p" 'backward-paragraph)
>    (define-key global-map "\M-n" 'forward-paragraph)
>
> It worked right, but then I realized that info mode binds M-n to
> clone-buffer.  In this mode I also want to bind M-n to
> forward-paragraph, so that I added this:
>
>    (define-key Info-mode-map "\M-n" 'forward-paragraph)
>
> The problem is that this last remapping fails when starting my Emacs
> because, at that time, the variable Info-mode-map doesn't not exits.
>
> What is the right way of solving this?
>
> TIA
>

You could either do it Eli's way or "my" way:

(eval-after-load "info"
   '(define-key Info-mode-map (kbd "M-n") 'forward-paragraph))

I'm not sure which is "better".


Gmane