From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.help Subject: Re: Is there somebody still using arduino-mode? Date: Mon, 1 Jan 2018 20:18:25 +0000 (UTC) Organization: muc.de e.V. Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1514837921 16718 195.159.176.226 (1 Jan 2018 20:18:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 1 Jan 2018 20:18:41 +0000 (UTC) Injection-Date: Mon, 1 Jan 2018 20:18:25 +0000 (UTC) User-Agent: tin/2.4.1-20161224 ("Daill") (UNIX) (FreeBSD/11.1-RELEASE-p4 (amd64)) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 01 21:18:37 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eW6XT-0003OP-DE for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Jan 2018 21:18:27 +0100 Original-Received: from localhost ([::1]:42252 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eW6ZS-0001tg-Du for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Jan 2018 15:20:30 -0500 X-Received: by 10.28.156.86 with SMTP id f83mr3736998wme.16.1514837905857; Mon, 01 Jan 2018 12:18:25 -0800 (PST) Original-Path: usenet.stanford.edu!b72no11444240wmd.0!news-out.google.com!a84ni61773wmc.0!nntp.google.com!proxad.net!feeder1-2.proxad.net!weretis.net!feeder4.news.weretis.net!news-peer.in.tum.de!news.muc.de!.POSTED.192.168.0.4!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Injection-Info: news.muc.de; posting-host="192.168.0.4"; logging-data="63049"; mail-complaints-to="news-admin@muc.de" Original-Xref: usenet.stanford.edu gnu.emacs.help:221404 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:115519 Archived-At: Hello, Stardiviner. stardiviner wrote: > I found arduino-mode and using it for a few days. But got some errors. > I found there are some issues on GitHub for a long time. and this repo=20 > on GitHub is not been updated for a long time. I emailed the maintainer= .=20 > But he is not responding. And I check out some forks on GitHub of the=20 > original repo. I'm using the forwardest fork "mavit/arduino-mode" and=20 > "https://github.com/bwachter/arduino-mode". > ``` > (use-package arduino-mode > ? :quelpa (arduino-mode :fetcher github :repo "mavit/arduino-mode") > ? :bind (:map arduino-mode-map > ????????????? ("C-c C-c" . arduino-upload)) > ? :config > ? (setq arduino-font-lock-extra-types t) > ? ) > ``` > I got this error: > ``` > Eval error in the =E2=80=98c-lang-defvar=E2=80=99 or =E2=80=98c-lang-se= tvar=E2=80=99 for =E2=80=98c-known-type-key=E2=80=99 > (fallback source eval - arduino-mode compiled with CC Mode 5.33 but=20 > loaded with > 5.33.1): (wrong-type-argument sequencep t) > ``` > Hope someone can fix it. Because I'm not using the original repo and=20 > using a fork instead. So I don't mind use someone's fork. Let me guess, you are using a recent emacs-26 pre-release version. (The CC Mode version number was updated to 5.33.1 a small number of weeks ago). I would recommend you to recompile arduino-mode in the Emacs you're going to be running it under. That should solve the version mismatch error. As for the main error, somebody (?yourself) is setting arduino-font-lock-extra-types to t. Almost certainly (I haven't looked at arduino-mode's source), arduino-font-lock-extra-types needs to be a list of, basically, arduino source identifiers[*] which should be fontified as though they were types. t here is not OK. nil, (the empty list), would be OK. Again, almost certainly, arduino-font-lock-extra-types will have been modelled on c-font-lock-extra-types, which can be found in emacs/lisp/progmodes/cc-vars.c around line 1554. [*] More precisely, this is a list of regular expressions which match these pseudo types. --=20 Alan Mackenzie (Nuremberg, Germany).