VM

vm-mail-to-mailto-url problems

Bug #716294 reported by Göran Uddeborg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
VM
Fix Released
Medium
Uday Reddy

Bug Description

I have a little "emacsmailer" script which I use when following mailto URL:s from other programs like Firefox. For emacs 21 it is implemented like this:

  emacs -l $HOME/vm-trunk/vm-load.el --eval "(let ((vm-frame-per-composition nil)) (vm-mail-to-mailto-url \"$1\"))"

With the latest trunk however, it fails with the error message

  vm-mail-to-mailto-url: Symbol's value as variable is void: vm-fsfemacs-mule-p

Another load order issue maybe?

This happens using emacs 21.4 and revision 1035 of vm.

(With newer versions I use emacsclient instead in the script, but emacsclient didn't support the --eval flag in version 21.)

Related branches

Revision history for this message
Uday Reddy (reddyuday) wrote : Re: [Bug 716294] [NEW] vm-fsfemacs-mule-p is unknown when starting mail directly from the command line

This was actually due to a change I made in revision 1033, noticing
that vm-vars was being loaded for FSF Emacs but not XEmacs. So, I
thought it wasn't necessary. I have now reverted the change in
revision 1042.

Cheers,
Uday

Changed in vm:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Uday Reddy (reddyuday)
milestone: none → 8.2.0b
Revision history for this message
Göran Uddeborg (goeran-uddeborg) wrote : Re: vm-fsfemacs-mule-p is unknown when starting mail directly from the command line

It appears as this fix revived an earlier bug. After updating to revision 1044, I now get this error when I start emacs:

Symbol's function definition is void: defvaralias

Here is a stack trace:

  (defvaralias (quote vm-mime-savable-types) (quote vm-mime-saveable-types))
  require(vm-vars)
  byte-code(…)
  load("vm-autoloads")
  eval-buffer(#<buffer *load*<2>> nil "/users/uddeborg/vm-trunk/vm-load.el" nil t)
  load-with-code-conversion("/users/uddeborg/vm-trunk/vm-load.el" "/users/uddeborg/vm-trunk/vm-load.el" nil nil)
  load("/users/uddeborg/vm-trunk/vm-load.el")
  eval-buffer(#<buffer *load*> nil "~/.emacs" nil t)
  load-with-code-conversion("/users/uddeborg/.emacs" "~/.emacs" t t)
  load("~/.emacs" t t)
  #[…]
  command-line()
  normal-top-level()

Revision history for this message
Uday Reddy (reddyuday) wrote : [Bug 716294] Re: vm-fsfemacs-mule-p is unknown when starting mail directly from the command line

Try recompiling everything. Do
  make clean
  make
in the VM directory and see if it works.

Cheers,
Uday

Revision history for this message
Uday Reddy (reddyuday) wrote :

Ok, I found another problem with the defvaralias macro. Please try
the revision 1046 from the trunk.

Cheers,
Uday

Revision history for this message
Göran Uddeborg (goeran-uddeborg) wrote : Re: vm-fsfemacs-mule-p is unknown when starting mail directly from the command line

It doesn't The error remains. I tried rerunning configure between "make clean" and "make", but it still didnät make any difference.

Revision history for this message
Göran Uddeborg (goeran-uddeborg) wrote :

Note that my previous comment was about doing make clean/make. I'll test revision 1046 tomorrow.

Revision history for this message
Göran Uddeborg (goeran-uddeborg) wrote :

Revision 1046 doesn't give the error in comment 2 any more. When starting emacs the normal way, everything works again.

When starting it with the command line in the description, however, I get an error message that vm-session-initialization is undefined. Stack trace below.

(This might be a completely separate error. Do you want to keep order by having one bug report per issue? I'll file a new one about this if you wish.)

  vm-session-initialization()
  vm-mail-to-mailto-url("mailto:<email address hidden>")
  (let ((debug-on-error t) (vm-frame-per-composition nil)) (vm-mail-to-mailto-url "mailto:<email address hidden>"))
  eval((let ((debug-on-error t) (vm-frame-per-composition nil)) (vm-mail-to-mailto-url "mailto:<email address hidden>")))
  command-line-1(("-l" "/users/uddeborg/vm-trunk/vm-load.el" "--eval" "(let ((debug-on-error t) (vm-frame-per-composition nil)) (vm-mail-to-mailto-url \"mailto:<email address hidden>\"))"))
  command-line()
  normal-top-level()

Revision history for this message
Uday Reddy (reddyuday) wrote :

Ok, we at least have the Emacs 21 problem out of the way. I will have to test out the mailto-url functionality. There could also be similar issues with vm-user-agent and other non-standard ways of invoking VM.

summary: - vm-fsfemacs-mule-p is unknown when starting mail directly from the
- command line
+ vm-mail-to-mailto-url problems
tags: added: compatibility
Revision history for this message
Uday Reddy (reddyuday) wrote : [Bug 716294] Re: vm-fsfemacs-mule-p is unknown when starting mail directly from the command line

Göran Uddeborg writes:

> When starting it with the command line in the description, however, I
> get an error message that vm-session-initialization is undefined. Stack
> trace below.

I have this running now. I don't know how you had it working before.
The bug was present in every version of VM I have on file!

Cheers,
Uday

Uday Reddy (reddyuday)
tags: added: 7.19
Revision history for this message
Uday Reddy (reddyuday) wrote :

Hi Goeran, I hope this issue is resolved now?

Changed in vm:
status: In Progress → Fix Committed
Uday Reddy (reddyuday)
Changed in vm:
status: Fix Committed → Fix Released
Revision history for this message
Göran Uddeborg (goeran-uddeborg) wrote :

> I hope this issue is resolved now?

Sorry for not replying earlier. Yes, this is resolved; it works fine now.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.