unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Re::Emacs Forms mode.
@ 2003-02-07  9:31 kaustuv
  2003-02-07 10:26 ` :Emacs " Brendan Halpin
  2003-02-08  2:31 ` Galen Boyer
  0 siblings, 2 replies; 4+ messages in thread
From: kaustuv @ 2003-02-07  9:31 UTC (permalink / raw)


hi,
I am trying to use emacs forms mode to create an addressbook. However I am
unable to enter the data in it. The moment I open a new recoed by C-c C-o
I get a screen as i expect, but for the fact that when i press tab to
move to fields  to enter data in the them it simply takes me to the end of
this record. Is there some way instead of pressing tab to goto the desired
fiels and enter data?

Also I noted if the fields in concern had already data in them (for e.g.
after I modified the data file manually) I could not only go to those
fields by pressing tab but also enter data by modifyin what was written
there. I am adding my address.el below. Can someone suggest what is going
wrong?

;; This is my custom build address book format specification
;; Use M-x forms-mode in this file to enter forms
;; C-c C-o to enter new record *after* the present one (i.e. forms inserts
;; after is true)

  (setq forms-file "address.txt")
  (setq forms-number-of-fields 9)
  (setq forms-read-only nil)
  (setq forms-field-sep ":")
  (setq forms-insert-after t)
  (setq forms-format-list
        (list
         "====== address ======\n\n"
         "Last name  : "    1  "\n\n"
         "First name : "    2  "\n\n"
         "Nick name  : "    3  "\n\n"

        "Street  : "   4      "\n\n"
         "City    : "   5      "\n\n"
         "ZIP     : "   6      "\n\n"
         "Country   : "   7    "\n\n"

          "Email Primary:" 8   "\n\n"
          "Email Secondary:" 9 "\n\n"

         "\n"))
bye

-- 
*******************************************************************************
 Office:-                             *  Residence:
                                      *
 Kaustuv                              *  Kaustuv
 Dept of Geophysics                   *  126, Blackwelder Court,
 Mitchell Building, Room 454          *  Apartment No. L6F,
 Stanford University                  *  Escondido Village,
 Stanford.                            *  Stanford University,
 CA-94305                             *  Stanford, CA - 94305
 United States of America             *  United States of America
 Ph: (650) 725-1331                   *  Ph: (650) 497-5776

                      Email: kaustuv@stanford.edu
                             kaustuv@iitbombay.org
*******************************************************************************

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

* Re: :Emacs Forms mode.
  2003-02-07  9:31 Re::Emacs Forms mode kaustuv
@ 2003-02-07 10:26 ` Brendan Halpin
  2003-02-07 18:37   ` kaustuv
  2003-02-08  2:31 ` Galen Boyer
  1 sibling, 1 reply; 4+ messages in thread
From: Brendan Halpin @ 2003-02-07 10:26 UTC (permalink / raw)


kaustuv <kaustuv@stanford.edu> writes:

> I am trying to use emacs forms mode to create an addressbook. However I am
> unable to enter the data in it. The moment I open a new recoed by C-c C-o
> I get a screen as i expect, but for the fact that when i press tab to
> move to fields  to enter data in the them it simply takes me to the end of
> this record. Is there some way instead of pressing tab to goto the desired
> fiels and enter data?
> 
> Also I noted if the fields in concern had already data in them (for e.g.
> after I modified the data file manually) I could not only go to those
> fields by pressing tab but also enter data by modifyin what was written
> there. I am adding my address.el below. Can someone suggest what is going
> wrong?


>   (setq forms-insert-after t)

Commenting this out allows things to work. With it in, and an empty
data file, forms-mode gets confused, trying to position the point
after a non-existant entry. 

Is this a bug in forms mode?

Brendan

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

* Re: :Emacs Forms mode.
  2003-02-07 10:26 ` :Emacs " Brendan Halpin
@ 2003-02-07 18:37   ` kaustuv
  0 siblings, 0 replies; 4+ messages in thread
From: kaustuv @ 2003-02-07 18:37 UTC (permalink / raw)


Thanks for the response. In emacs GNU Emacs 20.7.1
You cannot edit empty fields but in GNU Emacs 21.2.2 you can
so I think it is a bug. Which should be fixed at source level.

Regards
kaustuv

+ >   (setq forms-insert-after t)
+
+ Commenting this out allows things to work. With it in, and an empty
+ data file, forms-mode gets confused, trying to position the point
+ after a non-existant entry.
+
+ Is this a bug in forms mode?
+
+ Brendan
+
+

-- 
*******************************************************************************
 Office:-                             *  Residence:
                                      *
 Kaustuv                              *  Kaustuv
 Dept of Geophysics                   *  126, Blackwelder Court,
 Mitchell Building, Room 454          *  Apartment No. L6F,
 Stanford University                  *  Escondido Village,
 Stanford.                            *  Stanford University,
 CA-94305                             *  Stanford, CA - 94305
 United States of America             *  United States of America
 Ph: (650) 725-1331                   *  Ph: (650) 497-5776

                      Email: kaustuv@stanford.edu
                             kaustuv@iitbombay.org
*******************************************************************************

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

* Re: :Emacs Forms mode.
  2003-02-07  9:31 Re::Emacs Forms mode kaustuv
  2003-02-07 10:26 ` :Emacs " Brendan Halpin
@ 2003-02-08  2:31 ` Galen Boyer
  1 sibling, 0 replies; 4+ messages in thread
From: Galen Boyer @ 2003-02-08  2:31 UTC (permalink / raw)


On Fri, 7 Feb 2003, kaustuv@stanford.edu wrote:

> hi, I am trying to use emacs forms mode to create an
> addressbook. 

Is this to learn forms or to have an address book?  The bbdb is
something you should look at if the latter.
-- 
Galen deForest Boyer
Sweet dreams and flying machines in pieces on the ground.

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

end of thread, other threads:[~2003-02-08  2:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-07  9:31 Re::Emacs Forms mode kaustuv
2003-02-07 10:26 ` :Emacs " Brendan Halpin
2003-02-07 18:37   ` kaustuv
2003-02-08  2:31 ` Galen Boyer

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