<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>23300</bug_id>
          
          <creation_ts>2010-04-08 09:16:00 +0400</creation_ts>
          <short_desc>[FR] save library descriptions from .el &quot;preambles&quot; (&quot;;;; Commentary&quot;)</short_desc>
          <delta_ts>2010-07-13 11:47:45 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Distributions</classification>
          <product>Branch 4.1</product>
          <component>emacs22-common</component>
          <version>unspecified</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="Eugene Vlasov">eugvv</assigned_to>
          
          
          <qa_contact name="qa-4.1@altlinux.org">qa-4.1</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>108469</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2010-04-08 09:16:00 +0400</bug_when>
    <thetext>emacs22-common-22.2-alt5

Often, the only place which holds a sensible doucmentation for an Emacs Lisp library is the &quot;preamble&quot; of the source file. For example, in the section of /usr/share/emacs/22.2/lisp/net/webjump.el.bz2 after the line

;;; Commentary:

one can read useful information about the purpose and usage of this library (cited below). But the user will be deprived of this documentation: if only the emacs-common package is installed, this documentation is lost, because emacs-common contains .elc&apos;s, and most .el&apos;s go into the optional emacs-el package:

$ rpm -qf /usr/share/emacs/22.2/lisp/net/webjump.el.bz2
emacs22-el-22.2-alt5
$ rpm -qf /usr/share/emacs/22.2/lisp/net/webjump.elc
emacs22-common-22.2-alt5
$ 

So, these commentary sections with documentation could be extracted and saved separately in a special store in the emacs-common package; they could be intergrated in to the Emacs help system: included in &quot;apropos&quot; searches, linked to from the help screens whenever there is a link to the library, like in the first line of the output from C-h f:

webjump is an interactive compiled Lisp function in `webjump.el&apos;.

Or the .el/.elc separate packaging could be abandoned, because it results in problems for a user: incomplete documentation, and remedying the problems is too much work.

Complete quotation of the example documentation section from /usr/share/emacs/22.2/lisp/net/webjump.el.bz2 , which the user is deprived of:


;;; Commentary:

;; WebJump provides a sort of ``programmable hotlist&apos;&apos; of Web sites that can
;; quickly be invoked in your Web browser.  Each Web site in the hotlist has a
;; name, and you select the desired site name via a completing string prompt in
;; the minibuffer.  The URL for each Web site is defined as a static string or
;; a built-in or custom function, allowing interactive prompting for
;; site-specific queries and options.

;; Note that WebJump was originally intended to complement your conventional
;; browser-based hotlist, not replace it.  (Though there&apos;s no reason you
;; couldn&apos;t use WebJump for your entire hotlist if you were so inclined.)

;; The `webjump-sites&apos; variable, which defines the hotlist, defaults to some
;; example sites.  You&apos;ll probably want to override it with your own favorite
;; sites.  The documentation for the variable describes the syntax.

;; You may wish to add something like the following to your `.emacs&apos; file:
;;
;;   (require &apos;webjump)
;;   (global-set-key &quot;\C-cj&quot; &apos;webjump)
;;   (setq webjump-sites
;;         (append &apos;(
;;                   (&quot;My Home Page&quot; . &quot;www.someisp.net/users/joebobjr/&quot;)
;;                   (&quot;Pop&apos;s Site&quot;   . &quot;www.joebob-and-son.com/&quot;)
;;                   )
;;                 webjump-sample-sites))
;;
;; The above loads this package, binds `C-c j&apos; to invoke WebJump, and adds your
;; personal favorite sites to the hotlist.

;; The `webjump-sample-sites&apos; variable mostly contains some site entries that
;; are expected to be generally relevant to many users, but excluding
;; those that the GNU project would not want to recommend.

;; The `browse-url&apos; package is used to submit URLs to the browser, so any
;; browser-specific configuration should be done there.

;;; Code:

....</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108471</commentid>
    <comment_count>1</comment_count>
    <who name="Eugene Vlasov">eugvv</who>
    <bug_when>2010-04-08 10:03:37 +0400</bug_when>
    <thetext>If you want to read sources - install sources.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110569</commentid>
    <comment_count>2</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2010-07-13 11:47:45 +0400</bug_when>
    <thetext>(A note on Emacs usage.) I have overlooked that the part concerning accessing and searching through the commentaries of the libraries is already implemented by the &quot;finder&quot; library, cf. the commands `finder-commentary&apos; and `finder-by-keyword&apos; (C-h p).

(In reply to comment #0)

&gt; Often, the only place which holds a sensible doucmentation for an Emacs Lisp
&gt; library is the &quot;preamble&quot; of the source file. For example, in the section of
&gt; /usr/share/emacs/22.2/lisp/net/webjump.el.bz2 after the line
&gt; 
&gt; ;;; Commentary:
&gt; 
&gt; one can read useful information about the purpose and usage of this library
&gt; (cited below). But the user will be deprived of this documentation: if only 

&gt;  they could be
&gt; intergrated in to the Emacs help system: included in &quot;apropos&quot; searches,</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>