Emacs function c-forward-sws: Invalid type argument: stringp, nil

I get this error in emacs whenever I print anything in specific buffers:

c-forward-sws: invalid argument of type: stringp, nil

This seems to be syntax highlighting; I get it in the buffer, which is in sh-mode whenever I type anything - even return to an empty line. I also sometimes got it in the C ++ - mode buffer, but I don’t remember the specific line and cannot play it in that mode.

I have not changed my .emacs lately (which I can remember).

Any ideas what the problem is? The function is defined in cc-engine.el, but it's hard for me to define the context.

+3
source share
2 answers

, auto-fill-mode on, auto-fill-function - c-do-auto-fill, . (M-x auto-fill-mode), .

auto-fill-mode M-x debug-on-entry RET auto-fill-mode , . , , , .

[]

, auto-fill-function ( -). . , , (setq-default auto-fill-function nil).

+3

, . , , ( ).

, , debug-on-error t. ( , ).

, , (M-x find-function c-forward-sws RET) M-x edebug-defun. , , . , lisp, .

, , , , , , ...

+4

Source: https://habr.com/ru/post/1728462/


All Articles