girzel / ebdb

An EIEIO port of BBDB, Emacs' contact-management package
67 stars 12 forks source link

Adding a phone number prevents display #81

Closed swflint closed 4 years ago

swflint commented 4 years ago

Adding a phone number, e.g., using "i phone USA", prevents proper display upon completion (it appears it doesn't separate out the area code). To get display to work correctly, I need to save the file, close emacs, edit the entries, and then start emacs again.

girzel commented 4 years ago

Huh, that's odd. I'll assume two things: you've loaded ebdb-i18n.el, and you are entering the phone number as a single undifferentiated string of digits. Is that right?

There should be an ebdb-parse method for USA phone numbers that will always get this right, but apparently I haven't written that yet! In the meantime, you should be able to get correct behavior by leaving a space (or a hyphen or a dot or really anything else) between the area code and the rest of the number.

I'll add a new method to fix this.

swflint commented 4 years ago

That is correct. Will do for the time being.