Coder Social home page Coder Social logo

Comments (7)

d0vgan avatar d0vgan commented on June 8, 2024

Should be fixed in f675e55

from nppexec.

artie-finkelstein avatar artie-finkelstein commented on June 8, 2024

from nppexec.

d0vgan avatar d0vgan commented on June 8, 2024

https://community.notepad-plus-plus.org/topic/21365/nppexec-latest-development-version/5

from nppexec.

artie-finkelstein avatar artie-finkelstein commented on June 8, 2024

from nppexec.

d0vgan avatar d0vgan commented on June 8, 2024

The idea of the "local" keyword has two main effects in mind:

  1. ability to automatically return to the previous state, whatever it was;
  2. no need of manual clean-up.
    As an example, let's consider a command "npe_console -- m- v+". It disables the Console's "internal" messages (in green) and enables the $(OUTPUT) variable. To do the opposite, you may execute another command "npe_console -- m+ v-" later. The question is : what was the original state of "m" and "v" before the first command "npe_console -- m- v+" has been executed? Maybe the "internal" messages were already disabled and/or the $(OUTPUT) variable was already enabled before executing "npe_console -- m- v+" ? In such case, executing "npe_console -- m+ v-" later, we will actually change the state of "m" and "v" comparing to how it was before the first command. And here is when "npe_console local -- m- v+" comes in handy: it guarantees that the state of "m" and "v" will be reverted exactly to their previous values.

from nppexec.

artie-finkelstein avatar artie-finkelstein commented on June 8, 2024

from nppexec.

artie-finkelstein avatar artie-finkelstein commented on June 8, 2024

Oops. I forgot to come here to close the issue earlier. Mea culpea.

from nppexec.

Related Issues (20)

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.