Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*** no error message given *** #16

Open
jcubic opened this issue Dec 18, 2015 · 2 comments
Open

*** no error message given *** #16

jcubic opened this issue Dec 18, 2015 · 2 comments

Comments

@jcubic
Copy link

jcubic commented Dec 18, 2015

I have this command:

  Ymacs_Buffer.newCommands({
      exit: Ymacs_Interactive(function() {
          var buffs = ymacs.buffers.slice();
          (function loop() {
              var buff = buffs.shift();
              if (buff) {
                  if (buff.name != '*scratch*' && buff.dirty()) {
                      var msg = 'Save file ' + buff.name + ' yes or no?';
                      function next() {
                          ymacs.killBuffer(buff);
                          loop();
                      }
                      buff.cmd('minibuffer_yn', msg, function(yes) {
                          if (yes) {
                              buff.cmd('save_buffer_with_continuation',
                                       false,
                                       next);
                          } else {
                              next();
                          }
                      });
                  } else {
                      next();
                  }
              } else {
                  $('.DlDesktop').hide();
                  leash.terminal.focus(true);
              }
          })();
      })
  });

and when I call it using M-x and when there are no unsaved files I got exception: Uncaught s: *** no error message given *** from thelib.js file.

@jcubic
Copy link
Author

jcubic commented Dec 18, 2015

It work fine If I call it from C-x C-c.

@jcubic jcubic changed the title no error message given *** no error message given *** Dec 18, 2015
@jcubic
Copy link
Author

jcubic commented Dec 20, 2015

I don't get that error if I don't kill *scratch* buffer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant