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 2691 invoked from network); 26 Jan 2022 21:27:43 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 26 Jan 2022 21:27:43 -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 1nCppN-002oNS-Im for ml@inbox.vuxu.org; Wed, 26 Jan 2022 15:27:41 -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 1nCppM-003YVi-S3 for ml@inbox.vuxu.org; Wed, 26 Jan 2022 15:27:40 -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 1nCppM-003YVc-1k for ding@lists.math.uh.edu; Wed, 26 Jan 2022 15:27:40 -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 1nCppH-002oN9-FF for ding@lists.math.uh.edu; Wed, 26 Jan 2022 15:27:39 -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=tv/EByTctuEyp+lUqRueUEyIEHx3/JKrvw7WWDw8C6Y=; b=bieF96+NOZnQK7zCjFQxABIQlQ ZToEEfZng4W/HVKzA9qZ6HA/0/3AxNZo5BrqUN9m3dz2JnNnDhLZ1fqycZRCOfPCOMs41mrOrB4iB Zr8O+5AIp7E/ENNko8ICpvbI6dgSIGcX1VntEnMvY4mNFtm9FtkIbOwhqi1JSanIqWdU=; 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 1nCpp8-0006PK-EX for ding@gnus.org; Wed, 26 Jan 2022 22:27:30 +0100 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nCpp6-00049d-JI for ding@gnus.org; Wed, 26 Jan 2022 22:27:24 +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: Wed, 26 Jan 2022 22:27:15 +0100 Message-ID: <874k5qyyq4.fsf@zoho.eu> References: <87mtjimc2k.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:rtJls4qlMBQgZGlFaSqt6G+2JGI= Mail-Copies-To: never List-ID: Precedence: bulk Uwe Brauer wrote: > Which is not good. Is there any possibility to have > message-beginning-of-line always to jump to > Subject: > ^ This Subject: An offer you can't refuse ... ^ is what happens I think? That's not what you want? I have this, what you ask for happens by default, but if point didn't change, the user meant something else so it moves to the beginning of the line instead, disregarding the `message-mode' and header context. (defun message-bol () (interactive) (let ((beg (point)) (end (progn (message-beginning-of-line) (point))) ) (when (= beg end) (forward-line 0) ))) -- underground experts united https://dataswamp.org/~incal