Question:
Why is it permitted to say tehilim within four amos of a kever on a yohrtzeit ?
Although, it may be for the honor of this particular mes, you are standing within four amos of the nearby grave ?
Answer:
Hello,
It is not considered making fun of the dead people, because it is being done to help one of them. this is even though it is not helping all of them, nevertheless it isn't considered ridiculing them.
Best wishes
Sources:
ברכי יוסף ס' שד"מ לענין לימוד משניות אצל הקרברים, וכן ע' דברי סופרים פי"ט אות ט"ז בשם מנחת אלעזר בנוגע להתפלל סמוך לקברים.