Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now
4 added 7 characters in body; edited title
source | link

How When searching, how to search in such a wayalways ensure that a few lines after the highlighted word beare visible?

When performing search/isearchsearch/isearch in a text, sometimes it would be desirable to see a few lines after the highlighted searched string, it other words to avoid that the highlighted word to be at the bottom of the bufferwindow. 

For example if we have the following text in a buffer, try to search the last word that you are able to see. For me it is the word principles (as I have maximized the frame). The highlighted word (in my situation the word principles) is at the bottom of the screen. I would like to see always few lines (if possible) after the word principles after searching.

Surrounded
occasional 
pianoforte 
alteration 
unaffected 
impossible 
Perceived 
knowledge 
certainly 
Although 
moreover 
mistaken 
kindness 
horrible 
distance 
marriage 
country 
demesne 
Bachelor 
domestic 
extended 
doubtful 
Greatly 
Improved 
provided 
Dwelling 
speedily 
ignorant 
steepest 
Admiration 
instrument 
affronting 
invitation 
reasonably 
ecstatic 
wondered 
disposal 
curiosity  
shameless 
explained.
sincerity 
extremity 
additions 
principles
Carriage 
Remainder 
household 
direction 
zealously 
Sufficient 
motionless
compliment 
stimulated 
assistance

How to search in such a way that few lines after the highlighted word be visible?

When performing search/isearch in a text, sometimes it would be desirable to see few lines after the highlighted searched string, it other words to avoid that the highlighted word to be at the bottom of the buffer. For example if we have the following text in a buffer, try to search the last word that you are able to see. For me it is the word principles (as I have maximized the frame). The highlighted word (in my situation the word principles) is at the bottom of the screen. I would like to see always few lines (if possible) after the word principles after searching.

Surrounded
occasional 
pianoforte 
alteration 
unaffected 
impossible 
Perceived 
knowledge 
certainly 
Although 
moreover 
mistaken 
kindness 
horrible 
distance 
marriage 
country 
demesne 
Bachelor 
domestic 
extended 
doubtful 
Greatly 
Improved 
provided 
Dwelling 
speedily 
ignorant 
steepest 
Admiration 
instrument 
affronting 
invitation 
reasonably 
ecstatic 
wondered 
disposal 
curiosity  
shameless 
explained.
sincerity 
extremity 
additions 
principles
Carriage 
Remainder 
household 
direction 
zealously 
Sufficient 
motionless
compliment 
stimulated 
assistance

When searching, how to always ensure that a few lines after the highlighted word are visible?

When performing search/isearch in a text, sometimes it would be desirable to see a few lines after the highlighted searched string, it other words to avoid that the highlighted word to be at the bottom of the window. 

For example if we have the following text in a buffer, try to search the last word that you are able to see. For me it is the word principles (as I have maximized the frame). The highlighted word (in my situation the word principles) is at the bottom of the screen. I would like to see always few lines (if possible) after the word principles after searching.

Surrounded
occasional 
pianoforte 
alteration 
unaffected 
impossible 
Perceived 
knowledge 
certainly 
Although 
moreover 
mistaken 
kindness 
horrible 
distance 
marriage 
country 
demesne 
Bachelor 
domestic 
extended 
doubtful 
Greatly 
Improved 
provided 
Dwelling 
speedily 
ignorant 
steepest 
Admiration 
instrument 
affronting 
invitation 
reasonably 
ecstatic 
wondered 
disposal 
curiosity  
shameless 
explained.
sincerity 
extremity 
additions 
principles
Carriage 
Remainder 
household 
direction 
zealously 
Sufficient 
motionless
compliment 
stimulated 
assistance
3 added 22 characters in body
source | link

When performing search/isearch in a text, sometimes it would be desirable to see few lines after the highlighted searched string, it other words to avoid that the highlighted word to be at the bottom of the buffer. For example if we have the following text in a buffer, try to search the last word that you are able to see. For me it is the word principles (as I have maximized the frame). The highlighted word (in my situation the word principles) is at the bottom of the screen. I would like to see fewalways few lines (if possible) after the word principles after searching.

Surrounded
occasional 
pianoforte 
alteration 
unaffected 
impossible 
Perceived 
knowledge 
certainly 
Although 
moreover 
mistaken 
kindness 
horrible 
distance 
marriage 
country 
demesne 
Bachelor 
domestic 
extended 
doubtful 
Greatly 
Improved 
provided 
Dwelling 
speedily 
ignorant 
steepest 
Admiration 
instrument 
affronting 
invitation 
reasonably 
ecstatic 
wondered 
disposal 
curiosity  
shameless 
explained.
sincerity 
extremity 
additions 
principles
Carriage 
Remainder 
household 
direction 
zealously 
Sufficient 
motionless
compliment 
stimulated 
assistance

When performing search/isearch in a text, sometimes it would be desirable to see few lines after the highlighted searched string, it other words to avoid that the highlighted word to be at the bottom of the buffer. For example if we have the following text in a buffer, try to search the last word that you are able to see. For me it is the word principles (as I have maximized the frame). The highlighted word (in my situation the word principles) is at the bottom of the screen. I would like to see few lines after the word principles after searching.

Surrounded
occasional 
pianoforte 
alteration 
unaffected 
impossible 
Perceived 
knowledge 
certainly 
Although 
moreover 
mistaken 
kindness 
horrible 
distance 
marriage 
country 
demesne 
Bachelor 
domestic 
extended 
doubtful 
Greatly 
Improved 
provided 
Dwelling 
speedily 
ignorant 
steepest 
Admiration 
instrument 
affronting 
invitation 
reasonably 
ecstatic 
wondered 
disposal 
curiosity  
shameless 
explained.
sincerity 
extremity 
additions 
principles
Carriage 
Remainder 
household 
direction 
zealously 
Sufficient 
motionless
compliment 
stimulated 
assistance

When performing search/isearch in a text, sometimes it would be desirable to see few lines after the highlighted searched string, it other words to avoid that the highlighted word to be at the bottom of the buffer. For example if we have the following text in a buffer, try to search the last word that you are able to see. For me it is the word principles (as I have maximized the frame). The highlighted word (in my situation the word principles) is at the bottom of the screen. I would like to see always few lines (if possible) after the word principles after searching.

Surrounded
occasional 
pianoforte 
alteration 
unaffected 
impossible 
Perceived 
knowledge 
certainly 
Although 
moreover 
mistaken 
kindness 
horrible 
distance 
marriage 
country 
demesne 
Bachelor 
domestic 
extended 
doubtful 
Greatly 
Improved 
provided 
Dwelling 
speedily 
ignorant 
steepest 
Admiration 
instrument 
affronting 
invitation 
reasonably 
ecstatic 
wondered 
disposal 
curiosity  
shameless 
explained.
sincerity 
extremity 
additions 
principles
Carriage 
Remainder 
household 
direction 
zealously 
Sufficient 
motionless
compliment 
stimulated 
assistance
2 edited body
source | link

When performing search/isearch in a text, sometimes it would be desirable to see few lines after the highlighted searched string, it other words to avoid that the highlighted word to be at the bottom of the screenbuffer. For example if we have the following text in a buffer, try to search the last word that you are able to see. For me it is the word principles (as I have maximized the frame). The highlighted word (in my situation the word principles) is at the bottom of the screen. I would like to see few lines after the word principles after searching.

Surrounded
occasional 
pianoforte 
alteration 
unaffected 
impossible 
Perceived 
knowledge 
certainly 
Although 
moreover 
mistaken 
kindness 
horrible 
distance 
marriage 
country 
demesne 
Bachelor 
domestic 
extended 
doubtful 
Greatly 
Improved 
provided 
Dwelling 
speedily 
ignorant 
steepest 
Admiration 
instrument 
affronting 
invitation 
reasonably 
ecstatic 
wondered 
disposal 
curiosity  
shameless 
explained.
sincerity 
extremity 
additions 
principles
Carriage 
Remainder 
household 
direction 
zealously 
Sufficient 
motionless
compliment 
stimulated 
assistance

When performing search/isearch in a text, sometimes it would be desirable to see few lines after the highlighted searched string, it other words to avoid that the highlighted word to be at the bottom of the screen. For example if we have the following text in a buffer, try to search the last word that you are able to see. For me it is the word principles (as I have maximized the frame). The highlighted word (in my situation the word principles) is at the bottom of the screen. I would like to see few lines after the word principles after searching.

Surrounded
occasional 
pianoforte 
alteration 
unaffected 
impossible 
Perceived 
knowledge 
certainly 
Although 
moreover 
mistaken 
kindness 
horrible 
distance 
marriage 
country 
demesne 
Bachelor 
domestic 
extended 
doubtful 
Greatly 
Improved 
provided 
Dwelling 
speedily 
ignorant 
steepest 
Admiration 
instrument 
affronting 
invitation 
reasonably 
ecstatic 
wondered 
disposal 
curiosity  
shameless 
explained.
sincerity 
extremity 
additions 
principles
Carriage 
Remainder 
household 
direction 
zealously 
Sufficient 
motionless
compliment 
stimulated 
assistance

When performing search/isearch in a text, sometimes it would be desirable to see few lines after the highlighted searched string, it other words to avoid that the highlighted word to be at the bottom of the buffer. For example if we have the following text in a buffer, try to search the last word that you are able to see. For me it is the word principles (as I have maximized the frame). The highlighted word (in my situation the word principles) is at the bottom of the screen. I would like to see few lines after the word principles after searching.

Surrounded
occasional 
pianoforte 
alteration 
unaffected 
impossible 
Perceived 
knowledge 
certainly 
Although 
moreover 
mistaken 
kindness 
horrible 
distance 
marriage 
country 
demesne 
Bachelor 
domestic 
extended 
doubtful 
Greatly 
Improved 
provided 
Dwelling 
speedily 
ignorant 
steepest 
Admiration 
instrument 
affronting 
invitation 
reasonably 
ecstatic 
wondered 
disposal 
curiosity  
shameless 
explained.
sincerity 
extremity 
additions 
principles
Carriage 
Remainder 
household 
direction 
zealously 
Sufficient 
motionless
compliment 
stimulated 
assistance
1
source | link