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 21577 invoked from network); 27 Jan 2022 11:32:20 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 27 Jan 2022 11:32:20 -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.2) (envelope-from ) id 1nD30g-003Fq3-Fw for ml@inbox.vuxu.org; Thu, 27 Jan 2022 05:32:14 -0600 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.94.2) (envelope-from ) id 1nD30e-003aFu-K8 for ml@inbox.vuxu.org; Thu, 27 Jan 2022 05:32:12 -0600 Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtp (Exim 4.94.2) (envelope-from ) id 1nD30d-003aFn-GI for ding@lists.math.uh.edu; Thu, 27 Jan 2022 05:32:11 -0600 Received: from quimby.gnus.org ([95.216.78.240]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nD2yd-003For-2n for ding@lists.math.uh.edu; Thu, 27 Jan 2022 05:32:10 -0600 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=HuR+9yvMKu7j6eySKBVeMQ1UMrehG8sSyMDDSJFL33U=; b=LycP8HdwN3rUuTbSRDj5RtXW3l R5S7KB1CN3u89LHqOkQpvkNHgL6mBp5FnV/7O8zvGJf+9FrjJ/zFhjlGaHMVpL5ahdovwo9qmkQrK BApKQjFR5jwCb3BPFzz1h8PYVGbmQ1vOCviPYB7tmR2rvsNnbNaIzfzJHBkyenxG1F04=; 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 1nD2yU-00059Y-Pu for ding@gnus.org; Thu, 27 Jan 2022 12:30:01 +0100 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nD2yS-00048k-Qw for ding@gnus.org; Thu, 27 Jan 2022 12:29:56 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org To: ding@gnus.org From: Emanuel Berg Subject: Re: message-beginning-of-line behaves a bit strange Date: Thu, 27 Jan 2022 12:29:49 +0100 Message-ID: <8735l9ifgy.fsf@zoho.eu> References: <87mtjimc2k.fsf@mat.ucm.es> <874k5qyyq4.fsf@zoho.eu> <87ilu5liwq.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cancel-Lock: sha1:X/hpsre1TuzHaJZOjQfkfCIMD+A= Mail-Copies-To: never List-ID: Precedence: bulk Uwe Brauer wrote: > Thanks, so I did > > (defun my-add-subject-test2 () > (interactive) > (message-goto-subject) > (message-bol) > (insert "[Test]2 ")) > > (defun message-bol () > (interactive) > (let ((beg (point)) > (end (progn (message-beginning-of-line) (point))) ) > (when (= beg end) > (forward-line 0) ))) > > But this did not work for an empty subject line, while > Eric's suggestion does. No one suggested it should be used like that either ... -- underground experts united https://dataswamp.org/~incal