>>> "EA" == Eric Abrahamsen writes: > Uwe Brauer writes: >>> Uwe Brauer wrote: >> >>> It works here what I can see, e.g. in/from mail.el you get >> >>> < #part type="application/emacs-lisp" >>> buffer="/home/incal/.emacs.d/emacs-init/gnus/mail.el"> >> >> >> This works, what I am saying is: you take a matlab file, extension.m >> and apply the function mail-attach-buffer >> >> This particular type is not recognised for me (using emacs28 master) > The heuristics are stored in `mailcap-mime-extensions', which currently > doesn't have anything for matlab (and thinks "*.m" is > "application/vnd.wolfram.mathematica.package". You can manipulate that > variable as needed. Hm 1. I use gnus-summary-post-news 2. I call mml-attach-file 3. I select a matlab file and then I am asked for the file type 4. And I can select text/x-matlab Like this