1

Emacs 26.1 Every time when I start shell I get the next message:

enter image description here

How I can disable this message?

  • 1
    The picture you show answers the question, so please explain which part of that answer you don't understand. Also, as mentioned in that same message, you should report this bug (via M-x report-emacs-bug). – Stefan Nov 1 '18 at 14:43
2

To suppress the warning first make sure the warnings library is loaded by entering M-x load-library RET warnings RET.

Then add the listed option to warning-suppress-types. Load the customization interface by entering M-x customize-option RET warning-suppress-types RET. Add a new top-level list-item by pressing the top-most INS button, then add two nested items by twice pressing INS inside the new item. Enter undo in the first nested item, and discard-info in the second. Finally, press the Apply and Save button.

This should add something like the following to your init.el file:

(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(warning-suppress-types (quote ((undo discard-info)))))
  • It would be nice if the INS buttons more clearly marked (or background colored) to show what they do. – NetMage Feb 6 at 18:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.