From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 8922 invoked from network); 24 May 2021 20:02:03 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 24 May 2021 20:02:03 -0000 Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1llGm1-006C1b-MF for ml@inbox.vuxu.org; Mon, 24 May 2021 15:02:01 -0500 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.94) (envelope-from ) id 1llGm1-00G6ye-2N for ml@inbox.vuxu.org; Mon, 24 May 2021 15:02:01 -0500 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1llGm0-00G6yZ-3m for ding@lists.math.uh.edu; Mon, 24 May 2021 15:02:00 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1llGlw-0054df-6t for ding@lists.math.uh.edu; Mon, 24 May 2021 15:01:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:Mime-Version:References:Message-ID:Date:Subject: From:To:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=2wrhF9oBl2c/cVxt/bMEjDEOxP0Y9M+lHW4k3oMP9gk=; b=PjDzV5lrtbNbw2Do+2Aqz5Sxjy Lg6Sd51/zZU5sFuOuVeCnH87D+usIfMV3dsAEF47p+Plouk2OsFVijB2YzsoZVl+dYTgp9FG/yH9t OgOXF4tvJCsRPGNAVz9wZnFL3oO6JprO8TwMWyTvnqy/bF9RdcIAK7M3cgh0+KEm2HTk=; Received: from ciao.gmane.io ([116.202.254.214]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1llGlp-00051y-OM for ding@gnus.org; Mon, 24 May 2021 22:01:52 +0200 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1llGlo-0008yX-Gq for ding@gnus.org; Mon, 24 May 2021 22:01:48 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: ding@gnus.org From: Eric Abrahamsen Subject: Re: my attach this buffer Date: Mon, 24 May 2021 13:01:42 -0700 Message-ID: <871r9vq4t5.fsf@ericabrahamsen.net> References: <87fsyen0oz.fsf@mat.ucm.es> <87lf86ver1.fsf@dick> <87zgwmk5pv.fsf@mat.ucm.es> <87k0nqr21q.fsf@ericabrahamsen.net> <87lf859mz9.fsf@mat.ucm.es> <87h7itxhwf.fsf@zoho.eu> <87mtsk8x0o.fsf@mat.ucm.es> <875yz81uld.fsf@zoho.eu> <878s448l29.fsf@mat.ucm.es> <875yz8ouiw.fsf@ericabrahamsen.net> <877djnlxgs.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cancel-Lock: sha1:kH79mXqMC6BKELQ9kCVIcrQa3pE= List-ID: Precedence: bulk Uwe Brauer writes: >>>> "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 > > syms x(t) > Dx = diff(x); > dsolve(diff(Dx) == exp(-x^2), Dx(0) == 1) > > > > That is however not done automatically and I presume that is what you > mean. Yes. If you want it to guess correctly you'll have to override the ".m" entry in `mailcap-mime-extensions'.