๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fj.editor.xemacs
Article #200

font-lock problem

#200
From: Katsumi Yamaoka
Date: Thu, 27 Sep 2001 00:00
40 lines
3281 bytes
ใ“ใ‚“ใซใกใฏๅฑฑๅฒกใงใ™ใ€‚

XEmacs 21.5 ใฎ้–‹็™บใฎๅ…ˆ็ซฏใงๆœ€่ฟ‘่กŒใชใ‚ใ‚ŒใŸ font-lock.el ใฎๅค‰ๆ›ดใŒใ€
Egg (Wnn ใพใŸใฏ SJ3) ใงๆ—ฅๆœฌ่ชžๅ…ฅๅŠ›ใ‚’่กŒใชใ†ๅ ดๅˆใซ้‡ๅคงใช้šœๅฎณใ‚’ๅผ•ใ
่ตทใ“ใ—ใพใ™ใ€‚ๅ…ทไฝ“็š„ใซใฏใ€font-lock ใŒๅ‹•ไฝœใ—ใฆใ„ใ‚‹ใƒใƒƒใƒ•ใ‚กใงๅค‰ๆ›/
็ขบๅฎšใ‚’่กŒใชใ†ๅบฆใซใ‚จใƒฉใƒผใŒ็™บ็”Ÿใ—ใ€ใใฎๅ ดๆ‰€ใซ้šฃๆŽฅใ™ใ‚‹ใƒ†ใ‚ญใ‚นใƒˆใŒๆถˆใˆ
ใฆใ„ใฃใฆใ—ใพใ†ใจใ„ใ†ใ‚‚ใฎใงใ™ใ€‚้–ข้€ฃ่จ˜ไบ‹ใŒไปฅไธ‹ใฎๅ ดๆ‰€ใซใ‚ใ‚Šใพใ™ใ€‚

http://list-archive.xemacs.org/xemacs-patches/200109/msg00057.html
http://list-archive.xemacs.org/xemacs-patches/200109/msg00059.html

Ben Wing ๆฐใฏ msg00057.html ใงใ€ๅพ“ๆฅใฎ font-lock.el ใซใฏ

  ใ‚ฝใƒผใ‚นใ‚ณใƒผใƒ‰ใŒๆ›ธใ‹ใ‚Œใฆใ„ใ‚‹่กŒใฎๅ‰ใซใ‚ณใƒกใƒณใƒˆใฎ่กŒใ‚’ๆŒฟๅ…ฅใ—ใ€ใใ“ใง
  backspace ใ‚’ๅฉใใจใ€ๆฌกใฎใ‚ฝใƒผใ‚นใ‚ณใƒผใƒ‰ใฎ่กŒใซใ‚ณใƒกใƒณใƒˆใฎ่‰ฒใŒไป˜ใ

ใจใ„ใ†ๅ•้กŒใŒใ‚ใฃใŸใจๆ›ธใ„ใฆใ„ใพใ™ใ€‚
ใ—ใ‹ใ—ใ€ๅ…ทไฝ“็š„ใซใฉใ†ใ„ใ†ๆ“ไฝœใ‚’่กŒใชใ†ใจ่ตทใ“ใ‚‹็พ่ฑกใชใฎใ‹ใŒใ‚ใ‹ใ‚Šใพ
ใ›ใ‚“ใ€‚ใพใŸใ€ใใ‚“ใชใ“ใจใ‚’็ตŒ้จ“ใ—ใŸใ“ใจใ‚‚ใ‚ใ‚Šใพใ›ใ‚“ใ€‚
ไปฅไธ‹ใฏ font-lock.el ใ‹ใ‚‰ใฎๆŠœ็ฒ‹ใงใ™ใŒใ€ใฉใชใŸใ‹ใ‚ใ‹ใ‚Šใพใ™ใ‹?

;; treat deletions as if the following character (or previous, if
;; there is no following) were inserted. (also use the previous
;; character at end of line.  this avoids a problem when you
;; insert a comment on the line before a line of code: if we use
;; the following char, then when you hit backspace, the following
;; line of code turns the comment color.) this is a bit of a hack
;; but allows us to use text properties for everything.

ใ‚‚ใ—ใ“ใฎๆ–‡็ซ ใŒใ™ในใฆใ‚’่ชฌๆ˜Žใ—ใฆใ„ใ‚‹ใฎใงใ‚ใ‚Œใฐใ€ใใ‚Œใ‚’่ชญ่งฃใงใใชใ„
ใผใใŒ Ben Wing ใ•ใ‚“ใซ็›ดๆŽฅๅฐ‹ใญใฆใ‚‚ใ‚„ใฃใฑใ‚Šใ‚ใ‹ใ‚‰ใชใ„ใ ใ‚ใ†ใจๆ€ใ„
ใพใ—ใฆใ€ใ‚ใˆใฆใ“ใ“ใง่ณชๅ•ใ•ใ›ใฆใ„ใŸใ ใใพใ—ใŸใ€‚^^;;

ๆ”นๅ–„ใ™ในใใฏ msg00059.html ใซๆ›ธใ„ใŸใ‚ˆใ†ใช font-lock.el ใงใฏใชใ
ใฆ Egg ใฎๆ–นใชใฎใ‹ใ‚‚ใ—ใ‚Œใพใ›ใ‚“ใ€‚ใงใ™ใŒใ€ๅ•้กŒใฎๆ„ๅ‘ณใŒใ‚ใ‹ใ‚‰ใชใ„ใฎ
ใงๆ‰‹ใŒไป˜ใ‘ใ‚‰ใ‚Œใชใ„ใงใ„ใพใ™ใ€‚ใ“ใฎใพใพๆ”พใฃใฆใŠใใจไปŠๅพŒใƒชใƒชใƒผใ‚นใ•ใ‚Œ
ใ‚‹ XEmacs ใซ็››ใ‚Š่พผใพใ‚Œใฆใ—ใพใ†ใ‹ใ‚‚ใ—ใ‚Œใชใ„ใฎใงใ€ใฟใชใ•ใพใฎใ”ๅ”ๅŠ›
ใ‚’ใŠ้ก˜ใ„ใ„ใŸใ—ใพใ™ใ€‚
-- 
Katsumi Yamaoka <yamaoka@jpl.org>
Technical Details
Message-ID: <yosuadzhmrj4.fsf@jpl.org>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!fu-berlin.de!uni-berlin.de!groundpoundrecords.COM!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: Japanese,JIS
X-Google-Thread: 1107f7,214d852bcd3e324c,start
X-Google-Attributes: gid1107f7,public
X-Google-ArrivalTime: 2001-09-26 17:01:22 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!fu-berlin.de!uni-berlin.de!groundpoundrecords.COM!not-for-mail
From: Katsumi Yamaoka <yamaoka@jpl.org>
Newsgroups: fj.editor.xemacs
Subject: font-lock problem
Date: Thu, 27 Sep 2001 09:00:28 +0900
Organization: Emacsen advocacy group
Lines: 40
Message-ID: <yosuadzhmrj4.fsf@jpl.org>
NNTP-Posting-Host: groundpoundrecords.com (207.228.244.150)
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-2022-JP
X-Trace: fu-berlin.de 1001548879 15493964 207.228.244.150 (16 [27265])
X-Orig-Path: yamaoka
 (BCc: xemacs-beta-ja@xemacs.org
Mail-Copies-To: never
User-Agent: T-gnus/6.15.4 (based on Oort Gnus v0.04) (revision 07)
 XEmacs/21.5 (beta3) (asparagus) (sparc-sun-solaris2.6) WEMIKO/1.14.1
 (Choanoflagellata) CLIME/1.14.3 (ๅฏบไบ•่ฅฟๅฃ)
 APEL/10.3
X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk
 B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw=
 L&i*6&(