From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Fleischer Newsgroups: gmane.emacs.help Subject: Re: how to delete unwanted space with a function or macro Date: Sat, 08 Jan 2022 13:04:10 +0200 Message-ID: References: <87iluuirow.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31599"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 08 12:04:53 2022 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 1n69Wm-00081n-QP for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 08 Jan 2022 12:04:52 +0100 Original-Received: from localhost ([::1]:51276 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n69Wl-0003kB-RJ for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 08 Jan 2022 06:04:51 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37044) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n69WC-0003k2-CP for help-gnu-emacs@gnu.org; Sat, 08 Jan 2022 06:04:16 -0500 Original-Received: from [2a00:1450:4864:20::332] (port=46882 helo=mail-wm1-x332.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n69WA-0007IF-VA for help-gnu-emacs@gnu.org; Sat, 08 Jan 2022 06:04:16 -0500 Original-Received: by mail-wm1-x332.google.com with SMTP id d187-20020a1c1dc4000000b003474b4b7ebcso3642154wmd.5 for ; Sat, 08 Jan 2022 03:04:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version; bh=CTBiKqy9oXBU2HN//UXaznBY3EI3vRfugbCk8KGJEPw=; b=YHhBaO4v4i2zlsASJFrR1CVwmyhZ0RYp2Wu4J/ezLyNd007Ac12dt1EsMmk2TRxSTu UBCheNJeh9k2W5KEqBIq+mo61uRWbz3IhtGzyF+TCgpmQR9YTe/6eVNdcdJHqb5mTYbf oQMUaQneENLnRcPqqdmFpCYY6uUT8d1wO+NNvnv1Jay8NDqj6o1CwqrfBe8e7kv4E7ZU kHwBJS3uLroixHzQhS4YzagML3UBLHvgkN8858oCyrIU4idfnrflxxZtaYhgoStOpQ0X 2nNBzfD1JwMCB5qvl7t2sPbe86Z95r0I2NC/z3oqO9si0A0LlqsXEWjsE9Hq3TlMl3+c +75A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=CTBiKqy9oXBU2HN//UXaznBY3EI3vRfugbCk8KGJEPw=; b=ZlwPOR+0dTmgLfD16h3NbDqMl5gA3JMRUQdbPfRGhWFvDT9jwvqmRPsPKicT1QpJaU 02QbvKaRihfs58XgTLBIDy9/AKELGihX1E5QTjqkNNA1fkFTr21rrLloejrICCgxMf7+ my/Kcn0pB6cVsfilR9ekHzVEmgL0wPHBKBKP9uaU1ACmiP3hW+i2XzY2aCuGhqolNngj FnvRptpErpPhL+NTn0UbCGpClam+oiJKLD1zCFfdGdNkXfooCwd2I6a5BJpSalhT4ILc cA5EH1usQHMqNyb0e7+xNNBwM0oacpY5aVG81rAF3uygsZwL2SZX9xBzRMQKo3nWw9nw jzQw== X-Gm-Message-State: AOAM533CogXBEgf0mCrWkpmbl/bT9A0jjc4wkR0UElfvpjD9OLha/nLl GGS72YXq+tRF8nJx6m9T+skUzfGhCeWOPw== X-Google-Smtp-Source: ABdhPJwMKveQHDYhd11rgopgBuo/sg+0YCjVScf5Qi91PLmPYo8jDes8VcZwsiBn7B9wgmLUmCpOzw== X-Received: by 2002:a1c:4c19:: with SMTP id z25mr1015367wmf.81.1641639852974; Sat, 08 Jan 2022 03:04:12 -0800 (PST) Original-Received: from Home-Mac ([94.230.83.209]) by smtp.gmail.com with ESMTPSA id f13sm1419105wri.51.2022.01.08.03.04.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Jan 2022 03:04:12 -0800 (PST) In-Reply-To: <87iluuirow.fsf@mat.ucm.es> (Uwe Brauer's message of "Sat, 08 Jan 2022 08:59:11 +0100") X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::332 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=danflscr@gmail.com; helo=mail-wm1-x332.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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" Xref: news.gmane.io gmane.emacs.help:135128 Archived-At: Uwe Brauer writes: > It has a lot of unwanted space as in \(e^{a t}\) how can I delete this > space in a convient way, whitespace-cleanup for example ignores this > space. Any ideas? Maybe using regex replace using \( \)\{2,\} which means 2 or more consecutive spaces; replace that with 2 spaces. -- Daniel Fleischer