From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: tpeplt Newsgroups: gmane.emacs.help Subject: Re: delete all whitespace (space) in a region Date: Thu, 09 Nov 2023 10:58:31 -0500 Message-ID: <87msvm536g.fsf@gmail.com> References: <878r78jfms.fsf@mat.ucm.es> <874jhwhx9i.fsf@ledu-giraud.fr> <87zfzn4qa2.fsf@gmail.com> <871qcz2u5e.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16195"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.3 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 09 16:59:12 2023 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 1r17R1-00042F-Ua for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 09 Nov 2023 16:59:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r17QS-00034x-Ds; Thu, 09 Nov 2023 10:58:36 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r17QR-00034m-CS for help-gnu-emacs@gnu.org; Thu, 09 Nov 2023 10:58:35 -0500 Original-Received: from mail-qv1-xf2f.google.com ([2607:f8b0:4864:20::f2f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r17QP-0000I6-PN for help-gnu-emacs@gnu.org; Thu, 09 Nov 2023 10:58:35 -0500 Original-Received: by mail-qv1-xf2f.google.com with SMTP id 6a1803df08f44-66d264e67d8so6067276d6.1 for ; Thu, 09 Nov 2023 07:58:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699545512; x=1700150312; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:to:from:from:to:cc:subject:date :message-id:reply-to; bh=BGeFyV8K0NI/1G0o3kPuG0fKToIJL59EcyQc9jRKCFU=; b=lSA1MAMwEE+cbEr3B0duchpP1NHQYS9U75LKgwGziRPqMDQXOAUlzffoArdR2OzXKq mesXwRu32DY9IZElpRD46jEH0BR2UMJl71zl0mwywWFb4LWaAjr2S4ZfK94JSrMVwn7k caR9JVYJ/R0R9FKH9D7Z/8b/CivpwLoLHy6pACTWuQ2rvL4UwuTlIG5uHZKKzKrA604u D/JGbmskr+El0kDF0cLil+myAFc+zLLgRm14xhfzdKezTGQczdwoO1C/pM+2T3lbG5w6 iQKxzXpqBhWGbU6p67qwAwlXR/xFkiMx1OWkJdvgC5GUO1durwNdd1SsDJfvEXMI7Mcf PNwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699545512; x=1700150312; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=BGeFyV8K0NI/1G0o3kPuG0fKToIJL59EcyQc9jRKCFU=; b=e2OY2IK9jGxscvyMOFhjBZ/R3CKB5k91XqCod5AxOw8Wc9jCd/N1JDxVA9Dj95VuMy P1KUOcCvosI5vOLNhMs2m3WwTo+GLig3/MoQoXJMEFMcRPC2cmWu9aVY3BvSyVvYc/Tb nPx6W1qUR/tOb+GUQZAjOpN8WuQ1I5Q1Ew8GuxOK+t8BBPZb0Ck85Oey3GhHpB1OaoVx uo5lv7zZSc4ogPumeuGC8YKiipPpfSYK8Vc3pwWJ/TTSPVCDyRAbnN5n88UQSO90bR3P hCes/JzHkutURSiePsIkJCypJFm+NZJuJmA1adtIdzqvYwpKOnGDtad0oqHg6cpZHLsH /8PQ== X-Gm-Message-State: AOJu0YxRGpwuYsHV5OOmRHENq16L6ThzjTyV1AseEfksMnKLgtRIbv6K 4AOqRr97VWUTI49DDhsqjOo= X-Google-Smtp-Source: AGHT+IFx23RCxh1pyir3XoVIkeYGN6oi9WI/eEb7qaYOl0/UO9vhWml2Qmtq2uE3Va2ln05JaklQPw== X-Received: by 2002:a05:6214:2401:b0:66f:baa4:77b0 with SMTP id fv1-20020a056214240100b0066fbaa477b0mr6253564qvb.8.1699545512546; Thu, 09 Nov 2023 07:58:32 -0800 (PST) Original-Received: from t530.local ([2600:8806:a821:2b00::a8f4]) by smtp.gmail.com with ESMTPSA id df8-20020a056214080800b0065b0771f2edsm2184938qvb.136.2023.11.09.07.58.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Nov 2023 07:58:32 -0800 (PST) In-Reply-To: <871qcz2u5e.fsf@mat.ucm.es> (Uwe Brauer's message of "Thu, 09 Nov 2023 09:44:13 +0100") Received-SPF: pass client-ip=2607:f8b0:4864:20::f2f; envelope-from=tpeplt@gmail.com; helo=mail-qv1-xf2f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:145474 Archived-At: Uwe Brauer writes: > >> Emacs 28 added the function =E2=80=98replace-string-in-region=E2=80=99. > >> (defun my-delete-all-whitespace-region (beg end) >> (interactive "r") >> (save-excursion >> (replace-string-in-region " " "" beg end))) > > Ah, thanks, I did not know that If you want to see more of what has been added, see the NEWS file by typing C-h n. Unfortunately, this file (for Emacs 28) is large (4000 lines) and the new function above is not mentioned until line 3540. A new feature that was added Emacs 28 is the =E2=80=98shortdoc-display-grou= p=E2=80=99. Type: M-x shortdoc-display-group to see a list of the groups for which shortdoc help is available. These are only a subset of the functions that are available in Emacs. Type: M-x shortdoc-display-group and then type "buffer" (no quotes) in response to the prompt: Show summary for functions in: buffer This will then list brief help/descriptions for many buffer-related functions in a =E2=80=98shortdoc=E2=80=99 buffer, including =E2=80=98replac= e-string-in-region=E2=80=99. --