[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[adding abbrev using two-word-expansions] (was: did the abbrev mechanism
From: |
Uwe Brauer |
Subject: |
[adding abbrev using two-word-expansions] (was: did the abbrev mechanism ever expand «two words» to «two different words».) |
Date: |
Sat, 09 Jan 2021 09:11:49 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
>>> "RS" == Richard Stallman <rms@gnu.org> writes:
> [[[ To any NSA and FBI agents reading my email: please consider ]]]
> [[[ whether defending the US Constitution against all enemies, ]]]
> [[[ foreign or domestic, requires you to follow Snowden's example. ]]]
>> This mean a word-separator character cannot be part of an abbrev.
> I am pretty sure that was always the case.
Well in my .abbrev_defs files I have entries like
("en cambio" "a cambio" nil :count 34)
Which seems to indicate that it worked at same stage. Maybe I used code
similar of what Robert suggested but deleted it some time ago
(documentation is important).
I want to add a remark, concerning adding new abbrev.
I have now a modification of my code
(define-minor-mode castellano-minor-mode
nil nil nil nil
(setq local-abbrev-table
(if castellano-minor-mode
(list my-abbrev-table castellano-minor-mode-abbrev-table)))
(message "Added the local `my-abbrev-table' to the
`castellano-minor-abbrev-table'"))
I used to define two words abbrev like this
(defun ediff-define-abbrev ()
(interactive)
(let ((name (get-register ?A)))
(let ((expansion (get-register ?B)))
(set-text-properties 0 (length name) nil name)
(define-abbrev local-abbrev-table name (downcase expansion))))
(message "abbrev is added using register A and B."))
That however does not work any more instead gives an error of the form
Any idea what to do, now?
Debugger entered--Lisp error: (wrong-type-argument vectorp ([de\ usar 0
0 en\ la\ mayor\ brevedad\ posible de\ la\ entrega 0 en\ la\
siguiente\ manera los\ prácticas\ 0 hola\ salva a\ final 0 0 0 0 los\
funciones 0 0 0 0 0 0 hola\ gabriel a\ penas de\ comprometerme\ de\
darte 0 0 0 0 hola\ raúl posibilidad\ hacerlo 0 0 0 hola\ alicia 0 0
los\ siguientes\ cosas 0 0 0 los\ siguientes\ posibilidades les\
ruego\ aclararme en\ internet los\ manos 0 0 0 0 lamento\ que\ me\
has\ encontrado ...] [áfrica vacio votacion utlidad volutarios útlies
vistemos vicino terero vacuana áfin vostros util vostotros vistido
veronica varibilidad vienieras varidad traquilidad veniste tristesa
verifca venieron victimas volvia traduccir volutaria vecorial
virtualizar àrea viveis supervision trival tutoria zanhoria vivia
vivian vivisite vuitre tradicion volutario varon zero volvere tuvé
vistitado virnes ví vendria ...])) intern-soft("" ([de\ usar 0 0 en\
la\ mayor\ brevedad\ posible de\ la\ entrega 0 en\ la\ siguiente\
manera los\ prácticas\ 0 hola\ salva a\ final 0 0 0 0 los\ funciones 0
0 0 0 0 0 hola\ gabriel a\ penas de\ comprometerme\ de\ darte 0 0 0 0
hola\ raúl posibilidad\ hacerlo 0 0 0 hola\ alicia 0 0 los\
siguientes\ cosas 0 0 0 los\ siguientes\ posibilidades les\ ruego\
aclararme en\ internet los\ manos 0 0 0 0 lamento\ que\ me\ has\
encontrado ...] [áfrica vacio votacion utlidad volutarios útlies
vistemos vicino terero vacuana áfin vostros util vostotros vistido
veronica varibilidad vienieras varidad traquilidad veniste tristesa
verifca venieron victimas volvia traduccir volutaria vecorial
virtualizar àrea viveis supervision trival tutoria zanhoria vivia
vivian vivisite vuitre tradicion volutario varon zero volvere tuvé
vistitado virnes ví vendria ...])) obarray-get(([de\ usar 0 0 en\ la\
mayor\ brevedad\ posible de\ la\ entrega 0 en\ la\ siguiente\ manera
los\ prácticas\ 0 hola\ salva a\ final 0 0 0 0 los\ funciones 0 0 0 0
0 0 hola\ gabriel a\ penas de\ comprometerme\ de\ darte 0 0 0 0 hola\
raúl posibilidad\ hacerlo 0 0 0 hola\ alicia 0 0 los\ siguientes\
cosas 0 0 0 los\ siguientes\ posibilidades les\ ruego\ aclararme en\
internet los\ manos 0 0 0 0 lamento\ que\ me\ has\ encontrado ...]
[áfrica vacio votacion utlidad volutarios útlies vistemos vicino
terero vacuana áfin vostros util vostotros vistido veronica
varibilidad vienieras varidad traquilidad veniste tristesa verifca
venieron victimas volvia traduccir volutaria vecorial virtualizar àrea
viveis supervision trival tutoria zanhoria vivia vivian vivisite
vuitre tradicion volutario varon zero volvere tuvé vistitado virnes ví
vendria ...]) "") abbrev-table-get(([de\ usar 0 0 en\ la\ mayor\
brevedad\ posible de\ la\ entrega 0 en\ la\ siguiente\ manera los\
prácticas\ 0 hola\ salva a\ final 0 0 0 0 los\ funciones 0 0 0 0 0 0
hola\ gabriel a\ penas de\ comprometerme\ de\ darte 0 0 0 0 hola\ raúl
posibilidad\ hacerlo 0 0 0 hola\ alicia 0 0 los\ siguientes\ cosas 0 0
0 los\ siguientes\ posibilidades les\ ruego\ aclararme en\ internet
los\ manos 0 0 0 0 lamento\ que\ me\ has\ encontrado ...] [áfrica
vacio votacion utlidad volutarios útlies vistemos vicino terero
vacuana áfin vostros util vostotros vistido veronica varibilidad
vienieras varidad traquilidad veniste tristesa verifca venieron
victimas volvia traduccir volutaria vecorial virtualizar àrea viveis
supervision trival tutoria zanhoria vivia vivian vivisite vuitre
tradicion volutario varon zero volvere tuvé vistitado virnes ví
vendria ...]) :abbrev-table-modiff) define-abbrev(([de\ usar 0 0 en\
la\ mayor\ brevedad\ posible de\ la\ entrega 0 en\ la\ siguiente\
manera los\ prácticas\ 0 hola\ salva a\ final 0 0 0 0 los\ funciones 0
0 0 0 0 0 hola\ gabriel a\ penas de\ comprometerme\ de\ darte 0 0 0 0
hola\ raúl posibilidad\ hacerlo 0 0 0 hola\ alicia 0 0 los\
siguientes\ cosas 0 0 0 los\ siguientes\ posibilidades les\ ruego\
aclararme en\ internet los\ manos 0 0 0 0 lamento\ que\ me\ has\
encontrado ...] [áfrica vacio votacion utlidad volutarios útlies
vistemos vicino terero vacuana áfin vostros util vostotros vistido
veronica varibilidad vienieras varidad traquilidad veniste tristesa
verifca venieron victimas volvia traduccir volutaria vecorial
virtualizar àrea viveis supervision trival tutoria zanhoria vivia
vivian vivisite vuitre tradicion volutario varon zero volvere tuvé
vistitado virnes ví vendria ...]) "cuando antes" "cuanto antes")
ediff-define-abbrev() funcall-interactively(ediff-define-abbrev)
call-interactively(ediff-define-abbrev nil nil)
command-execute(ediff-define-abbrev)
smime.p7s
Description: S/MIME cryptographic signature
- Re: did the abbrev mechanism ever expand «two words» to «two different words»., (continued)
- Re: did the abbrev mechanism ever expand «two words» to «two different words»., Robert Pluim, 2021/01/08
- Re: did the abbrev mechanism ever expand «two words» to «two different words»., Uwe Brauer, 2021/01/08
- Re: did the abbrev mechanism ever expand «two words» to «two different words»., Robert Pluim, 2021/01/08
- Re: did the abbrev mechanism ever expand «two words» to «two different words»., Uwe Brauer, 2021/01/08
- Re: did the abbrev mechanism ever expand «two words» to «two different words»., Stefan Monnier, 2021/01/08
- Re: did the abbrev mechanism ever expand «two words» to «two different words»., Uwe Brauer, 2021/01/08
- Re: did the abbrev mechanism ever expand «two words» to «two different words»., Eric S Fraga, 2021/01/09
- Re: did the abbrev mechanism ever expand «two words» to «two different words»., Uwe Brauer, 2021/01/09
- [BUG? write-abbrev-file destroys this construction] (was: did the abbrev mechanism ever expand «two words» to «two different words».), Uwe Brauer, 2021/01/09
Re: did the abbrev mechanism ever expand «two words» to «two different words»., Richard Stallman, 2021/01/09
- [adding abbrev using two-word-expansions] (was: did the abbrev mechanism ever expand «two words» to «two different words».),
Uwe Brauer <=