Questions tagged [sentences]

21 questions
10
votes
1 answer

Recognizing sentences that don't end in two spaces

I'm not going to weigh in on whether ending sentences with two spaces is the One True Way or an abomination. All I know is that I show no signs of establishing a consistent habit of hitting the spacebar twice at the end of a sentence. So, given…
Avdi
  • 737
  • 1
  • 7
  • 8
10
votes
2 answers

Any functionality differences using a two-space vs one-space convention at the end of a sentence?

Q: What practical reasons are there not to set sentence-end-double-space to nil? A recently-revived thread on recognizing sentences that don't end in two spaces inspired this question. The Emacs manual node on sentences notes that the sentence…
Dan
  • 32,584
  • 6
  • 98
  • 168
6
votes
1 answer

backword-sentence and forward-sentence are moving over paragraphs

I use markdown-mode to edit markdown, but it's missing one very useful feature. Whenever I press M-a (backward-sentence) or M-e (forward-sentence) it takes me to the start or end of the paragraph, respectively. I want it to send me to start/end of…
Cristian
  • 233
  • 2
  • 6
4
votes
0 answers

LaTeX-aware sentence endings?

Q: how do I define sentence endings to be LaTeX macro-aware? I'd like backward-sentence and forward-sentence to be smarter about LaTeX macros -- particularly \footnote -- when working in LaTeX buffers. Consider the following snippet: Here's some…
Dan
  • 32,584
  • 6
  • 98
  • 168
4
votes
3 answers

How can I normalize sentence-endings?

Say I have the following text: A. U. Thor writes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam est elit, pulvinar sit amet erat nec, finibus sagittis ex. Mauris dictum elementum est in fringilla? Duis vel dui elit!…
Sean Allred
  • 6,861
  • 16
  • 85
4
votes
2 answers

How do you move sentences in orgmode?

In orgmode you can move subtrees up and down using org-metaup and org-metadown. I use it all the time to move paragraphs around. Is it possible to do the same with sentences inside a paragraph?
Jason Mirk
  • 713
  • 3
  • 15
4
votes
2 answers

how change behavior of kill-sentence based on position in sentence?

I'd like to modify the behavior of kill-sentence (which I have bound to M-k) according to context, in the following way: If the point is at the beginning of a sentence, then kill the sentence in the usual way, deleting all the words of the…
incandescentman
  • 4,111
  • 16
  • 53
3
votes
1 answer

How to handle autocapitalize for things like i.e., e.g.?

In auto-capitalize mode, whenever Latin abbreviations such as e.g. or i.e. are entered, auto-capitalize mode seems to be too eager, and capitalizes the first letters E and I after the first period . is entered. Is it possible to configure the mode…
tinlyx
  • 1,276
  • 1
  • 12
  • 27
3
votes
1 answer

Highlight missing double-space between sentences?

For a while, I've been using sentence-end-double-space: nil. Now I want to get back into the habit of using two spaces to separate sentences. It is the convention for GNU documentation, and it actually makes sense: That way periods after…
feklee
  • 1,029
  • 5
  • 17
3
votes
1 answer

How can Emacs number the sentences in a text?

I am analysing text with respect to its argument structure (conclusion supported by reasons, each supported by evidence). During this analysis it would have been very usefull to have each sentence numbered, for easy reference. Hence, I need a…
myotis
  • 1,099
  • 1
  • 13
  • 27
3
votes
1 answer

How does "transpose-sentences" work?

How does M-x transpose-sentences work? I tested it by executing the command with point at various places (as indicated) in the following: this is sentence 1. this is sentence 2. this is sentence 3. ^ ^ ^^^^ ^ ^^^^ ^ …
SabreWolfy
  • 1,378
  • 1
  • 13
  • 26
2
votes
2 answers

How can I fix sentences detection in org-mode?

I wanted to use hl-sentences module and discovered in the process that the sentence detection, and thus move between sentence is buggy inside org-mode. * Title some text: - bullet 1 - bullet 2 - bullet 3 ** sub-title If I do an…
yogsototh
  • 131
  • 4
2
votes
2 answers

Flycheck elisp "There should be two spaces after period"

Is there any way to disable just this one warning? Two spaces seems like overkill but maybe that is the lisp standard?
eflanigan00
  • 785
  • 4
  • 11
1
vote
1 answer

Why is forward-sentence moving the cursor to the end of the paragraph and not working as expected and going to the end of the sentence?

I will provide a recipe for the problem that is happening. 1 - Open Emacs 2 - switch-buffer to the Scratch buffer 3 - Copy the following snippet Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the…
Pedro Delfino
  • 1,369
  • 3
  • 13
1
vote
1 answer

Lisp function to parse paragraph into sentences separated by full stops

Is there in Emacs an inbuilt function to separate text into sentences? Eg., Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown…
1
2