From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: Need to know how to goto-column Date: Thu, 03 Dec 2020 15:33:52 +0100 Message-ID: <87r1o7c627.fsf@fastmail.fm> References: <20201203114617.GF7554@tuxteam.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10766"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.7; emacs 27.1.50 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 03 15:34:44 2020 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 1kkpgx-0002fQ-Sv for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 03 Dec 2020 15:34:43 +0100 Original-Received: from localhost ([::1]:49456 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkpgw-0003Gi-Tj for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 03 Dec 2020 09:34:42 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39800) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkpgM-0003FB-FQ for help-gnu-emacs@gnu.org; Thu, 03 Dec 2020 09:34:06 -0500 Original-Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:51759) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkpgF-0000T4-J8 for help-gnu-emacs@gnu.org; Thu, 03 Dec 2020 09:34:05 -0500 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id DF4ECA24 for ; Thu, 3 Dec 2020 09:33:57 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 03 Dec 2020 09:33:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= references:from:to:subject:in-reply-to:date:message-id :mime-version:content-type; s=fm1; bh=swJeQM+jBHORMKujnwckYDcZ/a oB+CckwAyiZu6u4YE=; b=c1IojSdpvdPf8JqaBi3l8Bbyd+VP/AZ/XdK1TgZDyt YynvLLe8QPjrBWaZ02wtymq29YOKl1gyZOcTyIBj/Db9A20FAeuHg28Jd28/o0Au oRshCWnUbGxnQxkzbugklux1FuuITCj5LQU/KbdeAEnuNZpmA2E3s6i+Su0yl/MN 48e8lBSDER/iFetG7ORwKbEliusFmoU5KVUbBdqHnoMwOBQgrZ3SD5AvJqpuxiCQ +pr2pJxwNjocSY+5ClagBpRK2qNFdKTZ3jH+XDW7QLSWsIlLQIvqBsqWWxcppvmB KxGzpVqSeNoy3Ng8RB/U7DgMfblec6Tvppq3Yu6fNXIA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=swJeQM +jBHORMKujnwckYDcZ/aoB+CckwAyiZu6u4YE=; b=qzepYysGNZrGBO46vumGgz Pj2ABvcyTc+ftgGWftN3+Urw/k89pmkIdW2XOWuCIGSJRseEKOul/1uYbMEK8u5h QwN3PvExjU6+BO0quNNH+FKx0pyPXgujL10QUlC2RMAGh4MkA7d+TVJWEttgnGOc kFzA3Dh8Kj80ycMxt38xJ0KnXEP9rr8u2nhNCD4la9ZyWW3b8Yn8Djbn0OapjU5F l3wa2NJWukFPt0vuYV1a+tppRu0/EXDXz4lA72fHoFn7ABSq9s8hLqyC5URXwOBC g/06D+rGIOGRr7OBdeyj0wcl91kagVzHlcL59g8hC0bFUrrTEfRwI7bT5v6JEk0w == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudeiiedgieeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpehffgfhvffujgffkfggtgesthdtre dttdertdenucfhrhhomheplfhoohhsthcumfhrvghmvghrshcuoehjohhoshhtkhhrvghm vghrshesfhgrshhtmhgrihhlrdhfmheqnecuggftrfgrthhtvghrnhephfduffeuhfdule fhgfelueekgeduveettdduudfhfeetueegvdevtdduudfgffefnecukfhppeelhedrledt rddvvdegrddvtddtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepjhhoohhsthhkrhgvmhgvrhhssehfrghsthhmrghilhdrfhhm X-ME-Proxy: Original-Received: from Swift.fastmail.com (ip5f5ae0c8.dynamic.kabel-deutschland.de [95.90.224.200]) by mail.messagingengine.com (Postfix) with ESMTPA id D2064240059 for ; Thu, 3 Dec 2020 09:33:56 -0500 (EST) In-reply-to: Received-SPF: pass client-ip=64.147.123.21; envelope-from=joostkremers@fastmail.fm; helo=wout5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.help:125894 Archived-At: On Thu, Dec 03 2020, Jean Louis wrote: > * tomas@tuxteam.de [2020-12-03 14:46]: >> On Thu, Dec 03, 2020 at 02:20:31PM +0300, Jean Louis wrote: >> > I would like to use function goto-column but it is not there. >> > >> > Somebody knows how can I move cursor to specific column? >> >> move-to-column > > That works, especiall with > > (move-to-column column t) to go to column even if there are no spaces. > > I am trying to construct ordered display of various items. Maybe I > should use skeleton for that. I have 2 columns and in first one > sometimes, sometimes not, appear various properties, in second one > sometimes, sometimes not appear various properties. But in any case I > want them aligned. > > If anybody knows what is usually used in Emacs to align text, may let me know. There is `tabulated-list-mode`, which may be of use. There is also the function `truncate-string-to-width`, in case `tabulated-list-mode` is too high-level for your purpose. -- Joost Kremers Life has its moments