Sorry about that Ed!

I was too quick when I pasted the code to my init file. When I removed the
line containing ”and then” it worked just fine :)

Thank you!

On Wed, 21 Jun 2017 at 01:03, T400 <cau...@sysmatrix.net> wrote:

> Carl:
>
> I think it's right. It seems to work on ver 24.4
>
> I have the insert left curly quote bound to super tick (single quote)
>
> and
>
> insert right curly quote bound to super double-quote.
>
> Why do you suspect that it's mangled
>
>
> Ed
>
>
> On 6/20/2017 00:07, Carl Winbäck wrote:
> > Hi Ed,
> >
> > This looks really interesting. However, I wonder if perhaps the code’s
> > formatting got mangled?
> >
> > What made me doubtfoul was the ”insert” stanza. On my client it’s
> > displayed as (insert ?”) – the argument to the insert function is a
> > question mark followed by the special character, e.g. Right Double
> > Quotation Mark. (See also the screenshot in the attached file.)
> >
> > Is that correct?
> >
> >
> > Best regards,
> > Carl
> >
> >
> > On 18 June 2017 at 07:24, T400 <cau...@sysmatrix.net> wrote:
> >> I don't know if curly quotes are part of any Emacs input method but if
> not,
> >> and depending on the layout of your keyboard you could have something
> like
> >> this in your .emacs:
> >>
> >>
> >> (setq w32-pass-lwindow-to-system nil
> >>        w32-pass-rwindow-to-system nil
> >>        w32-pass-apps-to-system    nil
> >>        w32-lwindow-modifier       'super   ;; Left Windows
> >>        w32-rwindow-modifier       'super   ;; Right Windows
> >>        w32-apps-modifier          'hyper)  ;; App-Menu (key to right of
> Right
> >> Windows)
> >>
> >>
> >> and then
> >>
> >> (global-set-key [(super \,)] (lambda () (interactive) (insert  ?« )))
> >> (global-set-key [(super \.)] (lambda () (interactive) (insert  ?» )))
> >> (global-set-key [(super \')] (lambda () (interactive) (insert  ?“ )))
> >> (global-set-key [(super  \")] (lambda () (interactive) (insert  ?” )))
> >>
> >> Ed
> >>
> >>
> >>
> >> On 6/14/2017 07:46, Eli Zaretskii wrote:
> >>>> From: Carl Winbäck <c...@tunnel53.net>
> >>>> Date: Wed, 14 Jun 2017 13:13:51 +0200
> >>>>
> >>>> I’m not able to use ”alt codes” to insert special characters when
> using
> >>>> Emacs 25.1.1 on Windows 10 Pro
> >>>> 64-bit.
> >>>>
> >>>> E.g. if I press Alt+0147 in order to insert an opening double quote
> (”),
> >>>> Emacs just displays C-u 147- in the
> >>>> mode line. This keyboard shortcut works fine in other applications
> such
> >>>> as Notepad.
> >>>>
> >>>> Any ideas how to solve this?
> >>> I don't think this has ever worked in Emacs.  You can use the other
> >>> methods for inserting characters by their codepoints, as pointed out
> >>> by Rob.
> >>>
> >>>
> >>
>
>

Reply via email to