From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.help Subject: Re: Replace filename from compilation buffer errors Date: Fri, 29 Nov 2024 12:14:54 +0100 Message-ID: <87jzcmfg0h.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25053"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Filippo Argiolas Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 29 12:15:37 2024 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 1tGyyG-0006KJ-30 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 29 Nov 2024 12:15:36 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tGyxk-000522-IJ; Fri, 29 Nov 2024 06:15:04 -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 1tGyxi-00050f-BT for help-gnu-emacs@gnu.org; Fri, 29 Nov 2024 06:15:02 -0500 Original-Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tGyxf-0001ud-1c for help-gnu-emacs@gnu.org; Fri, 29 Nov 2024 06:15:01 -0500 Original-Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-385de59c1a0so575560f8f.2 for ; Fri, 29 Nov 2024 03:14:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732878896; x=1733483696; darn=gnu.org; h=mime-version:message-id:date:gmane-reply-to-list:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=A1zx5twg8nmggW3cv9F4EwHQ1hgh8WY6ycECUg8tkpI=; b=JehuWowrcbvaa4HxSkgY2KC3UFXO0JXvz5qipQDmMwjsC57+TA9B384kzqAGqkS/tL eDKvs+fnS+7F32BR66wfYQONE5Hu66VJmnk1XP9pNzOYQg5PntqDRsIUN7z+/Wkqd9B5 GZxt64tp3q572Z1i0r5n9gAJ7xFPWDx0qp/VVOFyvywCCapHBy6PH2T/8wojbDlQdB2k gHqy/tHoe6J5CpqsoesVFpUFjXr9JT+lo68xbUnB/t3AKsEeCWmQhiuHNc+Uy2W3HA9v 6tfGmfK9+8lZGQOAKNO0h0k+rxK4ymMQJILTbEo8Rw3CtLU0RfHwxvXbhJgZG+1UURoX Js5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732878896; x=1733483696; h=mime-version:message-id:date:gmane-reply-to-list:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=A1zx5twg8nmggW3cv9F4EwHQ1hgh8WY6ycECUg8tkpI=; b=StWa0Y1F1D+v557tYXYoyb9kOOGy1WvXhc1CGSmzmhYXLM1d/W3gww6fXtge8RR61S 6LeEK/J1a0iqY0bnb/bQYzpvtZgUSkOa4KljtYuN5ncfVDBYkrxh4HpvtvAJwEpYaVya 7Exm9m8VIoEcXEpK6rrANDHeLmlgkytzwbiCxdJoT8RjQTMIqlz+nadxP/4YK8sCMw43 da1tP6yklizEdgD+MUUGyLnwgo6+g1hHjjsoihA/d+Xz7lwL7X7b/ZeHW3mu+7Myrgos ZimgzyhVQXet4L/IJcHSPDiGyINQ8ItxW6adK4Hd1U56dfWSyWdd7Yzah6qhlLDq/rZm 6QvA== X-Gm-Message-State: AOJu0Ywsa3rn6697BKZRlp64Gz4gJBEY7Z2bmHhqUro/wvDYmi2Roep7 9lPOPxJs5or2x6+w+WuivGOxhHKvinguf6HbdGLGCDsPR+6nxTnVZrL1Gg== X-Gm-Gg: ASbGncvFxwZeFrkV0jNDOINwGnajnqhe0zR0fV3VKrvwdlmYrHjVv8dNK5XSdeHZpXI 1qiq6rC/hQCH34K9Ib9zhXW168iIX1UFjUseGsoSNTOlz3MIsUa82BdQ5stBR99HEXb8w0N9K/T XPItIsIBxFLxlCUe69Q/V7fzN7jug6eWAJyEJW6+Z7WTInCb3IZx863K0voL+r+ICoGJAXz1Cyh b1+EdTkJsFFKq2MU/7I9OuQmXD6PnOjZvdkVg== X-Google-Smtp-Source: AGHT+IFAJvVCQBoAQRlF4hmyMNe3Bvkm87bngNzajqxrljsP3LJg5i2Y6JpKnA6DbWuPYMchRCWuTg== X-Received: by 2002:a5d:6481:0:b0:385:df4e:366f with SMTP id ffacd0b85a97d-385df4e3bdfmr1703402f8f.38.1732878895823; Fri, 29 Nov 2024 03:14:55 -0800 (PST) Original-Received: from rltb ([2a01:e0a:3f3:fb51:d716:e414:41b4:bd4b]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-434b0d9bc5asm49494965e9.2.2024.11.29.03.14.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Nov 2024 03:14:55 -0800 (PST) In-Reply-To: (Filippo Argiolas's message of "Fri, 29 Nov 2024 12:01:51 +0100") Gmane-Reply-To-List: yes Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=rpluim@gmail.com; helo=mail-wr1-x430.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 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:148437 Archived-At: >>>>> On Fri, 29 Nov 2024 12:01:51 +0100, Filippo Argiolas said: Filippo> Hi I am working on a project that builds in a temporary workspace. Filippo> I'd like to take advantage of Emacs compilation mode, especially jumping Filippo> from an error to the locus inside the file. Filippo> Problem is it jumps in the file inside the temp workspace instead of the Filippo> one in the source tree. Filippo> Is there a way to achieve a simple string substitution in the file name Filippo> before jumping while keeping existing compilation regexps? The following perhaps: compilation-transform-file-match-alist is a variable defined in `compile.el'. Its value is (("/bin/[a-z]*sh\\'" nil)) Alist of regexp/replacements to alter file names in compilation errors. If the replacement is nil, the file will not be considered an error after all. If not nil, it should be a regexp replacement string. Robert --