Thanks, Juan Manuel.

These are my variables, it keeps changing what I have already written:

'(case-replace nil)

 '(dabbrev-case-distinction t)
 '(dabbrev-case-fold-search t)
 '(dabbrev-case-replace t)
 '(dabbrev-upcase-means-case-search nil)

Best regards,

Ypo

El 15/05/2022 a las 0:32, Juan Manuel Macías escribió:
Ypo writes:

Hi

I find dabbrev and fancy-dabbrev very useful to typing fast. But there
is a problem I am not able to solve: When I apply an expansion while
writing, the case is always that of the expansion, I can't make it to
respect what I have written. An example:

— (Typing) "Hel

— (Offered expansion) "hello"

— (What I get when accepting the expansion) "hello"

— (What I wanted) "Hello"

Best regards,

Ypo

Take a look at these variables. I have them configured as non-nil:

(setq dabbrev-case-replace t)

(setq dabbrev-case-fold-search t)

Best regards,

Juan Manuel