The rising violence has many Pakistanis worried President Gen. Pervez Musharraf could extend his military rule by imposing a state of emergency or martial law , jeopardizing a promised transition to democracy .