From owner-freebsd-ports@FreeBSD.ORG Thu Apr 19 18:59:47 2012 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ADC4C10656A7; Thu, 19 Apr 2012 18:59:47 +0000 (UTC) (envelope-from andrew.w.nosenko@gmail.com) Received: from mail-qc0-f182.google.com (mail-qc0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 11D0A8FC14; Thu, 19 Apr 2012 18:59:46 +0000 (UTC) Received: by qcsg15 with SMTP id g15so6518470qcs.13 for ; Thu, 19 Apr 2012 11:59:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=HCY3YJ+PfXdCq1nuhqGq0d+hL4ZF7CYnp76GAOjjEFw=; b=z242odShjlUJ9FZSjMddxzUGX4UzRs3IIOYQkigcfUK1g+xvw7K28oCRkhtq96qfZI 8hWoWXKTfaqCCxna8FZwVDsIdYMcJTsktwwkRO9FjaOpTVoTN0jyt4zTzGzm2GXyBzBI LPO9GEbuizsOl6Vc+KOcXaf0V1yHOI3H8QFD1FjKZ9I4r1oQ3gUS7EWryb1GFIoWDaKx 8DG4ETZmaqVOH/CxRtu13zet9uh0G9TGgyyz5KWOul9Waid3Tw+2YFdqQKFBGh42A00Y LRAAk2Yo4SHXS06/GUA/RbR0hULnvjmxPqTILlm6P8mCoTvQjEcpY8QuUHSGIlApv2yv wdsg== MIME-Version: 1.0 Received: by 10.229.135.140 with SMTP id n12mr1262420qct.12.1334861986273; Thu, 19 Apr 2012 11:59:46 -0700 (PDT) Received: by 10.229.98.210 with HTTP; Thu, 19 Apr 2012 11:59:46 -0700 (PDT) In-Reply-To: <03AAF100C4104D97B51E4EDC6AAE29D3@freethread.lan> References: <03AAF100C4104D97B51E4EDC6AAE29D3@freethread.lan> Date: Thu, 19 Apr 2012 21:59:46 +0300 Message-ID: From: "Andrew W. Nosenko" To: freethread Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: ports@freebsd.org, fjoe@freebsd.org Subject: Re: FreeBSD Port: mc-4.8.1.1 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Apr 2012 18:59:47 -0000 On Thu, Apr 19, 2012 at 20:05, freethread wrote: > hi, I'm facing an issue with last mc version. After upgrading ports (from= source with portmaster) the syntax highlight in mcedit no more works, well= , it works, but... > > Explanation > > I made some customization in mc for fileext, syntax highlight and menus, = some of them are documentend, some others are partially documented and some= others are undocumented. The syntax highlight customization is partially d= ocumented, however that's what I've done on my system: > > The syntax highlight are composed by files with .syntax extention and a m= ain 'Syntax' file that recognize file type (extentions + content) and redir= ect to the right .syntax file. > =A01.. I created a new directory where I copied that files (located in /u= sr/local/share/mc/syntax) in that new directory. > =A02.. In each home directory there is an '.mc' directory where mc place = per user configuration files, so I found that copying the above files in $H= OME/.mc/cedit directory you can customize the syntax highlight recognition = and coloration, so what I've done (for each user) is to create symlinks to = that files in 'cedit' directory, pointing at files copied in step 1. So, ea= ch user has the same customized syntax highlight. > Now, it worked for years, but when updated mc to version 4.8.1.1, it show= me a syntax error in Syntax file at line 41, that contain the following cu= stomization: > 40 =A0file .\*(csh|\\.(csh|cshrc|tcsh|tcshrc|login|logout))$ tcsh/csh\sSc= ript ^#!\s\*/(.\*/|usr/bin/env\s)(tc|c)sh41 =A0include csh.syntaxOk, I rest= ored the original 'Syntax' file to replace the customized one, but it seems= it has no effect, it display the same error and in the editor menu 'Option= s -> Syntax Highlight...' it still display my customized additions (in the = previous example 'tcsh/csh Script'), and it uses its own .syntax files in /= usr/local/share/mc/syntax for all file types. > > I don't know if mc has a cache and where it is, in /tmp there is nothing = to help. This is not a FreeBSD issue instead something changed in mc syntax= highlight policy, anyhow, perhaps you know or heard about some changes, I = use mcedit for small shell files, small perl and python scripts on FreeBSD = server but the most of the time I works on Windows desktops (and access it = with remote terminals), so I can revert mc to works as default and edit the= m in Windows. The latest mc from ports changed the paths to be more XDG complaint. Config files live now in ~/.config/mc/ (and, as consequence, ~/.config/mc/mcedit/ if you need mcedit-related ones). State-related files live in ~/.local/mc/ now. At the 1st run after update, the mc copies the "old" configs into "new" locations, which explains why your changes to the files inside ~/.mc/ had no effect and why you had a feeling like something cached somewhere. Also, at the 1st run (just after copying), mc shows message about new paths and what happened, and exits. But you can easy to miss it if your terminal emulator closes the window automatically after mc exit. > > FYI: I made many other customizations to mc but I don't know if they inte= rfere with this issue, all of them have more than 2 years and always worked= and they are the same from at least 1 year, anyway my system was installed= from 'disk 1' in september 2010, fresh FreeBSD 9.0-BETA1 installation (it = was an 8.2-RELEASE but I made a fresh install to test bsdinstall and have S= U+J on UFS), upgraded to 9.0-RELEASE in january or frebuary with freebsd-up= date (binary), all ports are uptodate. > =A0FreeBSD alpha.xxxxxxx.xxx 9.0-RELEASE FreeBSD 9.0-RELEASE #1: Fri Jan = 20 07:29:38 CET 2012 > =A0root@alpha.xxxxxxx.xxx:/usr/obj/usr/src/sys/ALPHA =A0i386 > Thanks in advance for your advices (if you have any) > paul --=20 Andrew W. Nosenko