From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: gmane.emacs.help Subject: Re: Is it possible to move a column where column on right is variable width Date: Wed, 17 May 2017 03:05:01 +0100 Organization: A noiseless patient Spider Message-ID: <87k25g2q7m.fsf@bsb.me.uk> References: <0b6f7632-f4c0-47c9-b3fb-b5d554c358c1@googlegroups.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1494986746 7046 195.159.176.226 (17 May 2017 02:05:46 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 17 May 2017 02:05:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 17 04:05:40 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dAoLL-0001hZ-Fz for geh-help-gnu-emacs@m.gmane.org; Wed, 17 May 2017 04:05:39 +0200 Original-Received: from localhost ([::1]:45048 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dAoLP-0008UX-CJ for geh-help-gnu-emacs@m.gmane.org; Tue, 16 May 2017 22:05:43 -0400 Original-Path: usenet.stanford.edu!panix!bloom-beacon.mit.edu!bloom-beacon.mit.edu!168.235.88.217.MISMATCH!2.us.feeder.erje.net!feeder.erje.net!2.eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Original-Injection-Info: mx02.eternal-september.org; posting-host="4e7d28852d429a5cbf7e8dc5646d3022"; logging-data="19463"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ThqriPPfrm3ugOMDpD71An95YLjzEnvE=" Cancel-Lock: sha1:HnRfKhQ++3MmZA4Gt2ieVKshH+8= sha1:HG74gXRvi6IvWoeCvOTFhhRNDqE= X-BSB-Auth: 1.3735748d62a10e4f5b45.20170517030501BST.87k25g2q7m.fsf@bsb.me.uk Original-Xref: usenet.stanford.edu gnu.emacs.help:219120 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:113045 Archived-At: Angus Comber writes: > I downloaded a file, LSE.txt from this link: > > http://www.eoddata.com/Data/symbollist.aspx?e=LSE > > which is of the form: > > symbolDescription > > the description is pretty free form. Here are some examples: > > 06GG.L BARCLAYS BANK PLC UNDATED FLTG RATE PRIM CAP NOTES'2'USD > 06GL.L NATIONAL GRID GAS 8.75% BDS 27/6/25 GBP(VAR) > 07OZ.L HAMMERSON PLC 6.875% BDS 31/3/20 GBP(VAR) > > What I would like to do is swap so it displays: > DescriptionSymbol. It would help to show the output you want. > I tried using rectangles, eg: This would be the method of choice if you want the symbols to be lined up. If "DescriptionSymbol" means you want one tab character between the two, use a regex replace: M-x replace-regexp RET \(.*\) \(.*\)RET \2 \1RET (I typed a tab between ) and \ and 2 and \ but it might get mauled by some part of the mail sending) -- Ben.