From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Max Nikulin Newsgroups: gmane.emacs.devel Subject: Re: Ignore a Local Variables list Date: Tue, 24 Dec 2024 21:44:04 +0700 Message-ID: <17d13987-02cf-47fa-89a2-aaa733daf3d6@gmail.com> References: <87ttawewpx.fsf@breatheoutbreathe.in> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39841"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: Bohong Huang To: Joseph Turner , Emacs Devel Mailing List Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 24 15:44:42 2024 Return-path: Envelope-to: ged-emacs-devel@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 1tQ69J-000AHU-OI for ged-emacs-devel@m.gmane-mx.org; Tue, 24 Dec 2024 15:44:41 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tQ68q-0006uW-Ig; Tue, 24 Dec 2024 09:44:12 -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 1tQ68o-0006uO-Rf for emacs-devel@gnu.org; Tue, 24 Dec 2024 09:44:11 -0500 Original-Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tQ68n-00006c-7m for emacs-devel@gnu.org; Tue, 24 Dec 2024 09:44:10 -0500 Original-Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-54026562221so5455739e87.1 for ; Tue, 24 Dec 2024 06:44:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735051447; x=1735656247; darn=gnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=Ca8/hStJrfymINmax97k6BIOwAJJlF6xtZTssNfmcrw=; b=Rn7gUqyeHhM8pn/7fcunA4MZptN3zrake5uHq2pwf/k1Oje/gPmERnWzh8EDQ61+yX DKcXty7oKWKT8S6/NSGW32ynnbU8SvB0IOo2wLrkZLq2YdiOi3VHsQFdUl73SukhKU0a Jh9+xH2YGosAMyS0y0V7ADBu+fBc9oBceHo9puQsp9tdseggUa74ul9bOqTu7kCHtQc/ 5o6p4MktVjKq3Ur2dgm8CZZqauNC8xFbxnx9nhUin3xOfVgeIi1kRY5bMctAjEK+Pnqy 7+lXP3kuPghm+hbbGigkoYsA9wu3+zaPVHJiWUy+rW9z/quudkHae6sQx6oSsDT5mclR q81A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735051447; x=1735656247; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Ca8/hStJrfymINmax97k6BIOwAJJlF6xtZTssNfmcrw=; b=TEDVJKXuy11Z5P5JkXpp/G9ogJ5iVhyiPSlcqxbXrVlcykGDcQ7hIbBdfYoSsTBfj/ QOgpdIVtK+gQjAgjQEd/4SHDZbRdWmFNKtw4W5whmqpjDyePEpMLUSsJpCaChymAiw8N bsjXgzOJyQX5Dwq488lVlkjE+IF+ocNd9yp12bcsTZlkcRhMm9KZid+9qgz3X60ONMiu ut+53pFgrRpAN5+ZcMYJKSqNw8fI1HtTDPJmkrsOcuFC64CmWJudjf2DvIJf5f3jrgne xuHhbCv9N20W++VB428Qmpml9FLyN2dwu/a27S/jWShYdBXFQmOdx8ovkhS0A1x1CdBW 1pHg== X-Forwarded-Encrypted: i=1; AJvYcCXbScaX4cFFb6Rsny0SAaGK3GZxSzeeUmUs324nB0bbAsq8Qlc8b3a1MYZOLV6AmGRI6ZtoE1KJdyXFfw==@gnu.org X-Gm-Message-State: AOJu0Yycz479zhVmytXZ1uAqWtKSrDWS5QtHJ6CYcTPzAtK5qcV8yfyx AFzp7ZgGqo2lpDCt2Is/Xqxyi2MAF70tOT37FSajv+glBn0DtBe/iOhtsw== X-Gm-Gg: ASbGncubJ3zyK7v+eunXuo304TRoaa9Wr4j36y44RkKwujPKN/hTsDlYdT9XQh16HZR tRwbxuGdvILHphwDdcbwiEWfO9huWF2g7LYwLMKTaVybevconH46cz9JYi93Ujl9J4RKSzSqvin eIcRMpvwQ2CoG64mcIdgKwT/aPpnO+V+2sqe5EA/mgQ4yOZMt7QzxpO0SQtzQzr3n33mDj0MIIk 8aK1F4CQbHk3zKO4xrvi/j2Cgl2NpHt8VyXQ7cXf1BFcT2/RfUWyYaiTOvdzxrm0olPG5OdBgC3 mEY= X-Google-Smtp-Source: AGHT+IHHbPm6GbPmgPtReCJt+FZfR59+855xM2UZ5CN5BH+JTbQi4ApsPq1A/Z5GnnLrzUXfrnrh3Q== X-Received: by 2002:a05:6512:3d9e:b0:542:2137:3a31 with SMTP id 2adb3069b0e04-5422953011emr3905078e87.21.1735051446290; Tue, 24 Dec 2024 06:44:06 -0800 (PST) Original-Received: from [192.168.1.149] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id 2adb3069b0e04-5422381369dsm1620661e87.142.2024.12.24.06.44.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Dec 2024 06:44:05 -0800 (PST) Content-Language: en-US, ru-RU In-Reply-To: <87ttawewpx.fsf@breatheoutbreathe.in> Received-SPF: pass client-ip=2a00:1450:4864:20::132; envelope-from=manikulin@gmail.com; helo=mail-lf1-x132.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: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:327019 Archived-At: On 22/12/2024 01:07, Joseph Turner wrote: > Another solution is to put an empty Local Variables list *above* the one > I want to ignore. This solution seems fragile, since Emacs only looks > within the last 3000 characters for a Local Variables list. Currently it is not specified whether first or last local variables section should be taken if several ones are found at the end of the document. I think, picking the last one will allow to suppress local variables examples above using purely *plain text* "markup" without pitfalls with control characters. "First pattern within last 3000 characters" is a quite peculiar rule to my taste.