[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ebdb-i18n-chn a2309a5 03/16: Stick to variable naming s
From: |
Stefan Monnier |
Subject: |
[elpa] externals/ebdb-i18n-chn a2309a5 03/16: Stick to variable naming scheme |
Date: |
Sun, 29 Nov 2020 17:03:26 -0500 (EST) |
branch: externals/ebdb-i18n-chn
commit a2309a5f35849907744ce758a3f4408f179a92ee
Author: Eric Abrahamsen <eric@ericabrahamsen.net>
Commit: Eric Abrahamsen <eric@ericabrahamsen.net>
Stick to variable naming scheme
* packages/ebdb-i18n-chn/ebdb-i18n-chn.el
(ebdb-i18n-china-compound-surnames):
All auxiliary variables should start with "ebdb-i18n".
---
ebdb-i18n-chn.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/ebdb-i18n-chn.el b/ebdb-i18n-chn.el
index 7fd80ac..1287b82 100644
--- a/ebdb-i18n-chn.el
+++ b/ebdb-i18n-chn.el
@@ -83,7 +83,7 @@
;; This isn't all of them, but it seems like a reasonable subset. See
;; https://en.wikipedia.org/wiki/Chinese_compound_surname for a fuller
;; list.
-(defvar ebdb-china-compound-surnames
+(defvar ebdb-i18n-chn-compound-surnames
'("慕容" "上官" "司马" "欧阳" "司徒" "司空" "西门" "爱新觉罗")
"A list of Chinese surnames that are longer than one
character.")
@@ -93,7 +93,9 @@
(_script (eql han))
&optional _slots)
(let (surname given-names)
- (if (string-match (format "\\`\\(%s\\)\\(.*\\)\\'" (regexp-opt
ebdb-china-compound-surnames)) string)
+ (if (string-match (format "\\`\\(%s\\)\\(.*\\)\\'"
+ (regexp-opt ebdb-i18n-chn-compound-surnames))
+ string)
(setq surname (match-string 1 string)
given-names (match-string 2 string))
(setq surname (substring string 0 1)
- [elpa] branch externals/ebdb-i18n-chn created (now 7bdd731), Stefan Monnier, 2020/11/29
- [elpa] externals/ebdb-i18n-chn 0ff7a54 01/16: Add external/contrib packages for EBDB, Stefan Monnier, 2020/11/29
- [elpa] externals/ebdb-i18n-chn 1ee38b9 06/16: Re-convolute ebdb-string-i18n for addresses, Stefan Monnier, 2020/11/29
- [elpa] externals/ebdb-i18n-chn a2309a5 03/16: Stick to variable naming scheme,
Stefan Monnier <=
- [elpa] externals/ebdb-i18n-chn 6bb7b78 04/16: Fix up headers for ebdb-i18n-chn, Stefan Monnier, 2020/11/29
- [elpa] externals/ebdb-i18n-chn 4269b92 07/16: Provide the right package name for ebdb-i18n-chn, Stefan Monnier, 2020/11/29
- [elpa] externals/ebdb-i18n-chn d059714 08/16: Teach EBDB to snarf Chinese names, Stefan Monnier, 2020/11/29
- [elpa] externals/ebdb-i18n-chn 398f647 10/16: Edit address formatting to match changes in EBDB package, Stefan Monnier, 2020/11/29
- [elpa] externals/ebdb-i18n-chn 8aacf3f 12/16: * packages/ebdb-i18n-chn/ebdb-i18n-chn.el: Fix first line, Stefan Monnier, 2020/11/29
- [elpa] externals/ebdb-i18n-chn d7c6ea1 02/16: Add internationalized ebdb-string method for Chinese addresses, Stefan Monnier, 2020/11/29
- [elpa] externals/ebdb-i18n-chn 7bdd731 16/16: * .gitignore: New file, Stefan Monnier, 2020/11/29
- [elpa] externals/ebdb-i18n-chn 03dd6af 09/16: Guard require statements for packages outside of ELPA, Stefan Monnier, 2020/11/29
- [elpa] externals/ebdb-i18n-chn bf0cd7e 14/16: Prepare to update for newer version of EBDB, but don't release, Stefan Monnier, 2020/11/29
- [elpa] externals/ebdb-i18n-chn 567e018 13/16: Fix ebdb-parse methods to return slots, not objects, bump to 1.3, Stefan Monnier, 2020/11/29