From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Non file buffers and default-directory Date: Sun, 23 Apr 2023 16:01:16 +0300 Message-ID: <83fs8qzrab.fsf@gnu.org> References: <87edohf3ip.fsf@ledu-giraud.fr> <87zg745p85.fsf@gmx.de> <87y1moe1aa.fsf@ledu-giraud.fr> <87v8hr6gvl.fsf@gmx.de> <874jpa611r.fsf@ledu-giraud.fr> <87v8hprb5w.fsf@mbork.pl> <87zg714qb8.fsf@gmx.de> <87pm7xplz3.fsf@ledu-giraud.fr> <87r0sc4cmv.fsf@gmx.de> <87ttx810mz.fsf@ledu-giraud.fr> <831qkb27st.fsf@gnu.org> <87pm7v256a.fsf@univ-nantes.fr> <87cz3vukop.fsf@gmx.de> <83leijyrb2.fsf@gnu.org> <87pm7u95yf.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17004"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 23 15:01:26 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pqZLK-0004G1-QK for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 23 Apr 2023 15:01:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pqZKx-0002eF-86; Sun, 23 Apr 2023 09:01:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pqZKv-0002e7-My for help-gnu-emacs@gnu.org; Sun, 23 Apr 2023 09:01:01 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pqZKp-0003Ks-Bp for help-gnu-emacs@gnu.org; Sun, 23 Apr 2023 09:01:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=X89E535RGp+etNuSjtmyo8DuwPfK2oiioKV2yguQsuc=; b=HpIVxu4dvoMf OHjI8LWF+EQ4WRJyGP/ImFGXhNDjpAGtsm+hskGZgEQXIeyKua/Va3OO34+njWyZ9yIxb9g57bG3Z 5vUfDXEY+Up5DzPzA/EpaExPN0898+Vy1tse0fjrLoww5SWngTgfxbKbTaWSmZWLx0TukAX3yvGui Vsg8HVuqj3xuS9ohvTaHuxfL1qFUKTX1NqKBOFLTGZVSQBTn2DCmW7D710q3rg77h9R0arejQp8Sy 8Hgv6Bedz3w44iqIfDwh/Z4hYvzni3Ues2QsGWduzc3P8OqLpBYUzOH8yVWbuhz6fKnOu8oXyIKjm ArZBN8IgyeaqoQKDjlxuKw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pqZKo-0006j7-I6 for help-gnu-emacs@gnu.org; Sun, 23 Apr 2023 09:00:55 -0400 In-Reply-To: <87pm7u95yf.fsf@gnu.org> (message from Manuel Giraud on Sun, 23 Apr 2023 13:46:32 +0200) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:143346 Archived-At: > From: Manuel Giraud > Cc: help-gnu-emacs@gnu.org > Date: Sun, 23 Apr 2023 13:46:32 +0200 > > FTR, I've tried the following: > --8<---------------cut here---------------start------------->8--- > (defun my-send-mail-function () > (make-thread #'smtpmail-send-it)) > > (setq send-mail-function 'my-send-mail-function) > --8<---------------cut here---------------end--------------->8--- > > This seems to work but I guess that you were thinking of something else. "Work" in what sense? Were you able to do something in Emacs while the mail was being sent? What happens if the send fails for some reason? And how fast is it sent in your case, so that the "work" part could be evaluated in real-life conditions, when sending takes some time? For example, what happens if you try to send a message with a very large attachment?