I think granting a wish to a dying person if its not a difficult thing to do then it is fine, if the action of the person is to want to harm another person which is not Buddhistic at all. and i feel that if a person who is dying, who is still so attached, if you are granting him a wish, maybe it will be a good idea to grant him his last wish before him taking the last breathe.
I agree with what Brian said, that it depends on what the last wish is. I think when it is at the point of death, we should not focus too much on the person's last wish, but rather help the person prepare for death.
Dying persons should be helped to relax, since tension and discomfort can easily lead to negative emotions. Surrounding the dying person with religious images and chanting mantras and prayers into her ear can help turn the mind toward positive thoughts.
Religious images are said to have a calming effect on the mind, and they prompt positive associations for devout Buddhists. Mantras of Buddhas are particularly effective, since they help either to create or strengthen a karmic link between the Buddha invoked by the mantra and the dying person. If a person is a religious practitioner who has a root lama, reciting the name mantra of the lama is particularly effective, since it should induce feelings of love and devotion toward the lama. A religious practitioner should see the lama as being inseparable from the Buddha, and so hearing the name of the lama at the time of death should awaken strong positive associations.
When the outer breath ceases, we should read
The Tibetan Book of the Dead or text of another lineage to the person who has died. We should remind our friend of the signs that will now appear and to not be attached to them, saying "All appearances are arising from your own mind." We should also continue to do
phowa and read any oral instructions on the nature of mind that our friend has received, if we are qualified to read them. We can recite mantras as well.
Buddhist texts instruct us to leave a person's body unmoved for 3 days after the outer breath ceases. It may be difficult in modern society for this to happen (eg dying in a hospital). If there is very little time for some reason, then at elast the refuge and bodhisattva vows, daily practice, and
phowa should be done. If the person was a good practitioner, they will recognise these practices and be able to use them. When these practices are complete, the body can be washed and moved.
If our friend is at home, or the hospital is willing to let family and friends have time with the deceased, then the following can be done for up to three days. This is when the inner breath is considered to have ceased.
If a lama is present, he or she will perform pujas, rituals, such as bardo practices, Avalokiteshvara or Amitabha practices, though a lama is able to do this whether or not he or she is with the body. If a lama is not present, friends sould recite the mantra of Avalokiteshavara, the Vajrasattva hundred-syllable mantra, and Amitabha Buddha's mantra ( Om Amitabha Hri).
If the body is not cremated, it is still possible for a lama to perform a fire offering if a lock of hair and nail clippings are sent to a monastery, and arrangements for that ceremony have been made. This acts as a purification for the deceased, by "burning" the non-virtuous actions and karma.
After the burial or cremation, families can do something virtuous for their loved one. It is meritorious to make charitable contributions in their loved one's name. The family can also decide to observe the vow of not killing and become vegetarian for a week or for the 49 days .