unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* POST successful when function not called interactively, fails silently when it is?
@ 2013-09-05  3:42 Tim Visher
  2013-09-05 17:55 ` Tim Visher
  0 siblings, 1 reply; 2+ messages in thread
From: Tim Visher @ 2013-09-05  3:42 UTC (permalink / raw)
  To: emacs

Hi all,

I'm trying to add [the ability to create stories][] to the [pivotal-tracker
project][].

I've got everything just about working except for one strange problem.

When I call the function from elisp, it behaves exactly as expected (other
than occasionally failing to retrieve the page prior to returning the
buffer to me, but that's a topic for another post). The message "Story
added!" is printed and Pivotal reflects it.

When I call it interactively, however, the same message prints but the
story is not, indeed, added to Pivotal.

I verified that the arguments are the same between calls but `setq`ing a
monitor after the args are set and comparing them between runs and the
arguments are indeed exactly the same.

What could be happening here?

[the ability to create stories]:
https://github.com/timvisher/pivotal-tracker/blob/96f4ba074f79241a6861803c1d4852ffc78eeb74/pivotal-tracker.el#L384-L421
[pivotal-tracker project]: https://github.com/jxa/pivotal-tracker

--

In Christ,

Timmy V.

http://blog.twonegatives.com/
http://five.sentenc.es/ -- Spend less time on mail


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: POST successful when function not called interactively, fails silently when it is?
  2013-09-05  3:42 POST successful when function not called interactively, fails silently when it is? Tim Visher
@ 2013-09-05 17:55 ` Tim Visher
  0 siblings, 0 replies; 2+ messages in thread
From: Tim Visher @ 2013-09-05 17:55 UTC (permalink / raw)
  To: emacs

Sorted this out. The problem was that the argument was a string when
calling it interactively and a number when not. One of those 'solution
staring me right in the face' moments. :)


On Wed, Sep 4, 2013 at 11:42 PM, Tim Visher <tim.visher@gmail.com> wrote:

> Hi all,
>
> I'm trying to add [the ability to create stories][] to the
> [pivotal-tracker project][].
>
> I've got everything just about working except for one strange problem.
>
> When I call the function from elisp, it behaves exactly as expected (other
> than occasionally failing to retrieve the page prior to returning the
> buffer to me, but that's a topic for another post). The message "Story
> added!" is printed and Pivotal reflects it.
>
> When I call it interactively, however, the same message prints but the
> story is not, indeed, added to Pivotal.
>
> I verified that the arguments are the same between calls but `setq`ing a
> monitor after the args are set and comparing them between runs and the
> arguments are indeed exactly the same.
>
> What could be happening here?
>
> [the ability to create stories]:
> https://github.com/timvisher/pivotal-tracker/blob/96f4ba074f79241a6861803c1d4852ffc78eeb74/pivotal-tracker.el#L384-L421
> [pivotal-tracker project]: https://github.com/jxa/pivotal-tracker
>
> --
>
> In Christ,
>
> Timmy V.
>
> http://blog.twonegatives.com/
> http://five.sentenc.es/ -- Spend less time on mail
>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-09-05 17:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-05  3:42 POST successful when function not called interactively, fails silently when it is? Tim Visher
2013-09-05 17:55 ` Tim Visher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).