unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Emacs build number in version
@ 2012-05-25 14:14 Julien Danjou
  2012-05-25 14:56 ` Sven Joachim
  2012-05-26 12:14 ` Vitalie Spinu
  0 siblings, 2 replies; 6+ messages in thread
From: Julien Danjou @ 2012-05-25 14:14 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 371 bytes --]

Hi there,

I'm having a problem lately with the packaging of Emacs 24 for Debian
and I'd need some help.

It seems that Emacs version is 24.1.50.$buildnumber and that is used to
build a binary with that name, and etc/DOC-$version.$buildnumber.

However, I'm unable to determine where is stored/computed that build
number.

Any hint?

-- 
           Julien

[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]

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

* Re: Emacs build number in version
  2012-05-25 14:14 Emacs build number in version Julien Danjou
@ 2012-05-25 14:56 ` Sven Joachim
  2012-05-26 12:14 ` Vitalie Spinu
  1 sibling, 0 replies; 6+ messages in thread
From: Sven Joachim @ 2012-05-25 14:56 UTC (permalink / raw)
  To: emacs-devel

On 2012-05-25 16:14 +0200, Julien Danjou wrote:

> I'm having a problem lately with the packaging of Emacs 24 for Debian
> and I'd need some help.
>
> It seems that Emacs version is 24.1.50.$buildnumber and that is used to
> build a binary with that name, and etc/DOC-$version.$buildnumber.
>
> However, I'm unable to determine where is stored/computed that build
> number.

Have a look at lisp/loadup.el, there it is computed.

Cheers,
       Sven



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

* Re: Emacs build number in version
  2012-05-25 14:14 Emacs build number in version Julien Danjou
  2012-05-25 14:56 ` Sven Joachim
@ 2012-05-26 12:14 ` Vitalie Spinu
  2012-05-26 13:19   ` Stefan Monnier
  1 sibling, 1 reply; 6+ messages in thread
From: Vitalie Spinu @ 2012-05-26 12:14 UTC (permalink / raw)
  To: emacs-devel


This looks like very much related. I've just updated emacs-snapshot on
Ubuntu and I cannot start emacs because of this error in defadvice:

 (error "Cannot open doc string file \"/usr/share/emacs/24.1.50/etc/DOC-24.1.50.1\"")

For example:

   (defadvice delete-backward-char (before delete-empty-pair activate) 
     (if (eq (cdr (assq (char-before) skeletons-alist)) (char-after))
         (and (char-after) (delete-char 1))))
   
produces:
   
   (error "Cannot open doc string file \"/usr/share/emacs/24.1.50/etc/DOC-24.1.50.1\"")
    ad-real-documentation(#[(n &optional killflag) "\b\250\204\f\305\306\307\bD\"\210\310 \203.	\203.\b\311U\203.	\312=\203(\313\314 \315 \"\207\314 \315 |\207\n\203]\b\316X\204]`Sf\317>\204]m\204]\320f\321=\204]i\322\b[\f\"\210\212\323\324\viZ\320#*\207\322\b[\f\"\207" [n delete-active-region overwrite-mode ocol killflag signal wrong-type-argument integerp use-region-p 1 kill kill-region region-beginning region-end 0 (9 10) nil 10 delete-char insert-char 32] 4 1928790 "p\nP"] t)
    ad-make-advised-docstring(delete-backward-char)
    ad-real-documentation(#[(n &optional killflag) "\303	\304U\203$`eV\203$\305`S\306\"\203$\307\310`\306\"`\"\210\311 \210\202)\312	\n\"\b)\207" [ad-return-value n killflag nil 1 get-text-property intangible kill-region previous-single-property-change indent-for-tab-command ad-Orig-delete-backward-char] 4 #("Advice doc string" 0 17 (ad-advice-info delete-backward-char)) "p\nP"] t)
    ad-docstring(#[(n &optional killflag) "\303	\304U\203$`eV\203$\305`S\306\"\203$\307\310`\306\"`\"\210\311 \210\202)\312	\n\"\b)\207" [ad-return-value n killflag nil 1 get-text-property intangible kill-region previous-single-property-change indent-for-tab-command ad-Orig-delete-backward-char] 4 #("Advice doc string" 0 17 (ad-advice-info delete-backward-char)) "p\nP"])
    ad-advised-definition-p(#[(n &optional killflag) "\303	\304U\203$`eV\203$\305`S\306\"\203$\307\310`\306\"`\"\210\311 \210\202)\312	\n\"\b)\207" [ad-return-value n killflag nil 1 get-text-property intangible kill-region previous-single-property-change indent-for-tab-command ad-Orig-delete-backward-char] 4 #("Advice doc string" 0 17 (ad-advice-info delete-backward-char)) "p\nP"])
    ad-handle-definition(delete-backward-char)
    ad-activate(delete-backward-char nil)
    (progn (ad-add-advice (quote delete-backward-char) (quote (delete-empty-pair nil t (advice lambda nil (if (eq (cdr ...) (char-after)) (and (char-after) (delete-char 1)))))) (quote before) (quote nil)) (ad-activate (quote delete-backward-char) nil) (quote delete-backward-char))
    (defadvice delete-backward-char (before delete-empty-pair activate) (if (eq (cdr (assq (char-before) skeletons-alist)) (char-after)) (and (char-after) (delete-char 1))))
    eval((defadvice delete-backward-char (before delete-empty-pair activate) (if (eq (cdr (assq (char-before) skeletons-alist)) (char-after)) (and (char-after) (delete-char 1)))) nil)
    eval-last-sexp-1(nil)
    eval-last-sexp(nil)
    call-interactively(eval-last-sexp nil nil)

Best, 
Vitalie.

  >> Julien Danjou <julien@danjou.info>
  >> on Fri, 25 May 2012 16:14:38 +0200 wrote:

  > Hi there,

  > I'm having a problem lately with the packaging of Emacs 24 for Debian
  > and I'd need some help.

  > It seems that Emacs version is 24.1.50.$buildnumber and that is used to
  > build a binary with that name, and etc/DOC-$version.$buildnumber.

  > However, I'm unable to determine where is stored/computed that build
  > number.

  > Any hint?



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

* Re: Emacs build number in version
  2012-05-26 12:14 ` Vitalie Spinu
@ 2012-05-26 13:19   ` Stefan Monnier
  2012-05-29 10:06     ` Julien Danjou
  0 siblings, 1 reply; 6+ messages in thread
From: Stefan Monnier @ 2012-05-26 13:19 UTC (permalink / raw)
  To: Vitalie Spinu; +Cc: emacs-devel

> This looks like very much related. I've just updated emacs-snapshot on
> Ubuntu and I cannot start emacs because of this error in defadvice:

>  (error "Cannot open doc string file \"/usr/share/emacs/24.1.50/etc/DOC-24.1.50.1\"")

> For example:

>    (defadvice delete-backward-char (before delete-empty-pair activate) 
>      (if (eq (cdr (assq (char-before) skeletons-alist)) (char-after))
>          (and (char-after) (delete-char 1))))
   
There are 2 bugs here:
- a packaging bug: the file should not be missing.
- a robustness bug: defadvice should fail gracefully in this case, since
  it does not really need to docstring to do its job.
I think the first is on Ubuntu's side, but please file a proper bug
report with M-x report-emacs-bug for the second.


        Stefan



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

* Re: Emacs build number in version
  2012-05-26 13:19   ` Stefan Monnier
@ 2012-05-29 10:06     ` Julien Danjou
  2012-06-10  9:48       ` Vitalie Spinu
  0 siblings, 1 reply; 6+ messages in thread
From: Julien Danjou @ 2012-05-29 10:06 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Vitalie Spinu, emacs-devel

[-- Attachment #1: Type: text/plain, Size: 511 bytes --]

On Sat, May 26 2012, Stefan Monnier wrote:

> There are 2 bugs here:
> - a packaging bug: the file should not be missing.
> - a robustness bug: defadvice should fail gracefully in this case, since
>   it does not really need to docstring to do its job.
> I think the first is on Ubuntu's side, but please file a proper bug
> report with M-x report-emacs-bug for the second.

Full disclosure: I'm trying to track this packaging bug down this is why
I asked that question. :)

-- 
           Julien

[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]

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

* Re: Emacs build number in version
  2012-05-29 10:06     ` Julien Danjou
@ 2012-06-10  9:48       ` Vitalie Spinu
  0 siblings, 0 replies; 6+ messages in thread
From: Vitalie Spinu @ 2012-06-10  9:48 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: emacs-devel


Hi Julien, 

Recent snapshots seem to solve my advice problem. But the problem still
persists under another form:

  (Info-find-file "emacs")

produces

Debugger entered--Lisp error: (error "Info file emacs does not exist")
  signal(error ("Info file emacs does not exist"))
  error("Info file %s does not exist" "emacs")

Also occasional errors during debugging pop-up when I try to jump to the
source file of a core function.

Vitalie.

GNU Emacs 24.1.50.1 (i686-pc-linux-gnu, GTK+ Version 3.4.2) of
2012-06-08 on lakoocha, modified by Debian

  >> Julien Danjou <julien@danjou.info>
  >> on Tue, 29 May 2012 12:06:37 +0200 wrote:

  > On Sat, May 26 2012, Stefan Monnier wrote:

  >> There are 2 bugs here:
  >> - a packaging bug: the file should not be missing.
  >> - a robustness bug: defadvice should fail gracefully in this case, since
  >> it does not really need to docstring to do its job.
  >> I think the first is on Ubuntu's side, but please file a proper bug
  >> report with M-x report-emacs-bug for the second.

  > Full disclosure: I'm trying to track this packaging bug down this is why
  > I asked that question. :)



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

end of thread, other threads:[~2012-06-10  9:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-25 14:14 Emacs build number in version Julien Danjou
2012-05-25 14:56 ` Sven Joachim
2012-05-26 12:14 ` Vitalie Spinu
2012-05-26 13:19   ` Stefan Monnier
2012-05-29 10:06     ` Julien Danjou
2012-06-10  9:48       ` Vitalie Spinu

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).