Skip to content

Camel Case with single quotes doesnt work as expected #177

Answered by minad
bobrowadam asked this question in Q&A
Discussion options

You must be logged in to vote

I can reproduce this problem. I think the problem is that Jinx has special handling for apostrophes at the beginning or end of words. See this code right before the regexp, you've mentioned:

jinx/jinx.el

Lines 452 to 460 in 09969c5

;; No quote or apostrophe at start or end
(while (and (< word-start word-end)
(let ((c (char-after word-start)))
(or (= c ?') (= c ?’))))
(cl-incf word-start))
(while (and (< word-start word-end)
(let ((c (char-before word-end)))
(or (= c ?') (= c ?’))))
(cl-decf word-end))

I am happy to take a patch, if we figure out a way to handle this edge case. Otherwise I consider this a low priority issue, given t…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bobrowadam
Comment options

Answer selected by bobrowadam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #176 on June 02, 2024 18:35.