Coder Social home page Coder Social logo

nsis-mode's Introduction

NSIS-mode

Matthew L. Fidler

Library Information

nsis-mode.el --- NSIS-mode

  • Filename -- nsis-mode.el
  • Description -- NSIS mode
  • Author -- Matthew L. Fidler
  • Maintainer -- Matthew L. Fidler
  • Created -- Tue Nov 16 15:48:02 2010 (-0600)
  • Version -- 0.45
  • Last-Updated -- Wed May 23 10:15:50 2013 (+0100)
  • By -- Jan T. Sott
  • Update # -- 1479
  • URL -- http:__github.com_mlf176f2_nsis-mode
  • Keywords -- NSIS
  • Compatibility -- Emacs 23.2

Possible Dependencies

None

A major mode for editing nsis files

Installation

If you're using use-package you can add this to your init file:

(use-package nsis-mode)

That's all!

Else you can install nsis-mode from Melpa via M-x package-install, then add the following to your Emacs:

(autoload 'nsis-mode "nsis-mode" "NSIS mode" t)

(setq auto-mode-alist (append '(("\.[Nn][Ss][HhIi]\'" . nsis-mode)) auto-mode-alist))

History

  • 23-May-2018 -- Added new commands added since NSIS 3.0, added missing control keywords. (Jan T. Sott)
  • 08-Jul-2013 -- Added new NSIS 3.0a0 commands, sorted command list. (Jan T. Sott)
  • 20-Aug-2012 -- Added nsis-indent-level to allow customization of indentation. (Matthew L. Fidler)
  • 08-Jun-2012 -- Changed _ to syntax class (Matthew L. Fidler)
  • 16-May-2012 -- Added label indentation support for labels of the form "label_${ONE}:" (Matthew L. Fidler)
  • 16-May-2012 -- Fixed random hang (Matthew L. Fidler)
  • 16-May-2012 -- Attempted to fix random hangs. It could be due to indentation infinite loop, so made sure (bobp) is always checked at the beginning of the line. (Matthew L. Fidler)
  • 01-Mar-2012 -- Added website. (Matthew L. Fidler)
  • 01-Mar-2012 -- Bug fix for syntax table. (Matthew L. Fidler)
  • 19-Dec-2011 -- Looks for makensis if can't find in program files. (Matthew L. Fidler)
  • 19-Dec-2011 -- Added .nsi and .nsh autoload (Matthew L. Fidler)
  • 07-Feb-2011 -- Added check to make sure compile went OK before launching executable. (Matthew L. Fidler)
  • 25-Jan-2011 -- Added more explicit setup instructions (Matthew L. Fidler)
  • 06-Dec-2010 -- Changed comment start and comment stop to single line semi-colons (Matthew L. Fidler)
  • 06-Dec-2010 -- Made nsis-yas-description not depend on finding MUI
      FUNCTION<_ul>DESCRIPTION
        BEGIN. If MUI<_ul>DESCRIPTION_TEXT is found, insert there. (Matthew L. Fidler)
      • 06-Dec-2010 -- Updated indentation line function (bug-fix) (Matthew L. Fidler)
      • 23-Nov-2010 -- Macros that end with END or BEGIN are indentation keywords. (Matthew L. Fidler)
      • 23-Nov-2010 -- Changed indentation routine (bugfix) ()

nsis-mode's People

Contributors

idleberg avatar madscientist avatar mattfidler avatar michaelmanert avatar skeeto avatar syohex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

nsis-mode's Issues

Emacs hangs with special continuation line

Emacs hangs, if a continuation line starts with an equal sign.
How to reproduce:

load a file with nsis-mode
;====== snippet begin ====
MessageBox MB_OK "Installation failed!$\r$\n
#= abort installation"

MessageBox MB_OK "Installation failed!$\r$\n
= abort installation"
;====== snippet end ====

delete the hash => emacs hangs immediately and needs to be killed

void-variable nsis-start-keywords

Worked fine when I installed it from elpa. However, if I shut down Emacs and, later, restart it, going to a .nsi file gets me an error:
File mode specification error: (void-variable nsis-start-keywords) defvar: Symbol’s value as variable is void: nsis-start-keywords File mode specification error: (void-variable nsis-start-keywords) [2 times]
Only way I can recover from this that I've found so far is by re-installing nsis mode from elpa.
This is using Emacs 29.1 on Windows 11.

nsis-mode.el compiles with error

nsis-mode.el:949:5: Error: Symbol’s value as variable is void: nsis-syntax-variable

this error happens in batch mode emacs -Q --batch --eval '(byte-compile-file "nsis-mode.el")' and interactively via menu with Emacs

Compile commands fail on 64 bit emacs

The compile commands use (getenv "ProgramFiles") to find the NSIS executables. This doesn't work on a 64 bit machine with 64 bit emacs because NSIS is currently 32 bit. It can be fixed as a kludge by substituting (getenv "ProgramFiles(x86)"), but that might not work on a 32 bit machine. I don't know enough about emacs Lisp to come up with a generic solution.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.