From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bruno Barbier Newsgroups: gmane.emacs.help Subject: Re: help in writing function to pop indirect buffer Date: Fri, 27 Jan 2023 19:30:35 +0100 Message-ID: <63d41646.5d0a0220.2018e.e402@mx.google.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="38192"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Jean Louis , Luca Ferrari Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 27 19:22:42 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 1pLTN4-0009hi-Kh for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 27 Jan 2023 19:22:42 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pLTMT-00006o-LF; Fri, 27 Jan 2023 13:22:05 -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 1pLTMQ-0008RG-Jj for help-gnu-emacs@gnu.org; Fri, 27 Jan 2023 13:22:04 -0500 Original-Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pLTMO-0004bP-VU for help-gnu-emacs@gnu.org; Fri, 27 Jan 2023 13:22:02 -0500 Original-Received: by mail-wr1-x42c.google.com with SMTP id z5so5739555wrt.6 for ; Fri, 27 Jan 2023 10:22:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:date:references:in-reply-to:subject:cc:to:from :message-id:from:to:cc:subject:date:message-id:reply-to; bh=7QWsMWLdDRthu5UpaNSVBSgejVwLoHO4nqVXKqZK6Mk=; b=a5Hqx4ymnTO6126ZtlGmxA7eJ5Nh3uUBFTXyn6+8vuYY5+fAAuP6LnJCs+EYHLcNxU v1cVT0WVWzYs5+bxdCLYf2s3azwi0f7Q9WmqqGHKOBCjNeq3j3nBZ215Erxwbm2aRsaJ GDx4A+O/BffLfG7q+cygkeM9GLfDfv1tzQ/32HuRw2BiAGYgHoDpwjhoaM9nCosYcmrK w8T022vJgAjQifpLCa4FRi0eV2zXqraXS/p99js2AJMlRAgoJwLO5hUGS8+yN9z11mOb YC8/pqhjxCM/EYoJZkpfkwkS6cXlrXeaVvqRUr18kcYKZ71j7a5obVkL+Lm50gVWIOTG ZhBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:date:references:in-reply-to:subject:cc:to:from :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7QWsMWLdDRthu5UpaNSVBSgejVwLoHO4nqVXKqZK6Mk=; b=ioF3TUbcjwoStIjLjUcK8A2r3tB4iUAr0aKHOk62MeZNf7kjq2o9g/xnuZFvpqQ5pY rgXj+BNL60kuLMF2NKGgpMw3fTRz9S+2eQcN9xrdtAz0mT8C7cVqZt2HVHxcGYIlE9DZ Dy2nEBK1HrQ+HfhuweZM0h3QKzBo/7e4ijdVeHltNUJq/QSE8O4FFq9UnH1edazPjHCN y0Y3/qEyHD3ZPsEt0YUnXgzRkmEN4Go7hPiIqlG14Sc2HXyr9l8CpMA9Nwu7V64iWncZ xIYkkAm0koJo5BJuryevevApZnAh/Lecx4Ea5ZFIe2plpNyoIkSVgYBFfKFgmP6j8idV oqmw== X-Gm-Message-State: AO0yUKUj75k2EnzQh24B8VN/7WPQpY2gC/iARH6m26pUPd4MqNtoLTZW 1+zG3p3n99llYLMNPnCmiak= X-Google-Smtp-Source: AK7set+YbxC0pPadgEb/03nv5/YqZVSgce5w1FzHqbYVEIcbf8cVPyYP8/oar2XBIrpYL1fVHP5+Fw== X-Received: by 2002:a5d:4521:0:b0:2bf:c0f6:e14a with SMTP id j1-20020a5d4521000000b002bfc0f6e14amr7195337wra.53.1674843718497; Fri, 27 Jan 2023 10:21:58 -0800 (PST) Original-Received: from tosh-laptop ([2a01:e0a:505:3460:1a16:a0c4:3f89:c0d9]) by smtp.gmail.com with ESMTPSA id f7-20020a5d64c7000000b002bdfe3aca17sm5050727wri.51.2023.01.27.10.21.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Jan 2023 10:21:58 -0800 (PST) Original-Received: by tosh-laptop (sSMTP sendmail emulation); Fri, 27 Jan 2023 19:30:35 +0100 In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=brubar.cs@gmail.com; helo=mail-wr1-x42c.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, MSGID_FROM_MTA_HEADER=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:142540 Archived-At: Jean Louis writes: > * Luca Ferrari [2023-01-25 14:16]: >> This almost works, but when the indirect buffer is popped, I do not >> have syntax highlight while I have indentation and apparently all the >> other Perl things. >> How can I turn on syntax highlight? > > I can see error: > Not enabling jit-lock: it does not work in indirect buffer > > but how to solve it, I do not know. > I'm getting the same warning, but fontification seems to work and is updated in both buffers. In case it matters, I'm using: GNU Emacs 29.0.60 (build 2, x86_64-pc-linux-gnu, X toolkit, cairo version 1.17.6) of 2023-01-24 Did you try using a bare emacs ? (emacs -Q) > I find great what you are doing. Me too. I've never used indirect buffers, but, your function looks very useful to focus on several small parts of huge files. Thanks! Bruno