help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Self-documentation adjustment


From: Stefan Monnier <address@hidden>
Subject: Re: Self-documentation adjustment
Date: 11 Dec 2002 09:25:19 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

>>>>> "David" == David Forrest <drf5n@mug.sys.virginia.edu> writes:
> (document apropos-mouse-follow "Use the mouse to follow an apropos link.")

(put 'apropos-mouse-follow 'function-documentation "Follow link")

> I know I could redefine the function and edit my copy of the original
> file, but I would like to be able to extend the documentation without
> ham-handedly corrupting the underlying files, functions, or variables.

Please report such missing docstrings with M-x report-emacs-bug.


        Stefan


PS: The above function has disappeared from Emacs so there's no need to
    report it.
>From Jay.Bingham@hp.com Wed Dec 11 09:53:04 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
        id 18M8ES-0005ot-00
        for help-gnu-emacs@gnu.org; Wed, 11 Dec 2002 09:53:04 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
        id 18M8EP-0005nt-00
        for help-gnu-emacs@gnu.org; Wed, 11 Dec 2002 09:53:03 -0500
Received: from zcamail03.zca.compaq.com ([161.114.32.103])
        by monty-python.gnu.org with esmtp (Exim 4.10.13)
        id 18M8EP-0005nL-00
        for help-gnu-emacs@gnu.org; Wed, 11 Dec 2002 09:53:01 -0500
Received: from cacexg12.americas.cpqcorp.net (cacexg12.americas.cpqcorp.net
        [16.105.250.119])       by zcamail03.zca.compaq.com (Postfix) with ESMTP
        id A9C7B3302; Wed, 11 Dec 2002 06:53:00 -0800 (PST)
Received: from txnexc01.americas.cpqcorp.net ([16.74.7.244]) by
        cacexg12.americas.cpqcorp.net with Microsoft SMTPSVC(5.0.2195.2966);
        Wed, 11 Dec 2002 06:53:00 -0800
X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0
content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
        charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Date: Wed, 11 Dec 2002 08:52:59 -0600
Message-ID: 
<72A87F7160C0994D8C5A36E2FDC227F502473F9E@txnexc01.americas.cpqcorp.net>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: How to use set-fill-column as a hook?
Thread-Index: AcKhE1jma+NrHkETS8mbqRwVVHWA8QAEC2OQ
From: "Bingham, Jay" <Jay.Bingham@hp.com>
To: "Adam" <a24061@void.yahoo.void.com>, <help-gnu-emacs@gnu.org>
X-OriginalArrivalTime: 11 Dec 2002 14:53:00.0335 (UTC)
        FILETIME=[FFDCCBF0:01C2A124]
Subject: RE: How to use set-fill-column as a hook?
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
        <mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/help-gnu-emacs>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
        <mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Wed, 11 Dec 2002 14:53:04 -0000

In my .emacs I have:
(setq-default fill-column 75)
followed by:
(add-hook 'text-mode-hook 'turn-on-auto-fill)

When I evaluated
(add-hook 'latex-mode-hook (lambda () (setq fill-column 100)))
in the scratch buffer then created a temporary buffer and switched to
latex mode I had no problems the fill column was set to 100.
You may be right about latex mode running text mode hooks.  If that is
the case then I would recommend setting the default fill-column to the
value you want for text-mode and adding hooks for the modes that you
want to have a different value.

Good luck
-_
J_)
C_)ingham
.    HP - NonStop Austin Software & Services - Software Quality
Assurance
.    Austin, TX
. "Language is the apparel in which your thoughts parade in public.
.  Never clothe them in vulgar and shoddy attire."     -Dr. George W.
Crane-

-----Original Message-----
From: Adam [mailto:a24061@void.yahoo.void.com]=20
Sent: Wednesday, December 11, 2002 6:43 AM
To: help-gnu-emacs@gnu.org
Subject: RE: How to use set-fill-column as a hook?

On Tuesday 10 December 2002 15:42, Bingham, Jay wrote:

> Try this, it worked for me.
>=20
> (add-hook 'latex-mode-hook (lambda () (setq fill-column 100)))
>=20
> Any mode that has a mode hook, all that I have seen do, can be set in
a
> similar manner.  Just specify the appropriate mode hook and the value
> that you want the fill-column to be for the mode.
> Individual mode customizations have to be done with a mode hook
because
> the variable fill-column becomes buffer local when it is set in any
> manner.  Since the since the mode hooks get executed each time the
mode
> in invoked, i.e. each time a buffer is created in that mode or you
> change a buffer to that mode.

I've tried it but I also have=20
(add-hook 'text-mode-hook 'turn-on-auto-fill)
in ~/.emacs, and the value of fill-column inherited from text-mode is=20
overriding the value I'm trying to set for latex-mode. (I think that=20
latex-mode is running its own hooks _then_ the text-mode hooks.) I'd
really=20
like to set them differently.

_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnu-emacs



reply via email to

[Prev in Thread] Current Thread [Next in Thread]